Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
Algorithmic trading course with Zorro
by Haitao_Ren. 10/25/26 03:12
Zorro tutorial ideas?
by Haitao_Ren. 10/25/26 02:47
Zorro plugin for Hyperliquid.xyz
by mayarik. 10/24/26 09:14
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 7,998 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 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