Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
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
2 registered members (Quad, 1 invisible), 3,713 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Controlling Multiple Entries #413202
12/10/12 06:17
12/10/12 06:17
Joined: Nov 2012
Posts: 19
B
Boris Offline OP
Newbie
Boris  Offline OP
Newbie
B

Joined: Nov 2012
Posts: 19
Question about one last issue:

So if you have code like this:
if( A && B);
enterlong
if (C && D);
entershort

Whats the best way to stop the program from executing mutliple shorts or multiple longs in a row if you get more than one short or long signal in a row. I want one entry until I get the signal to reverse? Any advice? Many thanks in advance?

Re: Controlling Multiple Entries [Re: Boris] #413204
12/10/12 08:18
12/10/12 08:18
Joined: Sep 2012
Posts: 99
T
TankWolf Offline
Junior Member
TankWolf  Offline
Junior Member
T

Joined: Sep 2012
Posts: 99
Pretty easily Boris.

Quote:

if(A && B && NumOpenLong == 0)
enterLong();
else if(C && D && NumOpenShort == 0)
enterShort();

Re: Controlling Multiple Entries [Re: TankWolf] #413262
12/11/12 04:06
12/11/12 04:06
Joined: Nov 2012
Posts: 19
B
Boris Offline OP
Newbie
Boris  Offline OP
Newbie
B

Joined: Nov 2012
Posts: 19
LOL Thanks a lot
I figured it was easy but I wasnt quite how to go about doing it.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1