Debugging EA with printouts?

 

Is there a way to have print outs generated along with your strategy testing of an EA?

What I would like to do is to definite a section of a chart, then run my EA with it prinitng out some values as it runs. Then I would take the printout and compare what was calculated against the actual chart that I used.

This way I can verify my calculations.

How do I do that? I am not sure of the syntax to print out information and where will the information appear.

Thanks.

 

Print Out

Hello

If u r a programmer then it will not be a problem .

Just write it to a file and then u can print it out.

See :

int handle;

datetime orderOpen=OrderOpenTime();

handle=FileOpen("filename", FILE_CSV|FILE_WRITE, ';');

if(handle>0)

{

FileWrite(handle, Close[0], Open[0], High[0], Low[0], TimeToStr(orderOpen));

FileClose(handle);

}

Thank you.

Tariq

 

Printouts for EA

Thanks.

That does make good sense. I will do it that way.

I appreciate your help.

 

:)

You are welcome.

Tariq

Reason: