Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/27/2006(UTC) Posts: 135
|
How to code a bar count back on a indicator to the next signal. When use barssince(Ind1), the bar count is forward but how to do a bar count back rather than count forward?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/25/2006(UTC) Posts: 79
|
barssince(Ind1)-barssince(nextsignal)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/27/2006(UTC) Posts: 135
|
Hi Wblam,
There is just 1 indicator so how do you define the nextsignal? Barssince count the bars forward when there is a signal occurence but is possible to to do the opposite? When there is a signal count bar backward to previous signal.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/25/2006(UTC) Posts: 79
|
hi Flexi ,
Difference between 3 and 7 is 7-3 Difference between -3 and -7 is (-7) - (-3) therefore the Barssince count forward or backward is not important here. How to define the next signal? You should tell us. Can you post your formula and tell us what signal you want?
or you may try :
valuewhen(1,defination of signal, cum(1))-valuewhen(2,defination of signal, cum(1))
|
|
|
|
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.