- about backtest in MT4
- EA for Controlling Number of Trades per pair
- Ea to disable and enable auto trade
You are posting in the forum.
You should be posting in the Freelance section.
- 2022.12.09
- www.mql5.com
You have only four choices:
-
Search for it (CodeBase or Market). Do you expect us to do your research for you?
- Beg at:
- Coding help - MQL4 programming forum
- Make It No Repaint Please! - MQL4 programming forum
- MT4 to MT5 code converter - MQL5 programming forum
- Please fix this indicator or EA - General - MQL5 programming forum
- Requests & Ideas (MQL5 only!) - Expert Advisors and Automated Trading - MQL5 programming forum
- Indicator to EA Free Service - General - MQL5 programming forum
-
MT4: Learn to code it.
MT5: Begin learning to code it.If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.
-
Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2019)
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
No free help (2017)
Something like this?
DD close:
void DDclose(){ double Balance = AccountInfoDouble(ACCOUNT_BALANCE); double Equity = AccountInfoDouble(ACCOUNT_EQUITY); double DD = (Equity-Balance) / Balance; if(DD <= StoplossPercentage/100) CloseAll(); } void CloseAll(){ for(int i=PositionsTotal()-1; i>=0; i--){ ulong ticket = PositionGetTicket(i); trade.PositionClose(ticket); } }
input group "TIME FILTER" input bool TimeFilter = true; input uchar StartHour = 15; input uchar StartMinute = 0; input uchar StopHour = 22; input uchar StopMinute = 0; int TimeIsCorrect(){ MqlDateTime structTradeTime; MqlDateTime structNoTrade; TimeCurrent(structTradeTime); TimeCurrent(structNoTrade); structTradeTime.hour = StartHour; structTradeTime.min = StartMinute; structNoTrade.hour = StopHour; structNoTrade.min = StopMinute; datetime timeAllowed = StructToTime(structTradeTime); datetime TimeNotAllowed = StructToTime(structNoTrade); if(!TimeFilter == true){ return 0; } if(TimeFilter == true && TimeCurrent() > timeAllowed && TimeCurrent() < TimeNotAllowed){ return 0; }else return 1; }
Enjoy!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use