General Topics
Markets
Technical Topics
Brokerage Firms
Company Specific
Community Lounge
Site Support

# TS easy language program..

Discussion in 'Strategy Building' started by EqtTrdr, Nov 11, 2002.

1. ### EqtTrdr

I use Metastock and want to convert a program to EL
but having a tough time with this one...

I asked over at TSworld but they never reply to anyone's post..lol

any help is appreciated!!

Thanks,
-Matt-

Slw:=Input("Slowing double stoch",1,5,3);
Pds:=Input("Periods double stoch",3,21,10);
A:=Mov((CLOSE-LLV(LOW,Pds))/(HHV(H,pds)-LLV(L,Pds)),Slw,E)*100;
Mov((A-LLV(A,pds))/(HHV(A,Pds)-LLV(A,Pds)),Slw,E)*100

2. ### inandlong

PM KymarFye or nitro for some help.

3. ### EqtTrdr

thanks for the info!!

4. ### DaveN

Hi Matt,

Here's the code ----------------------

Inputs: Slw(3), Pds(10);

{Using a variable once will make your code run faster than calling a function
multiple times in an equation}
Vars: LWST(Close), HGST(Close), HGST_Fast(50), LWST_Fast(50);
Vars: Fast(50), Slow(50);

HGST = Highest(High,Pds);
LWST = Lowest(Low,Pds);
Fast = XAverage((Close-LWST)/(HGST-LWST),Slw) * 100;

HGST_Fast = Highest(Fast,Pds);
LWST_Fast = Lowest(Fast,Pds);
Slow = XAverage((Fast-LWST_Fast)/(HGST_Fast-LWST_Fast),Slw)*100;

Plot1(Slow);

5. ### EqtTrdr

appreciate everyone's help )

This board Rocks\$\$\$\$

6. ### EqtTrdr

just wanted to say thanks to everyone at Tradestation who have been extrememly helpful to me in everyway possible..

The above comment was made in regard to a past issue that has been since resolved...

I apologize for any misunderstanding....

Thanks again to TS.... and especially
Mark Mills