Gamestudio Links
Zorro Links
Newest Posts
The new evaluation system
by jcl. 01/05/26 08:50
bar time, right side open or close?
by Spirit. 01/03/26 08:10
long time to load data
by qin. 12/31/25 09:57
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 2,782 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Doing 2 things at the same time with if function #447606
12/21/14 17:18
12/21/14 17:18
Joined: Apr 2014
Posts: 23
M
Mothership Offline OP
Newbie
Mothership  Offline OP
Newbie
M

Joined: Apr 2014
Posts: 23
Hey!

What should I type if I want my script to do 2 things if something happens. Say that I want to place 1 long trade and 1 short trade when 2 MAs crosses.

I don't seem to get it to work by typing the following:


If(crossOver(MA1,MA2))
enterLong();
enterShort();

Re: Doing 2 things at the same time with if function [Re: Mothership] #447608
12/21/14 18:30
12/21/14 18:30
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline
Serious User
DdlV  Offline
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi Mothership. Your code associates only the enterLong with the if. Try {}.

HTH.


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