finance - MT4 Time based entry signal in MetaTrader4 -


Is there any code for any instance to generate during day based entry signals in MetaTrader 4? Like a particular hour and minute of each day

I'm just working on such a function There is something to customize - I'm working on creating another common version which is going to be very big and tedious, it will need to include my file but without changing the code, it will have different charts Will be worth being able to stick on This will basically be a big case statement which I already have optimized for each individual time frame.

What are you doing? Thanks for your interest in time and foreign exchange!

  bool existordertime (date time time, int octipat = -37) {// + -------------------------- ---------------------------------------- + / / | This function has been used for the inside of () and other conditions //. Usually called over time () Example: // | // | If (Existordertime (Timecourt ()) // | // | It accepts a datetime from time to time: // | 00:00 Many seconds past January 1, 1970, they can be considered as integer or can be reached with other functions so that if the statement can be easily and commented out on the basis of time, Make plans to explore. // | If you need this, then there is an optional parameter for the order type // | // | If you want to use it to do some business like 5min 15min // keep in mind or 4hr you want a lot like statements: // | // | If (methode (minutes (+5, 5) == 0) // | // + ----------------------------- ------------------ ------------------- + (integer cnt = 0; cnt & lt; OrdersTotal ( ); cnt ++ the {OrderSelect (cnt, SELECT_BY_POS, MODE_TRADES) for); if (OrderType () == Otype -37 || == Otype) // commented out (S) so you do not need to: // Also need to add new lines as // if MathMod (TimeMinute (time + 5, 5) == 0) // 5min chart // if (MathMod (TimeMinute (time + 15, 15) == 0) // 15 minute chart // if (MathMod (TimeMinute + 30, 30) == 0) // 30 minute chart // if (MathHod (TimeHour (time) 4, 4) == 0) / / 4hour chart integer dbOrderOpenTime = OrderOpenTime (); // again sub Industry time saves dbPOOL- use ... if (TimeSeconds (time) == TimeSeconds (dbOrderOpenTime)) if (TimeMinute (time) == TimeMinute (dbOrderOpenTime)) if (TimeHour (time) == TimeHour (dbOrderOpenTime) ) if (TimeDay (time) == TimeDay (dbOrderOpenTime)) if (TimeMonth (time) == TimeMonth (dbOrderOpenTime)) if (TimeYear (time) == TimeYear (dbOrderOpenTime)) return (TRUE); The} (CNT = 0; CNT & lt; Ordrsitihas total (); CNT ++) {Order Select (CNT, Sielbiaipios, Modi_aisaititiari); If (OrderType () == Otype -37 || == Otype) // commented out (S) so you do not need it: as // need to add new lines // if (MathMod (TimeMinute ( Time + 5, 5) == 0 // // 5min chart // if (MathMod (TimeMinute +15, 15) == 0) // 15 minute chart // if (MathMod (TimeMinute (time) + 30, 30) == 0) // 30 minute chart // if (MathMod (TimeHour (time) 4, 4) == 0) // 4hour chart integer dbOrderOpenTime = OrderOpenTime (); // saves reuse dbPOOL- time use ... if (TimeSeconds (time) == TimeSeconds (dbOrderOpenTime)) if (TimeMinute (time) == TimeMinute (dbOrderOpenTime)) if (TimeHour (time) == TimeHour (dbOrderOpenTime) if (TimeDay (time) == TimeDay (dbOrderOpenTime) if (TimeMonth (time) == TimeMonth (dbOrderOpenTime) if (TimeYear (time) == TimeYear (dbOrderOpenTime)) Return (TRUE); }      return false); }  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -