NexusFi: Find Your Edge


Home Menu

 





Linear Regression Intercept Slope Color


Discussion in Tech Support

Updated
    1. trending_up 5,782 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 11 posts
    2. attach_file 6 attachments




 
Search this Thread

Linear Regression Intercept Slope Color

  #1 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 21 since May 2018
Thanks Given: 1
Thanks Received: 1

Hi,

Could someone help me add Rising and Falling colors to the Ninjatrader 8 Linear Regression Intercept indicator?

thanks,
David

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

Can you help answer these questions
from other members on NexusFi?
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

If you just want to color based on the rising/falling conditions w/o having to code anything, you can use THIS TOOL referenced by @Sylvester17. The tool is HERE.

You can color any indicator with plots with it.

Reply With Quote
Thanked by:
  #3 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 21 since May 2018
Thanks Given: 1
Thanks Received: 1



forrestang View Post
If you just want to color based on the rising/falling conditions w/o having to code anything, you can use THIS TOOL referenced by @Sylvester17. The tool is HERE.

You can color any indicator with plots with it.

Thanks for the suggestion...

I watched the video and see how it works. The problem is I want to use it on a 500 tick chart using a 1000 tick data series on the same chart so it is better if I could have the code in the Linear Regression Intercept?

Started this thread Reply With Quote
  #4 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


fiddlinground View Post
I watched the video and see how it works. The problem is I want to use it on a higher time frame so it is better if I could have the code in the Linear Regression Intercept?

Did you configure the input?

Watch that video at the download link, he explains how to configure the input in the first 30 seconds or so. That would be the easiest way to get an understanding.
2021-03-15_085058

Reply With Quote
  #5 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 21 since May 2018
Thanks Given: 1
Thanks Received: 1


forrestang View Post
Did you configure the input?

Watch that video at the download link, he explains how to configure the input in the first 30 seconds or so. That would be the easiest way to get an understanding.
2021-03-15_085058

I watched the video and see how it works. The problem is I want to use it on a 500 tick chart using a 1000 tick data series on the same chart so it is better if I could have the code in the Linear Regression Intercept?

Started this thread Reply With Quote
  #6 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


fiddlinground View Post
I watched the video and see how it works. The problem is I want to use it on a 500 tick chart using a 1000 tick data series on the same chart so it is better if I could have the code in the Linear Regression Intercept?

So you want a 1000 tic LRI displayed ONTO a 500 tic chart?

Reply With Quote
  #7 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 21 since May 2018
Thanks Given: 1
Thanks Received: 1


forrestang View Post
So you want a 1000 tic LRI displayed ONTO a 500 tic chart?

Yes, in panel 1. I just add two data series to the chart, add them both to Panel 1 and change the input series on the LRI..

Started this thread Reply With Quote
  #8 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


fiddlinground View Post
Yes, in panel 1. I just add two data series to the chart, add them both to Panel 1 and change the input series on the LRI..

This can be done also with that indicator....

I do not mean to discourage you wanting to code it, I was just suggesting this as a way to not have to code antyhign, which if that is the case you can do that also.

But I figured Id point it out.

But if you want to do it, you can add a second data series to your chart of 1K tics like I have. Then apply the plot to that second series. You can then shrink the bottom panel where you can't see it anymore(2nd pic).

Both averages are shown. The orange is the standard one on 14 periods. The colored one is based on the 1K tic chart of 14 periods with the rising/falling conditions

2021-03-15_090456


2021-03-15_090710

Reply With Quote
  #9 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 21 since May 2018
Thanks Given: 1
Thanks Received: 1


forrestang View Post
This can be done also with that indicator....

I do not mean to discourage you wanting to code it, I was just suggesting this as a way to not have to code anything, which if that is the case you can do that also.

But I figured Id point it out.

[/IMG]

Okay, I figured it out and have it on the chart now. That works nice. It is a nice indicator. thanks!

Started this thread Reply With Quote
  #10 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 21 since May 2018
Thanks Given: 1
Thanks Received: 1



forrestang View Post
This can be done also with that indicator....

I do not mean to discourage you wanting to code it, I was just suggesting this as a way to not have to code anything, which if that is the case you can do that also.

But I figured Id point it out.

But if you want to do it, you can add a second data series to your chart of 1K tics like I have. Then apply the plot to that second series. You can then shrink the bottom panel where you can't see it anymore(2nd pic).

Both averages are shown. The orange is the standard one on 14 periods. The colored one is based on the 1K tic chart of 14 periods with the rising/falling conditions

I like this Color The Plot indicator. The indicator would not let me erase the Label and I commented this code out:
//if (Input is Indicator)
//Name = "CTP+"+Input.ToString(); // To show on chart "CTP+indicator" used

The problem is that also erased the name of the indicator in the Indicator Panel

Any suggestions on how I can fix that and also be able to erase the Label?

thanks,
David

Started this thread Reply With Quote




Last Updated on March 15, 2021


© 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