NexusFi: Find Your Edge


Home Menu

 





Confirmed Indicators that do not repaint


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 8 posts (11 thanks)
    2. looks_two cory with 8 posts (7 thanks)
    3. looks_3 keepdchange with 5 posts (0 thanks)
    4. looks_4 trader9278 with 4 posts (0 thanks)
      Best Posters
    1. looks_one Zondor with 7 thanks per post
    2. looks_two Big Mike with 1.4 thanks per post
    3. looks_3 tarantino with 1 thanks per post
    4. looks_4 cory with 0.9 thanks per post
    1. trending_up 42,534 views
    2. thumb_up 26 thanks given
    3. group 19 followers
    1. forum 43 posts
    2. attach_file 12 attachments




 
Search this Thread

Confirmed Indicators that do not repaint

  #1 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,476

I know many of you are wondering how to know for sure if an indicator repaints the past or not. So I propose we update this thread with indicators that we know for a fact do not repaint, and under what conditions that is true.

What is repainting?
Repainting is when a historical bar (a bar in the past) gets changed after the fact. This usually occurs on multicolor plots, but there are a few exceptions.

Why repaint?
The most popular reason is to connect two different colored plots together. It's a NinjaTrader limitation -- if the second plot were not connected to the first (ie: falling and rising colored plots), then there would be a visible gap between the two lines.

How can I avoid it?
The only way to absolutely, positively, avoid repainting is to examine the source code of the indicator. Only then can you know for certain if it repaints. The giveaway will look something like this:

 
Code
                            
if (Rising(ma))
{
Up.Set(1ma[1]);
Up.Set(0ma[0]);

The first command "Plot0.Set(1, ma[1]);" is the redraw command. It's taking 1 bar in the past and resetting the value of the plot. This in itself is not the real problem. The real problem is that Up, presumably, is an Rising Color plot. So what if 1 bar ago the MA wasn't rising? What if it was actually falling? Not anymore! It just got repainted to show that it was rising. See the problem?

How can I code to not repaint, but still have multicolor plots?
It's simple really, but it is only going to work on non-Line plots. A line has to be connected, but other plots like Dots don't. So the solution is simply to test to see if the user has selected a Line plot style, and if so, repaint. If not, don't repaint.

 
Code
                            
if (ma[0] > ma[1] && ma[1] < ma[2] && Plots[0].PlotStyle == PlotStyle.Line)
Up.Set(1ma[1]); 
First it's better to not repaint every single bar, ie "if (Rising(ma))". That's every single rising bar. So we just look to see if this ma is higher than last bar, and if the prior bar was lower. In other words, a reversal in direction. If so, we then look to see if it's a Line plotstyle. If it is, then we have to repaint 1 bar in the past to connect the two plots. But if it is a Dot plotstyle, no repainting occurs, and you can sleep better at night.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
The following 7 users say Thank You to Big Mike for this post:

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
67 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
Battlestations: Show us your trading desks!
43 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,476

Known indicators that do NOT repaint, and any special conditions:

Only when set to non-Line plotstyle:

ADXVMA Alerts
SMI2

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
The following 4 users say Thank You to Big Mike for this post:
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,476


Known indicators that DO repaint. This could be viewed as a "someone needs to fix these" list.

DoubleMA

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 Blz17 
Seattle
 
Experience: Beginner
Platform: NinjaTrader Interactive Brokers
Trading: 6B
Posts: 225 since Jun 2009
Thanks Given: 135
Thanks Received: 270

I belive RJay made some changes to the SMA, EMA and WMA color indicators to prevent repainting on them as well. It's in the All You Need thread.

Blz

Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,476

If you are going to add an indicator to either list, please include a LINK to the indicator and when possible a version number. Otherwise it is useless because a newer/different version may exist.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,476

Added DoubleMA to list of known repaint.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


Big Mike View Post
Added DoubleMA to list of known repaint.

Mike

is this a list of indicator that do not repaint or list of know repaint?

Reply With Quote
  #8 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,476


cory View Post
is this a list of indicator that do not repaint or list of know repaint?

Yes, you can read post #1, #2 and #3 for info.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #9 (permalink)
trader9278
louisiana
 
Posts: 14 since Jun 2009
Thanks Given: 0
Thanks Received: 0

mike im looking at a 12 range no gap chart with adxvma alerts set on 2 period, and i changed everything to dots. at 19:03 central time there was a yellow dot on a down bar at 19:26 central time the next bar closed down and both dots changed to red . i read somewhere you said to use dots and not lines and they wont repaint. am i doing something wrong?

Reply With Quote
  #10 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,476


Are you using the no-repaint version linked above? If not, then changing to dots won't fix anything.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote





Last Updated on May 4, 2015


© 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