Jump to content

Does 'repainting' invalidate graphical backtesting?


Recommended Posts

:(

By 'graphical backtesting' I mean using the long/short position tool on TradingView.com.

Example

tAhpPzsz

Quote

Repainting can be a big problem while working out a trading strategy.
If you set up some indicators and look at the chart history it can be quite decieving, what may appear in the historical chart to be a great indicator that seems to create good signals on your chart when the lines cross, can actually turn out to be nowhere near as good in live trading because the historical chart only shows that indicator in a frozen moment in time, at the end of each price bar formation.
In practice you may find the indicator lines cross and uncross several times during each bar formation, rendering that indicator close to useless due to constant false signals that dont show on the historical chart.
This is one of the failings of the usual methods of time frame chart trading with indicators.

https://forums.babypips.com/t/what-does-it-mean-when-an-indicator-repaints/34965/4

Link to comment

Can you see what 'strategy' I'm using by looking at that chart?  My backtesting suggests a 50% win rate, which is profitable with a 1:1.5 reward-to-risk. 

It's less than 50% successful with 1:2 on the indices, but makes more money.  Forex 'seems' to whipsaw more than the indices.  But ... need to test 100 times etc.

Link to comment
14 minutes ago, dmedin said:

Repainting can be a big problem while working out a trading strategy.

Depends what you mean by 'repainting' indicators. Most indicators repaint the current bar until bar close because the calculations change when the input data changes, once the bar has closed there is no more incoming data and the indicator is fixed. Most broker supplied indicators work like this but where indicators are written and uploaded by a community they may not.

Some indicators are designed to recalculate the previous n number of bars with each new bar close such as a 'centered' triangular moving average, this gives a smoothed curved fit. Or some indicators may 'backpaint' such as many examples of Zig Zag which delays printing a signal 3 - 5 bars then when confirmed backpaints the signal. Finally some indicators will rearrange signals for a better fit once subsequent bars have been printed, these are favoured by scam indy sellers who can show a perfect fit picture but in reality the indy performance is mixed.

  • Like 1
Link to comment

So basically it's not an issue.  What's really an issue is me jumping into trades before the MACD makes its crossing.  Getting a 'jump start' is, in my experience, less profitable than simply waiting for the confirmation.  :)

ProRealTime does not have graphical backtesting as far as I can see.  I could program this system partially but ultimately I think it has to be discretionary.  So you could program some of the parameters as follows, and set the system to alert you when the conditions are met, then you would review the trade and decide whether to enter and where to put your stop based on candle patterns etc.

Buy conditions:

  • Price < 200 EMA 

  • MACD crossed below signal line from above 0 

  • Bearish candle (e.g. bearish engulfing where current close is > than previous candle close and current open is >= previous candle open)

  • PSAR is above price (sell)

Sell conditions are the opposite.

I suppose if you wanted to fully automate it you could simply place the stop a couple of points below/above the PSAR and set TP to 1.5x the distance of the stop.

There are other buy conditions and variations such as:

* Buy when MACD rises above signal while both lines are above 0 on a bullish candle making a higher high with a stop just under the previous bullish candle

* Opposite for selling

 

And all sorts of other variations and optimizations are possible.  Slope of the 200 EMA?

 

Edited by dmedin
Link to comment

I'm SFB today and copied and pasted the wrong bit.

It should be:

SELL conditions:

  • Price < 200 EMA 

  • MACD crossed below signal line from above 0 

  • Bearish candle (e.g. bearish engulfing where current close is < than previous candle close and current open is <= previous candle open)

  • PSAR is above price (sell)

BUY conditions are the opposite.

Edited by dmedin
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • image.png

  • Posts

    • Market Outlook: It appears that the recent correction in the SP500, NASDAQ 100, and leading tech stocks may be over. The bullish momentum from last Friday's close is likely to continue into Monday, signaling a potential "risk-on" environment. Meta (META) is leading this rally, while Nvidia (NVDA) is showing a clear Impulse Wave off its recent low. Aside from Microsoft (MSFT), most stocks appear ready for upward trades, with our long position on Netflix (NFLX) already triggered. Bitcoin (BTC) may also have found its Wave 2 low, suggesting that long opportunities in cryptocurrency are emerging, which will be covered in our upcoming session video. Video Chapters 00:00 NASDAQ 100 (NDX). SP500 (SPX). 08:21 Apple (AAPL) 09:37 Amazon (AMZN) 10:22 NVIDIA (NVDA) 11:25 Meta Platforms (META) 15:54 Netflix (NFLX)  16:43 Alphabet (GOOGL) 18:03 Microsoft MSFT 19:08 Tesla (TSLA) 20:55 Bitcoin 23:10 End Analyst Peter Mathers TradingLounge™  Source: tradinglounge  
    • GMR Center - www.GMR.Center Create. Empower. Game. Welcome to GMR Center - the nexus of gaming and blockchain. Trade, play, interact, and thrive in a digital world powered by the $GMR token. Join the revolution today! https://x.com/GMRCenter/status/1842512956031995957 - GMR Center Arcade officially launches on Monday, 7th October 2024 🕹 Our Arcade supports both #BNBChain & #Base. Join our Telegram and get ready to start clicking your way to greatness while collecting shards for rewards. https://linktr.ee/gmrcrypto - Links for more details. https://x.com/GMRCenter/ - X https://t.me/GMRCenter - Telegram Immerse into GMR Center and their features: Unlock Web3 Gaming at GMR Center! - https://gmr.center/leet-lotto Dive into GMR Center for cutting-edge web3 gaming, from the high-stakes Leet Lotto to innovative experiences like Battle Leet and the GamerVerse. Your GMR Center account brings web3 power to a world typically wary of decentralized tech. Social Hub - unleash web3 social Dive into the Social Hub for limitless web3 social interaction. Engage with NFT communities, stream Battle Leet, or explore profiles in Users, Games, and NFT Collections. Verified users can convert viral comments into tradable NFTs and tip authors in GMR or BNB tokens. NFT Hub - Trade and engage with NFTs Discover a world of NFT collections from across the web3 gaming universe and beyond. Whether you're placing bids, making offers, or buying outright, the NFT Hub has it all. Follow the collections you love, join the dedicated community discussion, and even tip the creator! Game Hub - web3 gaming like never before The Game Hub offers a comprehensive gaming experience. Explore game profiles across the industry, engage with communities, stream content, and more. Dive into the Game Arcade for innovative web3 games like Leet Lotto, or play GMR's own Battle Leet series and GamerVerse metaverse. Media Hub - a world of web3 content Delve into exclusive web3 content, including the captivating L337 NFT comic series and the latest industry news. Curated by trusted creators, our hub offers a world of reliable web3 content. Verified users can also share articles and earn tips in BNB or GMR tokens. A Web3 Gaming API for the Everyday Developer Build your own games and applications using our API. Leverage the power of blockchain and cryptocurrency to create a new generation of games and applications. Twitch like streaming service - https://gmr.center/stream-hub Streaming isn't just about broadcasting gameplay, it's about creating a shared experience that connects gamers and fosters a vibrant community.  
    • I'd say that Crypto is more algotraded than not. 
×
×
  • Create New...
us