Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by jcl. 04/24/26 17:48
ZorroGPT
by TipmyPip. 04/23/26 14:23
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (VoroneTZ, kiamonster, Grant, 1 invisible), 3,511 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 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