Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 13,353 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Use of trade stats parameters #453490
07/29/15 05:06
07/29/15 05:06
Joined: Feb 2015
Posts: 11
C
chirpydog Offline OP
Newbie
chirpydog  Offline OP
Newbie
C

Joined: Feb 2015
Posts: 11
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 ?

Re: Use of trade stats parameters [Re: chirpydog] #453492
07/29/15 05:20
07/29/15 05:20
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California
A Strategy only cares about the trades it opens and manages itself

Re: Use of trade stats parameters [Re: GPEngine] #453498
07/29/15 11:32
07/29/15 11:32
Joined: Feb 2015
Posts: 11
C
chirpydog Offline OP
Newbie
chirpydog  Offline OP
Newbie
C

Joined: Feb 2015
Posts: 11
Thanks GPEngine...


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1