Code: Select all
If trEntryBar < CL75EntryBar and trEntryName = "trSELL" then
Begin
BuyToCover {("trSXBreakEven") from Entry ("trSELL")} 1 Contracts next bar at trEntryPrice stop;
Print(datetimetostring(datetime), " PosTradeCount(0)>", PosTradeCount(0), " trSELL>", trEntryName, " trEntryprice>", trEntryPrice, " ", CL75EntryName);
End;
If trEntryBar < CL75EntryBar and CL75EntryName = "CLB75oxSE" then
Begin
BuyToCover {("CL75SXStopLoss") from Entry ("CLB75oxSE")} 1 Contracts next bar at CL75Entryprice+100 stop;
Print(datetimetostring(datetime), " PosTradeCount(0)>", PosTradeCount(0), " CLB75oxSE>", CL75EntryName, " CL75Entryprice>", CL75Entryprice, " ", trEntryName);
End;