larsnicog: I want to add a buy and sell alert, when the price breakouts of the box. Thanks for the help! Here is the Indicator(Not from me):
May I suggest that you place your request in the Freelance section?
Trading applications for MetaTrader 5 to order
- 2022.08.24
- www.mql5.com
The largest freelance service with MQL5 application developers
Your code | datetime decrementTradeDate (datetime dtTimeDate) { int iTimeYear=TimeYear(dtTimeDate); int iTimeMonth=TimeMonth(dtTimeDate); int iTimeDay=TimeDay(dtTimeDate); int iTimeHour=TimeHour(dtTimeDate); int iTimeMinute=TimeMinute(dtTimeDate); iTimeDay--; if(iTimeDay==0) {iTimeMonth--; if(iTimeMonth==0) {iTimeYear--; iTimeMonth=12;} // Thirty days hath September... if(iTimeMonth==4||iTimeMonth==6||iTimeMonth==9||iTimeMonth==11)iTimeDay=30; // ...all the rest have thirty-one... if(iTimeMonth==1||iTimeMonth==3||iTimeMonth==5||iTimeMonth==7||iTimeMonth==8||iTimeMonth==10||iTimeMonth==12)iTimeDay=31; // ...except... if(iTimeMonth==2) if(MathMod(iTimeYear,4)==0) iTimeDay=29; else iTimeDay=28;} return(StrToTime(iTimeYear + "." + iTimeMonth + "." + iTimeDay + " " + iTimeHour + ":" + iTimeMinute));} |
Simplified. | datetime decrementTradeDate (datetime dtTimeDate) { return yesterday(dtTimeDate); } |
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey
I want to add a buy and sell alert, when the price breakouts of the box.
Thanks for the help!
Here is the Indicator(Not from me):