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
  • General Statistics

    • Total Topics
      23,015
    • Total Posts
      95,371
    • Total Members
      43,629
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    Tiganfx
    Joined 27/09/23 00:34
  • Posts

    • I have seen several people leaving their daily jobs to enter into cryptocurrency because they think it's a place where fast money can be made lol. Some people have done it and Excel but that doesn't mean what works for Mr A will work for Mr B. @cryptorovers is an example of a successful crypto enthusiasts who left his McDonald's job in 2016 to become a full time crypto investor but several people have also tried that and got lost.  Getting into new business or opportunity can be dilusional atimes, I could remember when I got into crypto few years back, my popular slang was WAGMI meaning we are all gonna make it together but is that actually true? Of course it isn't. Becoming a crypto Millionare requires a lot. Take for instance, Ben Amstrong popular called Bit boy crypto, aside the fact that he's an early investor in Bitcoin, he has a YouTube channel with over 1.5 Million subscribers and over 1M followers on Twitter where he shares crypto news update, market trends, technical analysis and other new innovations in the world of crypto and blockchain technology across his SNS which has earned him recognition and influence. It is true that when you create influence, money will flow in, no wonder he's now worth around $8M. Embracing cryptocurrency is not a sure way to financial stability. As a matter of fact, it could lead to severe financial loss if one do not do his own research well. To succeed in this space, one must be knowledgeable enough. It's a common parable that people wants to follow who knows the way. Know when opportunities knocks at the door, be patient, remember it took Bitboy almost a decade to hit a million dollar from his BTC holdings.  . Are there other ways you think one could explore or apply to succeed or be financially stable in the crypto space? please feel free to share.
    • Elliott Wave Analysis TradingLounge Daily Chart, 27 September 23, Bitcoin/U.S. dollar(BTCUSD) BTCUSD Elliott Wave Technical Analysis Function: Counter Trend Mode: Corrective Structure: Flat Position: Wave((C)) Direction Next higher Degrees: wave II of Motive Wave Cancel invalid level: 28167.47 Details: Wave ((C)) trend move to 138.2% of Wave ((A)) at 23214.83 Bitcoin/U.S. dollar(BTCUSD)Trading Strategy: Bitcoin overview is still in a downtrend, as the price is below MA200 and wave C is not complete The price has a trend move to 23214.83 which is a 138.2% level of wave A Bitcoin/U.S. dollar(BTCUSD)Technical Indicators: The price is abelow the MA200 indicating a downtrend, RSI is a Bearish momentum. TradingLounge Analyst: Kittiampon Somboonsod, CEWA Source : Tradinglounge.com get trial here! Elliott Wave Analysis TradingLounge 4H Chart, 27 September 23, Bitcoin/U.S. dollar(BTCUSD) BTCUSD Elliott Wave Technical Analysis Function: Counter Trend Mode: Corrective Structure: Triangle Position: Wave 4 Direction Next higher Degrees: wave ((C)) of Flat Wave Cancel invalid level: 28167.47 Details: we are still missing two moves for a triangle to be complete Bitcoin/U.S. dollar(BTCUSD) Trading Strategy: The retest is at MA200 and the price make is a higher low, indicate that the Buyer is weak, so we looking for turning down below 24612 Bitcoin/U.S. dollar(BTCUSD)Technical Indicators: The price is below the MA200 indicating a downtrend, RSI is a Bullish momentum.
    • Commodities Market Trading Report - Technical Analysis is Elliott Wave and Trading Strategies Content: US Bond Yields, USD, DXY, US Gold XAU, GDX, Silver XAG, Gold Stocks, Iron Ore, Copper, Uranium, Crude Oil, Natural Gas. Commodities Market Summary: Bonds down, dollar up, yields up, Gold and Silver down with copper. Uranium long term upwards trend. Crude Oil Wave 4 and Natural Gas could be setting up for long trade, but unconfirmed Video Chapters 00:00  TLT Bonds. US Gov Bonds 10/5 Yr Yields 01:24 US Dollar Index, DXY 03:20 Precious Metals: Spot Gold  / US Spot Silver / XGD 12:00 Base Metals: XME ETF, Iron Ore, Copper. Uranium URA. 21:03 Energy: XLE ETF / Crude Oil / Natural Gas  31:38 End Analyst Peter Mathers TradingLounge™ Australian Financial Services Licence - AFSL 317817 Source: tradinglounge  Access Trial  
×
×
  • Create New...
us