|
I think test on demo account is ok.
Somethimes I am using the Tracert.mqh file. Copy this file to experts\include\.
In the beginning of the EA's code insert:
#include <Tracert.mqh>
For example:
#property copyright ".........."
#property link "http://.............
#include <stdlib.mqh>
#include <Tracert.mqh>
extern double TakeProfit = 200;
extern double Lots = 0.1;
extern double TrailingStop = 0;
extern double StopLoss = 65;
In the beginning of the start() block of the code insert:
SetTrace();
For example:
int start()
{
int ticket, total,totalExpert;
SetTrace();
Then save the EA using MetaEditor (for example e.2.11.test).
Test it using everytick model (do not forget to choose "recalculate").
Click on Open chart button:
red small dots are sell orders, blue - buy; big dots are exit (green - in profit; crimson - loss).
But I think testing on demo is much better.
|