I have an error-message with an entry triggered in a script. I dont need to post the messages because I found out what is the reason:
the script entered long in CL at 22.57 and I got the message that stopmarket and can not be above, clear of course. When going over the executions I recognized that this script has done a long entry at 22.97 today few hours ago. The stop wth 22.93 was from this entry it seems. Why isnt the script setting the appropriate stop for that trade when I have in the script in onececution "if (entryOrderLr1a == execution.Order)
{
if (execution.Order.OrderState == OrderState.Filled)
{
SetStopLoss("Lr1a", CalculationMode.Ticks, 4, false);
SetProfitTarget("Lr1a", CalculationMode.Ticks, 4);
...
Why is there the stop of the trade before with that script?
Thank you!
Tony
Comment