NexusFi: Find Your Edge


Home Menu

 





Repainting Indicators and Backtesting


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one elitetradernyc with 2 posts (0 thanks)
    2. looks_two baruchs with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 cory with 1 posts (0 thanks)
    1. trending_up 2,234 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 elitetradernyc 
new york, ny
 
Experience: Intermediate
Platform: ninjatrader
Trading: stocks, options
Posts: 80 since Nov 2012
Thanks Given: 6
Thanks Received: 4

Hey guys just wondering if anyone experienced a similar problem. It seems as though whenever I use an indicator that redraws previous data points at each bar, that it skews the backtesting results. Has anyone experienced something similar? What was your solution?


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
The Great Rotation -- Small Caps Crushing Tech as Sectio …
Traders Hideout
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
Prop Firm Tracked Payouts Hit $115M in Q1 but Growth Fla …
Funded Trading Evaluation Firms
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
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
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093


that don't use repaint indi for backtesting?


Reply With Quote
  #4 (permalink)
 
echoeversky's Avatar
 echoeversky 
Puyallup, Washington State
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NINJATRADER/CQG
Trading: NQ, CL, ES, YM
Posts: 115 since Sep 2009
Thanks Given: 113
Thanks Received: 48

always errors, always points in the data that are at issue.

That doesn't mean that proper testing methodologies cannot win the day.

Several issues may be at play however, say ones perception as to when an actual indicator fires that feeds ones strategy.

Say you brought in a custom indicator such as .. as crap.. I dont have the code on me at the moment..

where you define the type in the variables section and then later on in OnStartUp you make it your own like mySMA = SMA(Input,5);

At the beginning of OnBarUpdate make sure that you're doing a mySMA.Update();


Another problem is that if you're building strats on indicators that post results n number of bars ago like ZigZag or some such one is always going to be late to the party.


That said I make ninjatrader cry itself to sleep with what I try to pipe through it on near 1 tick like bars. It just cant handle the processing beyond say 10 days of data and 60 days is right out.

-E.


Follow me on X Reply With Quote
  #5 (permalink)
 baruchs 
Israel
 
Experience: Intermediate
Platform: NinjaTrader
Broker: pfg
Trading: eminis
Posts: 323 since Jun 2009

Don't backtest.
Start immediately real money trading!


elitetradernyc View Post
Hey guys just wondering if anyone experienced a similar problem. It seems as though whenever I use an indicator that redraws previous data points at each bar, that it skews the backtesting results. Has anyone experienced something similar? What was your solution?


Reply With Quote
  #6 (permalink)
 elitetradernyc 
new york, ny
 
Experience: Intermediate
Platform: ninjatrader
Trading: stocks, options
Posts: 80 since Nov 2012
Thanks Given: 6
Thanks Received: 4

I got it done. Had to change it so it doesnt redraw past bars.


Started this thread Reply With Quote




Last Updated on June 9, 2013


© 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