View Single Post
  #2 (permalink)  
Old 10-13-2005, 04:41 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 16,320
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
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.
Attached Images
File Type: gif e.2.11.test.gif (16.4 KB, 56 views)
Attached Files
File Type: zip Tracert.zip (1.5 KB, 44 views)
Reply With Quote