Doing 2 things at the same time with if function

Posted By: Mothership

Doing 2 things at the same time with if function - 12/21/14 17:18

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();
Posted By: DdlV

Re: Doing 2 things at the same time with if function - 12/21/14 18:30

Hi Mothership. Your code associates only the enterLong with the if. Try {}.

HTH.
© 2024 lite-C Forums