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 : Tuesday, June 16, 2009 10:39:40 AM(UTC)
Flexi

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/27/2006(UTC)
Posts: 135

Have this indicator that plots 1,2,3,4,5 or 0.

Wanted to reference the indicator 1 signal infront on current signal

Says the indicator plots 1 3 2 5 1. On signal 1 the indcator should plot 3 and on signal 3 the indicator should plot 2 and on signal 2 the indcator should plot 5 and on signal 5 the indcator should plot 1.

In other words the the indicator should plot the future next occurence of the signal value on the current signal.

And the number of bars between signals varies and not constant.

Flexi  
#2 Posted : Tuesday, June 16, 2009 10:44:20 AM(UTC)
Flexi

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/27/2006(UTC)
Posts: 135

Intial code:

aa:=Indicator1; {Ind plots 1,2,3,4,5 or 0}
bb:=Barssince(aa); {Counts the number of bars between signals}
ExtFml("forum.ref",aa,-bb); {reference next future signal with number of bars bb between signal}

This code does not plots rite...

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.