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 ?