sell short on next bar

 

To sell short on next bar - how would I manipulate the following or is this the right way to go to sell short on next bar?

OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-TakeProfit*Point,"",300,0,Red)

OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)

Predominately I would like to sell short on next bar at  -1 Point Stop

- Zen. 

 
zen656565: To sell short on next bar
Wait until the next bar starts (once per bar) and open.
 
zen656565:

I'm using:

 where 0 is the currentBar - how would I determine when the Next Bar starts - a bit confused? 

would the snippet of code be something like: 

Use time,  Time[] or iTime() ,  the time of any Bar is the time that the bar opened,  so if you check the time of bar 1 it will only change when there is a new bar 1 . . . . if you search for  once per bar you will find some example code.
 
RaptorUK:
Use time,  Time[] or iTime() ,  the time of any Bar is the time that the bar opened,  so if you check the time of bar 1 it will only change when there is a new bar 1 . . . . if you search for  once per bar you will find some example code.


Thanks I will try out.

-Zen 

Reason: