logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Brent  
#1 Posted : Monday, February 22, 2010 8:36:08 PM(UTC)
Brent

Rank: Member

Groups: Registered, Registered Users
Joined: 10/22/2007(UTC)
Posts: 14

Crossingvalue:=ValueWhen(1,Cross(L,Mov(C,89,S)),C);
Cross(C ,(Crossingvalue)+ATR(14))

This formula gives a signal when the close + ATR(14) closes higher than the close when the low crossed over the moving average.

My question is: I don't want any additional signals generated unless a new crossingvalue has been generated. How do I stop additional signals?

Thanks for your help!

Brent

oztrader  
#2 Posted : Tuesday, February 23, 2010 12:04:49 AM(UTC)
oztrader

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 7/12/2007(UTC)
Posts: 134
Location: Perth Western Australia

Hi Brent,

{Your Indicator Name}

LxMA:=Cross(L,Mov(C,89,S));
Trigger:=Cross(C,ValueWhen(1,LxMA,C) + ATR(14));
Count:=Trigger;
Counter:=Cum(Count);
Reset:=LxMA;
Cross(Counter-ValueWhen(1,Reset,Counter),0.5)

Wabbit showed me how to use the last 4 lines of code when I had a similar problem.

Cheers,

oz

Brent  
#3 Posted : Tuesday, February 23, 2010 6:12:13 PM(UTC)
Brent

Rank: Member

Groups: Registered, Registered Users
Joined: 10/22/2007(UTC)
Posts: 14

Thanks for the help!
Brent  
#4 Posted : Thursday, February 25, 2010 6:31:33 PM(UTC)
Brent

Rank: Member

Groups: Registered, Registered Users
Joined: 10/22/2007(UTC)
Posts: 14

Help!

I can't get the formula you sent to work. I also can't find the function "reset" that you used.

Brent

oztrader  
#5 Posted : Thursday, February 25, 2010 8:07:24 PM(UTC)
oztrader

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 7/12/2007(UTC)
Posts: 134
Location: Perth Western Australia

Brent,

"Reset" is a variable not a function.

Create a new formula in the Indicator Builder called "Crossover Trigger" and then copy & paste all 6 lines of code as per my above post.

If you insert the new formula in a separate window on a chart you will get a spike (value=1) on the first valad trigger of each setup.

Cheers,

oz

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.