View Full Version : Expert advisor Help
gapellegrini
19th October 2004, 03:54 PM
Hi Jose , how are you?
I have this Formula.
El
Mov(C,14,S) > Mov(C,25,S) AND Mov(C,120,S) > Mov(C,200,S) AND ADX(26) > ADX(28)
Cl
Mov(C,14,S) < Mov(C,25,S)
Es
Mov(C,14,S) < Mov(C,25,S)
AND Mov(C,120,S) < Mov(C,200,S) AND ADX(26) > ADX(28)
Cs
Mov(C,14,S) > Mov(C,25,S)
I ´d like to use this system with the expert advisor for intraday trade.
Thanks
Gabriel
Jose
20th October 2004, 12:07 AM
MetaStock -> Tools -> Expert Advisor -> New -> Symbols -> New -> copy & paste each formula into a new symbol.
Easy huh? :)
jose '-)
gapellegrini
29th October 2004, 11:18 PM
hehehehheeheheeheeheheh.
The problem with this formula is: 1 if I insert each formula in a simbol , every bar in the chart will have a simbol , and not only when the condition change.
2 - If I insert the formula in the highlight , when the adx ( in the entry formula) cross , the highlighted area will desapear with the system on the position.
Thanks
Gabriel
Jose
30th October 2004, 04:41 AM
For your Long signals:
{ EntryLong }
In:=Mov(C,14,S)>Mov(C,25,S)
AND Mov(C,120,S)>Mov(C,200,S)
AND ADX(26)>ADX(28);
{ ExitLong }
Out:=Mov(C,14,S)<Mov(C,25,S);
{ Cleanup signals }
Init:=Cum(In+Out>-1)=1;
InInit:=Cum(In)=1;
flag:=BarsSince(Init OR In)
<BarsSince(Init OR Out)+InInit;
signals:=(InInit AND Alert(InInit=0,2)
OR flag AND Alert(flag=0,2))
-(flag=0 AND Alert(flag,2));
{ Long signals }
signals
For your Short signals:
{ EntryShort }
In:=Mov(C,14,S)<Mov(C,25,S)
AND Mov(C,120,S)<Mov(C,200,S)
AND ADX(26)>ADX(28);
{ ExitShort }
Out:=Mov(C,14,S)>Mov(C,25,S);
{ Cleanup signals }
Init:=Cum(In+Out>-1)=1;
InInit:=Cum(In)=1;
flag:=BarsSince(Init OR In)
<BarsSince(Init OR Out)+InInit;
signals:=(InInit AND Alert(InInit=0,2)
OR flag AND Alert(flag=0,2))
-(flag=0 AND Alert(flag,2));
{ Short signals }
signals
jose '-)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.