BowTie

This is the place to discuss EdgeRater Chart Script

Moderator: Chris White

Post Reply
zztopband
Posts: 8
Joined: Tue Nov 15, 2011 2:01 pm

BowTie

Post 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?
Chris White
Posts: 201
Joined: Mon Nov 29, 2010 9:21 pm

Re: BowTie

Post 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;
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Re: BowTie

Post by henry1224 »

Chris, I tried to create this indicator with your code and I still get 4 errors?
Chris White
Posts: 201
Joined: Mon Nov 29, 2010 9:21 pm

Re: BowTie

Post by Chris White »

What 4 errors are you seeing? Don't forget to add your parameters.
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Re: BowTie

Post 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
Post Reply