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
|
|
|
|
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
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 10/22/2007(UTC) Posts: 14
|
|
|
|
|
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
|
|
|
|
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.