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

    • Hi guys, happy weekend! Cats TGE is getting closer, and a lot of exchanges have rolled out opportunities for users to make the most of it, especially for those who didn’t farm. I’ll be focusing on Bitget Launch Pool since I just locked some BGB.   Here’s the deal: for those who didn’t meet the requirements for the official airdrop, you can still participate in the ongoing launch pool. You can stake BGB or USDT and earn some CATS. The last time I checked, the APR was in triple digits, and the pool ends in about 6 days.   Personally, I think this is a great opportunity to get involved in the Cats ecosystem. What do you think?
    • This gives more opportunity to users to earn more from this launchpool. 
    • Hey I wanted to share my excitement about the upcoming $CATS airdrop and the Bitget Launchpool event. If you're into crypto like me, you won't want to miss this! $CATS Airdrop Claiming First off, the $CATS airdrop is happening soon, and it's super easy to claim. Exchange like Bitget have partnered with Cats to offer a gas-free airdrop on Telegram. This means you can claim your tokens without worrying about those pesky gas fees! The tokens will be automatically credited to your account before the spot trading begins on October 8th, 2024, at 10:00 UTC. But that's not all! The ongoing Launchpool This is a fantastic opportunity to farm some extra tokens. The total distribution for this event is a whopping 19.5 billion $CATS tokens. If you've participated in Launchpool events before, you know how user-friendly and rewarding they can be. Why I'm Excited As someone who has been using the exchange for a while, I appreciate their transparency and the ease of use of their platform. The fact that they are making the airdrop gas-free is a huge plus. Plus, the Launchpool events are always a great way to earn some extra tokens with minimal effort. If you're as excited as I am, make sure to mark your calendars for these dates. Happy farming and trading, everyone!
×
×
  • Create New...
us