Rank: Advanced Member
Groups: Registered, Registered Users Joined: 9/26/2005(UTC) Posts: 185 Location: Brazil
|
If you want to set a profit target and or Stop loss along with Latch function of Forumdll.dll that does not support that for the time being, you can use a combination of Forumdll.dll and GV.dll to reference the entry price without using PREV.
I have been using it for sometime now without any problem.
See an example here:
ExtFml( "GV.SetVar","LEntry" , ValueWhen( 1, (Cross((Mov((RSI(12)-LLV(RSI(12),12)) / (HHV(RSI(12),12)- (LLV(RSI(12),12))),3,E)*100),25)), C) ); LE:= Cross((Mov((RSI(12)-LLV(RSI(12),12)) / (HHV(RSI(12),12)- (LLV(RSI(12),12))),3,E)*100),25) AND C>(Ref(Mov(C,25,S),-5)) OR C> (ExtFml( "GV.GetVar","LEntry" )* 1.02); LX:= Cross(20,(Mov((RSI(14)-LLV(RSI(14),14)) / (HHV(RSI(14),14)- (LLV(RSI(14),14))),3,E)*100)) OR C<( ExtFml( "GV.GetVar","LEntry" )*.97); SE:=0; SX:=0; B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B>0 AND Ref(B,-1)<=0
Bulli
|