I made a strategy that define for me some entry points to enter a Long limit/Short limit as attached to the file. The dots are the entry points. that will be if the market returns back.
What I wish to do, is when the bar under the characteristic of my strategy is defined. I want to put a buy limit just 2 ticks far from it's limit. and wait until the market returns and break the point. the issue is that the platform gave me error message and shut down my strategy saying
"Limit price can't be greater than current ask buy"
I am sharing below the action in my strategy:
{
DrawDot("My dot" + CurrentBar, false, 0, Low[0] -(1 * TickSize), Color.LimeGreen);
myShortEntryOrder= EnterShortLimit(0, true, DefaultQuantity , Low[0] - (2 * TickSize), "My Short");
}
Please, Can you help me to understand my mistake.
Thank you in advance.
Comment