Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 472 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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