Hello I have a robot in MT4 which works fine with all time frames, except M1, no outputs, no trades, why is that ??
It really would depend on the algorithm you wrote for the robot. If any parameters are smaller than the time-frame of one minute this can happen. It really depends on the code used to execute the trades.
thank you
mainly I use this type of fonction
double dima1=iMA(NULL,timex,ma1,0,MODE_SMA,PRICE_CLOSE,0);
thank you
mainly I use this type of fonction
double dima1=iMA(NULL,timex,ma1,0,MODE_SMA,PRICE_CLOSE,0);
-
Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the
MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon. - Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
Check your return codes for errors, report them and you would know why. Don't just silence the compiler, it is trying to help you.
What are Function return values ? How do I use them ? - MQL4 and MetaTrader 4 - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after.- Likely because you are violating limits
You can't move stops (or pending prices) closer to the market than the minimum
(MODE_STOPLEVEL * _Point.)
Requirements and Limitations in Making Trades - Appendixes - MQL4&Tutorial
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello I have a robot in MT4 which works fine with all time frames, except M1, no outputs, no trades, why is that ??