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?
BowTie
Moderator: Chris White
-
- Posts: 212
- Joined: Mon Nov 29, 2010 9:21 pm
Re: BowTie
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
Chris, I tried to create this indicator with your code and I still get 4 errors?
-
- Posts: 212
- Joined: Mon Nov 29, 2010 9:21 pm
Re: BowTie
What 4 errors are you seeing? Don't forget to add your parameters.
Re: BowTie
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
Thanks