Unisciti alla nostra fan page
- Visualizzazioni:
- 15517
- Valutazioni:
- Pubblicato:
- 2009.09.09 06:26
- Aggiornato:
- 2014.04.21 14:54
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
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:
- HistoryTrain.mql
- libSharedVarsDLLv2.def
- SharedVarsDLLv2.dll
- Training.exe
Copy HistoryTrain. mql to the folder with the experts advisers.
![GetPaneHeights](https://c.mql5.com/i/code/library.png)
This function calculates the heights in pixel of all panes in a window.
![Horizontal Grid Lines on Chart](https://c.mql5.com/i/code/indicator.png)
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.