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

Reply
Old 09-16-2008, 09:55 PM   #1

Join Date: Aug 2008
Posts: 5
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Trend Indicator Paintbar

I am looking for a Paintbar ELD for tradestation that uses three colors to identify an up trend, down trend and trendless market. I have only been able to find something listed on Jan Arp's website, and I have been unsuccessful in writing my own code. Any one who could point a newbie with code writing for tradestation in the right direction I would greatly appreciate it. Thank you.
Squire69 is offline  
Reply With Quote
Old 09-16-2008, 10:26 PM   #2

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts

Re: Trend Indicator Paintbar

What is your definition of an uptrend, downtrend and trendless market?
sevensa is offline  
Reply With Quote
Old 09-17-2008, 09:34 AM   #3

Join Date: Aug 2008
Posts: 5
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Re: Trend Indicator Paintbar

A consecutive number of higher highs and higer lows would be a uptrend and the reverse for a downtrend. As far as how to plot it mathematically I was trying things like a MA crossover for the trend and Bollinger Bands and Keltner Channels to determine "No" trend" like in the squeeze indicator, or 3-SMA of the Pivot and a 5-SMA of the close. Like I mentioned above I was never able to get anything to work and I thought one of the "smarter" people who review this site might have this figured it out already. Thanks for your interest Sevensa...
Squire69 is offline  
Reply With Quote
Old 09-17-2008, 09:58 AM   #4

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts

Re: Trend Indicator Paintbar

Oh, so you don't actually just want some coding help, you also want someone to give you a definition for uptrend/downtrend and then code it for you?
sevensa is offline  
Reply With Quote
Old 09-17-2008, 10:38 AM   #5

brownsfan019's Avatar

Join Date: Jan 2007
Location: USA
Posts: 4,255
Ignore this user

Thanks: 1,912
Thanked 1,789 Times in 895 Posts

Re: Trend Indicator Paintbar

So all you need is an indicator that tells you when there's a trend forming and when it's going to chop?

That's easy but not sure how to post the code here, so I can't help. Sorry.

brownsfan019 is offline  
Reply With Quote
Old 09-17-2008, 10:52 AM   #6

Join Date: Aug 2008
Posts: 5
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Re: Trend Indicator Paintbar

[QUOTE=sevensa;48218]Oh, so you don't actually just want some coding help, you also want someone to give you a definition for uptrend/downtrend and then code it for you?[/QUOTE

Actually, that would be great. I know the end result that I am looking for, but as I mentioned already, I don't now how to create it. I have been coming to this site for three weeks and I have seen other people post things they wanted yet did not have the "know how" to get done, and some one helped them get it. If am in error on this then I apologize and I'll go buy the indicator that Jan Arp's is peddling. Thanks anyway.
Squire69 is offline  
Reply With Quote
Old 09-17-2008, 10:58 AM   #7

Join Date: Oct 2006
Location: na
Posts: 307
Ignore this user

Thanks: 33
Thanked 89 Times in 58 Posts

Re: Trend Indicator Paintbar

Why don't you post your actually rules for trend and actual rules for chop. That way someone can actually help you.


Quote:
Originally Posted by Squire69 »
...As far as how to plot it mathematically I was trying things like a MA crossover for the trend and Bollinger Bands and Keltner Channels to determine "No" trend" like in the squeeze indicator, or 3-SMA of the Pivot and a 5-SMA of the close. Like I mentioned above I was never able to get anything to work and I thought one of the "smarter" people who review this site might have this figured it out already. Thanks for your interest Sevensa...
That wont cut it. You are asking for the code, not for help on the code. Not sure really what you expected here? Just for someone to hand you a file???
trader273 is offline  
Reply With Quote
The Following User Says Thank You to trader273 For This Useful Post:
Squire69 (09-17-2008)
Old 09-17-2008, 11:21 AM   #8

Join Date: Aug 2008
Posts: 5
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Re: Trend Indicator Paintbar

What I envisioned was a paintbar that was userdefined for a MA Crossover. That could be used to define the trend. It would paint the uptrend one color and the the down trend another. Then something using the bollinger bands and the keltner challege crossing to define the trendless market. That would paint the bars a third color.

As far as someone handing me a file goes... I thought someone might have this figured out already and they would want to post it because I thought it would be of interest to more then just me. I have seen it happen many times on this site, so I created this thread. I have never posted on a site before, so perhaps I am in error in some protocol. I thought this was a good idea that many people would benefit from; it was not my intention to offend anyone.
Squire69 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
Heikin Ashi Trend Indicator Soultrader Trading Indicators 37 07-26-2009 06:06 PM
Trend lines on an indicator zardoz Technical Analysis 6 04-21-2009 12:37 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
Volume Gradient + Heikin Ashii Trend Indicator GCB Trading Indicators 27 04-07-2007 08:29 AM

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