open of next bar

Questions about MultiCharts and user contributed studies.
dingmanhoe123
Posts: 61
Joined: 25 Jul 2013
Has thanked: 18 times

open of next bar

Postby dingmanhoe123 » 22 Jun 2017

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

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: open of next bar

Postby Angelina MultiСharts » 23 Jun 2017

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


Return to “MultiCharts”