Confirmed Indicators that do not repaint - futures io
futures io futures trading



Confirmed Indicators that do not repaint


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Thread Tools Search this Thread
 

Confirmed Indicators that do not repaint

  #1 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,768 since Jun 2009
Thanks: 31,478 given, 94,130 received

Confirmed Indicators that do not repaint

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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal 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 futures io?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
 
  #2 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,768 since Jun 2009
Thanks: 31,478 given, 94,130 received

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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
The following 4 users say Thank You to Big Mike for this post:
 
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,768 since Jun 2009
Thanks: 31,478 given, 94,130 received


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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #4 (permalink)
Seattle
 
Experience: Beginner
Platform: NinjaTrader Interactive Brokers
Trading: 6B
 
Posts: 225 since Jun 2009
Thanks: 135 given, 270 received

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 futures io Trade Journal Reply With Quote
 
  #5 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,768 since Jun 2009
Thanks: 31,478 given, 94,130 received

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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #6 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,768 since Jun 2009
Thanks: 31,478 given, 94,130 received

Added DoubleMA to list of known repaint.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #7 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 5,994 since Jun 2009
Thanks: 830 given, 7,819 received


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)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,768 since Jun 2009
Thanks: 31,478 given, 94,130 received


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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #9 (permalink)
louisiana
 
 
Posts: 14 since Jun 2009
Thanks: 0 given, 0 received

ADXVMA alerts

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)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,768 since Jun 2009
Thanks: 31,478 given, 94,130 received


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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote



futures io Trading Community Platforms and Indicators NinjaTrader > Confirmed Indicators that do not repaint




Upcoming Webinars and Events
 

Free BloodHound Licenses to everyone!

June
 

Every journal equals ten meals for the hungry

June
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts