Now you can open several orders with different lot size. All bugs were corrected.
This program is created for training on historical data. Try it. It’s interesting. This requires to run the application training.exe, open Strategy tester, start testing of the attached expert adviser HistoryTrain.mql. Turn on visual mode and adjust the scroll speed of history. The adviser works with the DLL so it is necessary to allow the DLL in the "Tools" menu, "Options".
Mark the next items:
-Allow dll imports
-Allow live trading
And remove the check mark from the item
-Confirm dll function call
In the application window there are only 3 buttons: buy, sell, close. Look at the currency chart and carry out trading activities on historical data. At the same time look at the chart of profit.
Unpack the archive to the root, then there will be a folder c: \ HistTraining \ in which there are 4 files:
Copy HistoryTrain. mql to the folder with the experts advisers.
This function calculates the heights in pixel of all panes in a window.Horizontal Grid Lines on Chart
The GRID10 indicator will draw a grid on a chart using grid lines positioned and separated at a convenient power of ten. The grid is constructed appropriate to the range of the symbol being plotted on the chart.