I'm having some troubles with a strategy in Unmanaged mode: Even though I have only a single buy order, I'm getting an Exit on Close trade that I don't want/need.
How can I get rid of it?
I've attached a screenshot of the chart and my strategy's code. The order is entered on line 90 in the .cs file.
// Enter long trade if (Close[0] > trend && Close[0] >= MAX(Close, Per_Long_BO)[0] && iSignalL != 1) { Print(CurrentBar + ", Enter long trade=> Close: " + Close[0] + " || trend: " + trend + " || othercondition: " + MAX(Close, Per_Long_BO)[0]); iSignalL = 1; entryOrder = SubmitOrder(0, OrderAction.Buy, OrderType.Market, DefaultQuantity, 0, 0, "", "Enter Long"); }
D
Comment