Trade the open price of a candle

 

Can someone help me out with a piece of code that detects when a new candle starts and sends an order to buy/sell at the candle open price please.


Thank you

 

btw - please learn howto use this forums search - it will always point you in good direction.

.

Have you been reading the MQL4 Tutorial??? Programming in Algorithmic Language MQL4 - Introductory Course

if not why not?

.

new bar detection: Identifying the open and close of a bar in an EA

 
hi everybody i do sell in my EA but when it talk profit it dosent open anew order although the new candle is going down i use moving crosses strategy but when it gose up and gose down again it open anew order coursing me to loose many sell candels ? and one more q can i change the value of order tiket my slef in the mq4 ? your answer will be depply apreaciated
Reason: