I create a button. it work on very well. but it is not work on backtest. I don't know why. can anyone tell me how button work on backtest on visual mode.
But i download this product : https://www.mql5.com/en/market/product/XXXX
it work button on visual back testing. How it work?
no this product not use any plugin. Because it don't download any plugin file. Here the file i download from market and test on visual backtests, button also work on back tests.
regardless to your issuemartingale is a very dangerous strategy it can wipe you out
You have to check the button state :
Which can only be done in OnTick() with the Strategy Tester, as other events (OnTimer, OnChartEvent) are not working.
Thanks for the clarification. Do you know whether this is something that MQL are going to fix?
I've been putting off converting all my Buttons from MT4GUI to the new MQL code for this very reason (as well as the lack of ENUM_BORDER_TYPE for Buttons), and I'm still not sure whether it is worth creating the code for OnTick and OnChartEvent so that they will also work when back testing.