Page 1 of 1

BowTie

Posted: Tue Jan 24, 2012 8:54 am
by zztopband
Wrote scrip for the Bow Tie from David Landry, sma 10(FastPeriod) crosses ema 20(MediumPeriod) and ema 30(SlowPeriod) downside (bearish), and adding the prospective paramaters.

Cond 1:= Cross(EMA(C, SlowPeriod),MA(C,FastPeriod));
Cond 2:= Cross(EMA(C, MediumPeriod),MA(C,FastPeriod));
Event: Cond1 & Cond2;

Gave me 4 errors, cs1002 ;expected


Where did I go wrong?

Re: BowTie

Posted: Fri Jan 27, 2012 10:55 am
by Chris White
The identifiers for each line cannot contain a space, here's the script with the space removed:

Code: Select all

Cond1:= Cross(EMA(C, SlowPeriod),MA(C,FastPeriod));
Cond2:= Cross(EMA(C, MediumPeriod),MA(C,FastPeriod));
Event: Cond1 & Cond2;

Re: BowTie

Posted: Fri Apr 29, 2016 5:45 pm
by henry1224
Chris, I tried to create this indicator with your code and I still get 4 errors?

Re: BowTie

Posted: Fri Apr 29, 2016 5:55 pm
by Chris White
What 4 errors are you seeing? Don't forget to add your parameters.

Re: BowTie

Posted: Fri Apr 29, 2016 7:01 pm
by henry1224
When I copied the code , I got the same error messages from the first post. I then copied them again and found out that I also had to set the parameters tab. It now works

Thanks