Hello I would like to create a vertical line on mt5 at 7 o'clock everyday can someone help me with the code
and use
input datetime T0 = D'1970.01.01 05:25'; // Add yout Time ENUM_TIMEFRAMES tf=PERIOD_M1; datetime ClosingTime; int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { //--- ClosingTime = iTime(_Symbol,tf,0); if(TimeToString(ClosingTime,TIME_MINUTES) == TimeToString(T0,TIME_MINUTES)) // DRAW VLINE Use the code mentioned above in Link
![Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_VLINE Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_VLINE](https://c.mql5.com/36/58/documentation-on-mql5-constants__14.png)
- www.mql5.com
-
Don't double post! You already had this thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum (2017) -
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 difficulty.
No free help (2017)Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2018)We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
No free help (2017) -
On a new day, create a new Vline at date()+7*3600.
Please help with one trade per day code - Day Trading - Expert Advisors and Automated Trading - MQL5 programming forum #3.2 (2020)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use