Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | chip programmers | 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