NexusFi: Find Your Edge


Home Menu

 





Painted Linear Regression Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one essiar with 1 posts (1 thanks)
    2. looks_two brevco with 1 posts (2 thanks)
    3. looks_3 zeller4 with 1 posts (9 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 6,093 views
    2. thumb_up 12 thanks given
    3. group 4 followers
    1. forum 3 posts
    2. attach_file 3 attachments




 
Search this Thread
  #1 (permalink)
 essiar 
austin
 
Experience: Intermediate
Platform: nt
Broker: AMP/Rithmic
Trading: CL, TF, 6E, NQ
Posts: 27 since Sep 2009
Thanks Given: 0
Thanks Received: 3

I've been using the colored linear regression indicator in NT 6.5 and base a great deal of my trading on it. Lin_Reg_Color_Paint is the name. The first version repainted so someone revised it to not repaint. Then I started using it in NT7 and it repaints multiple times sometimes. Even at slightly different angles so there are times that you actually can see three colors at one point. I love this indicator and if anyone is familiar with it and knows if there is a version out there for NT7 - OR - if they know how to alter it to work a bit better in NT7, please let me know. I've attached the original version. Thanks!


Attached Files
Elite Membership required to download: _Lin_Reg_Color_Paint_v01.zip
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
Iran Ceasefire Surges to 19.5% on US 15-Point Plan -- 82 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #3 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 478 since Jun 2009
Thanks Given: 1,419
Thanks Received: 404


Here's a new version for NT7 using the new "PlotColors" feature. Please let me know if there are any issues.

Good Trading.

Kirk

ps, I removed the underscore "_" at the beginning of the filename so it won't be found near the top of the list any longer.


Attached Files
Elite Membership required to download: Lin_Reg_Color_Paint_v02.zip
Reply With Quote
  #4 (permalink)
 brevco 
Denham Springs, LA
 
Experience: Advanced
Platform: Amibroker / Ninja Trader
Broker: Mirus Zenfire
Trading: TF 6E NQ
Posts: 194 since May 2010
Thanks Given: 259
Thanks Received: 187

Hello,

Since this thread is referencing the Linear Regression I thought it would be the most appropriate place to post this.

Attached is the code I copied and pasted from other sources. My intention is to create arrows with alerts when the linear regression line changes color (not when price closes above/below the LR line). I believe I've accomplished that because I am not getting any error messages, but the problem is....it is plotting an arrow on every candle.

I would also like to be able to select "true/false" for audible alerts but do not know how to include that in the code.

Can someone please help me with the alerts and the code so that I do not get multiple arrows? (You can probably tell I am no programmer and this is my first attempt with Ninja script.)

Thank you,
Evelyn


Attached Files
Elite Membership required to download: LinRegColorAlert.zip
Reply With Quote
Thanked by:




Last Updated on May 3, 2011


© 2026 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 - Downloads - Top
no new posts