I have a very simple code which should open a trade when conditions are met ONLY at the open of a bar and close at the same bar.
It closes indeed at the close, however it opens not at the open but at a price I cannot trace. Please help!
If (IsBarOpen is True) && (((Close > Close ) and ( Market Position() is Flat) And (IsBarOpen is True))))
Buy 0.1 Lots at market
Close position after 1 bars
You must be logged in to reply to this topic.