Please show the tester log, it will help to find out the reason why it is not working for you.
Hi, I attached the tester log
Looks like the reason is here:
double LotCheck(double lots) { //--- calculate maximum volume double volume=NormalizeDouble(lots,2); double stepvol=m_symbol.LotsStep(); if(stepvol>0.0) volume=stepvol*MathFloor(volume/stepvol); //--- double minvol=m_symbol.LotsMin(); if(volume<minvol) volume=0.0; //--- double maxvol=m_symbol.LotsMax(); if(volume>maxvol) volume=maxvol; //--- return(volume); }
Most likely, your lot in the settings is less than the minimum allowable
P.S. I'm not the author, I came here by chance😄
Looks like the reason is here:
Most likely, your lot in the settings is less than the minimum allowable
P.S. I'm not the author, I came here by chance😄
that looks like a mistake indeed
@Yury I think the code needs to be checked/reuploaded, there are also a lot of warnings when compiling
that looks like a mistake indeed
If I guessed right, then this is mostly user error (incorrect settings). The expert did not try to send an order with an incorrect lot from the settings and this is already good. Therefore, I would not call this particular case an error of the advisor.
I have not tried to compile or run this. My comments only apply to the screenshot of the log you attached.
![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
Advisor Based on RSI and Martingale:
"This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."
Author: Yury Smagin