Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

Squire69

Members
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by Squire69

  1. This is the code I have been expirementing with and the only part that seems to work. Anything I have tried to add for a third color for a "trendless market" has failed. inputs: Price( Close), FastLength( 9), SlowLength( 16), UpColor( Green), DnColor( Red) ; variables: FastAvg( 0 ), SlowAvg( 0 ) ; FastAvg = Average( Price, FastLength ) ; SlowAvg = Average( Price, SlowLength ) ; if FastAvg > SlowAvg then begin PlotPaintBar( High, Low, "MACross", UpColor ) ; Alert( "FastAvg above SlowAvg" ) ; end else if FastAvg < SlowAvg then begin PlotPaintBar( High, Low, "MACross", DnColor ) ; Alert( "FastAvg below SlowAvg" ) ; end else NoPlot( 1 ) ; { unpaint the bar }
  2. 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.
  3. 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...
  4. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.