This should write the changed values:
int fileName = "thefxtfilename"; // change name double i_lot_max = 1; // put your values double i_lot_step = 1; // put your values int file = FileOpenHistory(fileName, FILE_READ|FILE_WRITE|FILE_BIN); FileSeek(file, 148, SEEK_SET); FileWriteInteger(handle, i_lot_max, LONG_VALUE); FileWriteInteger(handle, i_lot_step, LONG_VALUE); FileClose(file);
Well, the easy way was to get an IBFX demo which has the 0.01 lots up to 50 full lots and test using a smaller starting equity (divided by 10). This would mean up to 500 full lots if we would start with 0.1 lots and 10x equity...
Hi there Phy,
I would be most excellent if you could provide instructions on how to change the spread of the symbol in the Strategy Tester. As you may be well aware, the spread used in backtesting is whatever spread value was last detected. As you can see this is highly unreliable and really messes up backtesting. If you could provide instructions on how to change the spread value in the .fxt file, you would be doing me (and the MT4 community) a huge favor. Thank you!!!
Hi,
I need to change the maxlots for a project I'm working. I tried hex editing the fxt file, as it's suggested here http://www.metatrader4.com/forum/1763/, with XVI32 but had no luck with it. Anyone tried changing MAXLOTS successfully?
Thanks
do u want to do some fake backtest result to cheat people?
![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
I need to change the maxlots for a project I'm working. I tried hex editing the fxt file, as it's suggested here http://www.metatrader4.com/forum/1763/, with XVI32 but had no luck with it. Anyone tried changing MAXLOTS successfully?
Thanks