Hi to all,
Could you show me how to open an order in this situation;
After Bid passes up a line (could be a line from an indicator) and when Bid backs down from that line an order should be open.
Thank you in advance
It depends on many concepts that you are thinking of ... but this is one of them ...
if(Open>Indicator_variable && Close<Indicator_variable)
if(Open<Indicator_variable && Close>Indicator_variable)
This is just if price of last bar opened in one side of the Indicator line and closed in the other side ...
So, logically you should write the right code that fits your idea.
Good luck ...