Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 975 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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