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
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 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
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