NexusFi: Find Your Edge


Home Menu

 





needing plots for indi


Discussion in NinjaTrader

Updated
    1. trending_up 2,365 views
    2. thumb_up 6 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 10 attachments




 
Search this Thread
  #1 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
Posts: 76 since Oct 2020
Thanks Given: 57
Thanks Received: 60

Hey Everyone,

I found this cool indicator through NT ecosystem. I would appreciate help with adding value plots for trending up bars and trending down bars. https://ninjatraderecosystem.com/user-app-share-download/paint-trending-bars/

Thank you
Abdus


Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

Adding plots where, how?

I think you're saying you'd rather have some visual indicator of the HA color, but not have that color on the bars?

Do you want an indicator in a separate pane(like an oscillator)?

Do you want the plots to appear as a moving average of sorts, on the price panel?

Do you want to affix the plots to say the daily open, or something else?


EDIT
Here is an example of a random indicator that either plots green, red or blank. THe value is arbitrarily pinned to the Daily Open price(notice the dots). But this value could be plotted anywhere in any way.


Attached Thumbnails
Click image for larger version

Name:	2022-02-15_153949.png
Views:	148
Size:	71.9 KB
ID:	322233  
Reply With Quote
Thanked by:
  #3 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
Posts: 76 since Oct 2020
Thanks Given: 57
Thanks Received: 60


Hi @forrestang,

Thank you for the OTF indicator. I might have misworded what I was trying to say. I was looking for a way to use the indicator in the strategy builder as I don't have the skills to code otherwise.


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

Added a plot called "MyState". This is in the attached, modified indicator.

This value can either be +1 or -1. If its positive, it is +1,etc.

2nd image shows selecting this plot in the strategy builder.

BUilt a simple strat, that ENTERS LONG if the PREVIOUS indie value(MyState) is -1, and the CURRENT indie value is +1. Arbitrary stop of 20 pips, tgt of 20 pips.


Attached Thumbnails
Click image for larger version

Name:	2022-02-18_143202.png
Views:	168
Size:	31.1 KB
ID:	322264   Click image for larger version

Name:	2022-02-18_144706.png
Views:	170
Size:	119.0 KB
ID:	322265  
Attached Files
Elite Membership required to download: cdkPainTrendBarMod.zip
Reply With Quote
Thanked by:
  #5 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
Posts: 76 since Oct 2020
Thanks Given: 57
Thanks Received: 60

@forrestang,

Thank you so much! Could you also add the atr parameter? It makes a difference to how the indicator works.


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


Abusamjad91 View Post
@forrestang,

Thank you so much! Could you also add the atr parameter? It makes a difference to how the indicator works.

..


Attached Thumbnails
Click image for larger version

Name:	2022-02-18_173213.png
Views:	164
Size:	27.0 KB
ID:	322269  
Attached Files
Elite Membership required to download: cdkPaintTrendBar.zip
Reply With Quote
Thanked by:
  #7 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
Posts: 76 since Oct 2020
Thanks Given: 57
Thanks Received: 60

Hey @forrestang,

Could you please help me do the same thing with this indicator? I tried to replicate your changes from the other indicator, but it messed up the chart. Also, this is a really good indicator for entries, exits, and filtering. I would like the colors (green and red of cStepMA) to act as 1 and -1, regardless of whether a bar on the chart is closing red below the green line (cStepMA). I would much appreciate your help and that of anyone else that decides to help.

Thank you
Abdus


Attached Files
Elite Membership required to download: cStepMA.cs
Started this thread Reply With Quote
  #8 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

Just a note, this and the other indicator are a bit screwy. It looks like it has had a lot of hands in there, and it seems there are things missing.

This indicator looks like an old NT7 indicator, that was ported over to work in NT8, but does not have the typical structure of NT8.

Added plot called "MyState."

By default, I set it to transparent so that it doesn't awkwardly scale the chart, but for some reason, it doesn't show up in the properties section, and I think this is b/c the script is missing the normal "State.SetDefaults", and instead uses NT7 structure.

However, it should be accessible from within the strategy builder as shown in the image.


Attached Thumbnails
Click image for larger version

Name:	2022-02-26_100852.png
Views:	143
Size:	28.6 KB
ID:	322428  
Attached Files
Elite Membership required to download: cStepMA.cs
Reply With Quote
Thanked by:
  #9 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
Posts: 76 since Oct 2020
Thanks Given: 57
Thanks Received: 60

@forrestang Thank you your work is much appreciated and you right I also noticed "It looks like it has had a lot of hands in there, and it seems there are things missing" but nonetheless its a nice indicator.


Started this thread Reply With Quote




Last Updated on February 26, 2022


© 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