Could the following code be applied to real time trading?
If BarsSinceEntry >= 1 and open of next bar > EntryPrice then
Sell("ProfOpen") next bar at market
What I want is to sell at the first profitable opening
open of next bar
- Angelina MultiСharts
- Posts: 260
- Joined: 28 Dec 2016
- Has thanked: 28 times
- Been thanked: 66 times
Re: open of next bar
Hello dingmanhoe123,
In real-time such strategy will be calculated with delay and only when "open of next bar" is actually available. So the order is going to be sent on bar close or next tick (depending on IOG state).
I'd recommend using Net Profit or OpenPositionProfit
In real-time such strategy will be calculated with delay and only when "open of next bar" is actually available. So the order is going to be sent on bar close or next tick (depending on IOG state).
I'd recommend using Net Profit or OpenPositionProfit