Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 06-05-2009, 08:25 AM   #9

Join Date: Dec 2006
Location: new york
Posts: 31
Ignore this user

Thanks: 1
Thanked 13 Times in 8 Posts

Re: Help With Trend Strength Indicator

Shouldnt it be dtrend= - dtrend1 -dtrend2-dtrend3-dtrend4-dtrend5-dtrend6;
, else you could get dtrend values greater than zero?
insideday is offline  
Reply With Quote
The Following 2 Users Say Thank You to insideday For This Useful Post:
HAL9000 (06-06-2009), Tams (06-06-2009)
Old 06-06-2009, 04:59 AM   #10
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Help With Trend Strength Indicator

Quote:
if avalue > avalue[1] then utrend1=1 else utrend1=0;
if bvalue > bvalue[1] then utrend2=1 else utrend2=0;
if cvalue > cvalue[1] then utrend3=1 else utrend3=0;
if dvalue > dvalue[1] then utrend4=1 else utrend4=0;
if evalue > evalue[1] then utrend5=1 else utrend5=0;
if fvalue > fvalue[1] then utrend6=1 else utrend6=0;

Print(uTrend1, utrend2, utrend3, utrend4, utrend5, utrend6);

The 2nd print statement returns a value of "1" for all variables at all time intervals.
Here is my output in a 1 mn chart

0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00
1.00 0.00 0.00 0.00 0.00 0.00
1.00 0.00 0.00 0.00 0.00 0.00
1.00 0.00 0.00 0.00 0.00 0.00
1.00 1.00 0.00 0.00 0.00 0.00
0.00 1.00 0.00 0.00 0.00 0.00
0.00 1.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00
aaa is offline  
Reply With Quote
Old 06-06-2009, 05:19 AM   #11
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Help With Trend Strength Indicator

what a coincidence, I also use a paintbar with 6 JTHMA with these fibo values

5
13
34
89
233
610
aaa is offline  
Reply With Quote
Old 02-03-2012, 06:32 PM   #12

Join Date: Jan 2012
Posts: 29
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Help With Trend Strength Indicator

i think there is something wrong when i put this indicator on my chart it looks like this.
Attached Thumbnails
Help With  Trend Strength Indicator-clipboard02.jpg  
danhoyda is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trend Indicator Paintbar Squire69 Coding Forum 12 08-15-2010 05:11 PM
Trend lines on an indicator zardoz Technical Analysis 6 04-21-2009 12:37 PM
Trend Indicator Help moneymarkets Coding Forum 0 11-07-2008 06:47 PM
Trend Indicator for TS? J-S Coding Forum 14 03-27-2008 10:15 AM
REQ Help with Trend Indicator jjthetrader Coding Forum 55 12-14-2007 05:33 PM

All times are GMT -4. The time now is 01:18 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.