MT5 open trades every new candle
//============================================================================// int CHECK_NEW_M1_FRAME () { //< 1> //< 2> static datetime TIME_M1_LAST = NULL ; //< 3> datetime TIME_M1_THIS = iTime ( SYMBOL , PERIOD_M1 , 0 ) ; //< 4> //< 5> if ( TIME_M1_LAST < TIME_M1_THIS ) //< 6> { //< 7> TIME_M1_LAST = TIME_M1_THIS ; //< 8> //< 9> /* TRADING CODE */ ; //<10> //<11> FLAG_NEW_M1 = true ; //<12> } //<13> else FLAG_NEW_M1 = NULL ; //<14> //<15> //<16> return true ; } //<17> //============================================================================//
Thanks Airat Safin! I'm sorry I'm a beginner and I don't know how to work with the codes. I need the complete code or a complete EA. Can you help me?
- Don't double post! You
already had this thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum - Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button)
and state the nature of your problem.
No free helpOr pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum
Thanks Airat Safin! I'm sorry I'm a beginner and I don't know how to work with the codes. I need the complete code or a complete EA. Can you help me?
It is possible if it is not very complex
- Don't double post! You already had this
thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum - Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button)
and state the nature of your problem.
No free helpOr pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum
ok thanks