LX:=Fml("[censored]tfbuyclose_algo");
SE:=Fml("[censored]TFOpenSell");
SX:=Fml("[censored]tfsellclose_algo");
Z:=ExtFml("forum20.Latch",LE,LX,SE,SX);
EnterLong:=((Z = 1) AND (Ref(Z,-1) <> 1));
ExitLong:=((Z = 0) AND (Ref(Z,-1) = 1));
EnterShort:=((Z = -1) AND (Ref(Z,-1) <> -1));
ExitShort:=((Z = 0) AND (Ref(Z,-1) = -1));
EnterLong:=If(EnterLong,1,0);
ExitLong:=If(ExitLong,2,0);
EnterShort:=If(EnterShort,3,0);
ExitShort:=If(ExitShort,4,0);
If(EnterLong=1,ExtFml("delete.SumArrays4",EnterLong,"Buy","Open"),0);
If(ExitLong=1,ExtFml("delete.SumArrays4",ExitLong,"Buy","Close"),0);
If(EnterShort=1,ExtFml("delete.SumArrays4",EnterShort,"Sell","Open"),0);
If(ExitShort=1,ExtFml("delete.SumArrays4",ExitShort,"Sell","Close"),0);
EnterLong;
ExitLong;
EnterShort;
ExitShort;
When I see value in chart, it show value in EnterLong/Short and ExitLong/Short , but the message pop just show 0.0000 value passed on.
The code is fine on MSXTest.
Thank You,
Teng Fei