Use of trade stats parameters

Posted By: chirpydog

Use of trade stats parameters - 07/29/15 05:06

hi, i am writing a simple script to test my understanding of the above..

i open a few trades (long and short) manually and run the following

function run()
{
BarPeriod=1;
set(TICKS);
asset("EUR/USD");


printf("\n %d Trade(s) found !", NumOpenTotal);
printf("\n %d Long Trade(s) found !", NumOpenLong);
printf("\n %d Short Trade(s) found !", NumOpenShort);
}

But the message windows reflected the following:

[278: Wed 29.07.15 05:04] 1.10604
0 Trade(s) found !
0 Long Trade(s) found !
0 Short Trade(s) found !

Can someone enlighten me as what is wrong with my script ?
Posted By: GPEngine

Re: Use of trade stats parameters - 07/29/15 05:20

A Strategy only cares about the trades it opens and manages itself
Posted By: chirpydog

Re: Use of trade stats parameters - 07/29/15 11:32

Thanks GPEngine...
© 2024 lite-C Forums