NexusFi: Find Your Edge


Home Menu

 





Color changing Regression Line with Paint Bar


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one zeller4 with 8 posts (8 thanks)
    2. looks_two Kharmaz with 7 posts (0 thanks)
    3. looks_3 gio5959 with 6 posts (0 thanks)
    4. looks_4 essiar with 5 posts (0 thanks)
      Best Posters
    1. looks_one sukhsan with 1.5 thanks per post
    2. looks_two forrestang with 1.5 thanks per post
    3. looks_3 zeller4 with 1 thanks per post
    4. looks_4 Gibby with 0.4 thanks per post
    1. trending_up 23,342 views
    2. thumb_up 21 thanks given
    3. group 19 followers
    1. forum 60 posts
    2. attach_file 12 attachments




 
Search this Thread

Color changing Regression Line with Paint Bar

  #1 (permalink)
 Gibby 
BC
 
Experience: Advanced
Platform: Ninja
Broker: Amp with Zenfire and IB
Trading: ES, currencies, forex
Posts: 75 since Sep 2009
Thanks Given: 15
Thanks Received: 16

New member here and have scoured the downloads for a color changing regression line with paint bar and arrows but it seems there is everything but that. A trading group I am aware of seems to be using it very successfully on the range bars for the ES, NQ and TF e minis and I'm wondering if anyone has come across such a beast.
The Lin Reg indicator in Ninja is the correct formula but is only one color and does not paint the bars nor allows for a user definable angle of the line degree changes to warrant the color changes.
I think if it contained another input for say up to 3 standard deviations from the user selected period, it would be a very useful addition to the toolbox.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
  #2 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hey Gibby,
do a research at the ninjaforum - you can find some nice LinReg stuff there.

max-td
Reply With Quote
  #3 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404



Gibby View Post
New member here and have scoured the downloads for a color changing regression line with paint bar and arrows but it seems there is everything but that. A trading group I am aware of seems to be using it very successfully on the range bars for the ES, NQ and TF e minis and I'm wondering if anyone has come across such a beast.
The Lin Reg indicator in Ninja is the correct formula but is only one color and does not paint the bars nor allows for a user definable angle of the line degree changes to warrant the color changes.
I think if it contained another input for say up to 3 standard deviations from the user selected period, it would be a very useful addition to the toolbox.

Hey Gibby,
Please post a screenshot of how this should look with the LR and the paintbars. I've got one with the colored line available and can modify it for the paintbars unless one of the other coders gets to it first. I'm curious how it's being used by the "trading group" you mentioned. (i.e. what period settings, what other standard deviation settings, what range for bars, etc.)
Kirk

Reply With Quote
  #4 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

Here's my version of the LinReg with colored LR plot with Paintbars

Hope you can use it for successful trading.

Kirk

edited portion below:
9/10/09
1st screenshot has colored line plotting to slope of lin reg plot
2nd has paintbars "True" in UI

test the angle settings as you prefer - please post screenshots of your preferred angles when you get a chance

ps - the EMA_Colors indicator is the basis for this - the paint bars in that file weren't working as I would expect due to a missing BarColor call starting at line 69
 
Code
                            
if(ema34slope>=angle2)
{
 
//Find&Replace EMA(Period) durch ZeroLagEMA(ZeroLagEMA(15), 15)
 
EMAslopeup.Set(1,ZeroLagEMA(ZeroLagEMA(period), period)[1]);
EMAslopeup.Set(ZeroLagEMA(ZeroLagEMA(period), period)[0]);

If anyone has used differing colors for painting when the slope is steep vs. shallow, please let me know how you've resolved this.

Attached Thumbnails
Click image for larger version

Name:	CL 10-09  9_10_2009 (4 Range).jpg
Views:	642
Size:	85.3 KB
ID:	1890   Click image for larger version

Name:	CL 10-09  9_10_2009 (4 Range)b.jpg
Views:	875
Size:	84.4 KB
ID:	1892  
Attached Files
Elite Membership required to download: Lin_Reg_Color_Paint_v01.zip
Reply With Quote
  #5 (permalink)
 Gibby 
BC
 
Experience: Advanced
Platform: Ninja
Broker: Amp with Zenfire and IB
Trading: ES, currencies, forex
Posts: 75 since Sep 2009
Thanks Given: 15
Thanks Received: 16

This works great zeller4. I use the colors like you have them but would just prefer a solid line versus dashed. The setting is angle 5 (for both) and try 5 range bars for the ES, 12 range for NQ and 8 range for TF. The color change (other than neutral) gives you direction and the line itself can act as a stop. I also like the TSSuper Trend (Close8,HMA, 1.786, 4 ATR) hash lines as another stop idea for the ES anyway. The Donchian Channel in NInja set to 5,5 or 6,6 gives nice step visual and can act as breakout line warning as well.

Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 Gibby 
BC
 
Experience: Advanced
Platform: Ninja
Broker: Amp with Zenfire and IB
Trading: ES, currencies, forex
Posts: 75 since Sep 2009
Thanks Given: 15
Thanks Received: 16

Sorry forgot the setting for the LInReg which is 21 periods....lol

Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
 Gibby 
BC
 
Experience: Advanced
Platform: Ninja
Broker: Amp with Zenfire and IB
Trading: ES, currencies, forex
Posts: 75 since Sep 2009
Thanks Given: 15
Thanks Received: 16

DonchianChannel only has 1 parameter (versus another custom indicator I have which does the same thing but allows for different number of high or low bar look back periods, which is unnecessary). So choose a 5 period minimum and up to 10. You can set the DonchianChannel plot to Square instead of Line to get the nice step up/down effect.

Started this thread Reply With Quote
  #8 (permalink)
 
Ausy Mick's Avatar
 Ausy Mick 
Florida
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES
Posts: 69 since Jun 2009
Thanks Given: 45
Thanks Received: 65

Hi Gibby,

I am very intrigued by your trading style - I think it has a lot of potential.
Would you share the entry / exit and trade management that you use or maybe just
a couple of screenshots...

Zeller - great job on the indicator!

Regards

Mick

Reply With Quote
  #9 (permalink)
 gio5959 
Chiron
 
Experience: None
Platform: ninjatrader
Broker: Amp Futures/Zen-Fire
Trading: ES
Posts: 737 since Aug 2009
Thanks Given: 25
Thanks Received: 155

nice job on the indicator zeller4

Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 toulouse-lautrec 
Europe
 
Experience: Beginner
Platform: NinjaTrader
Posts: 73 since Jun 2009
Thanks Given: 13
Thanks Received: 53


looks a lot like this commercial "snake" indicator package .... lol

Reply With Quote




Last Updated on April 22, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts