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

Notification

Icon
Error

Options
Go to last post Go to first unread
Flexi  
#1 Posted : Wednesday, June 17, 2009 10:47:30 AM(UTC)
Flexi

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?

wblam  
#2 Posted : Wednesday, June 17, 2009 4:12:32 PM(UTC)
wblam

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/25/2006(UTC)
Posts: 79

barssince(Ind1)-barssince(nextsignal)
Flexi  
#3 Posted : Thursday, June 18, 2009 11:06:20 AM(UTC)
Flexi

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.

wblam  
#4 Posted : Thursday, June 18, 2009 3:41:43 PM(UTC)
wblam

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)
Similar Topics
Count backwards to find sum of specific days (Formula Assistance)
by vikas 7/21/2016 2:54:19 PM(UTC)
Count Back Function (Formula Assistance)
by blackcat54 3/31/2010 2:05:04 PM(UTC)
Variation For Count Back Line Buy & Sell (Formula Assistance)
by klkoo 11/28/2008 5:53:59 AM(UTC)
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.