Jump to content

Does 'repainting' invalidate graphical backtesting?


Recommended Posts

Posted

:(

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

Posted

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.

Posted
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
Posted (edited)

Must say, I've jumped the gun on the MACD crossings in live trades and it usually doesn't end well.  Patience and timing, young man! :D 

Edited by dmedin
  • Thought provoking 1
Posted (edited)

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
Posted (edited)

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

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

    • In a world where decentralized system are changing the finance sector with Projects like MakerDAO and Centrifuge have showcased the transformative power of Real-World Assets (RWA) in Web3. By integrating tokenized real estate and enabling SMEs to access liquidity, they’ve bridged traditional assets with decentralized finance. Ink Finance takes this concept further by offering DAOs, protocols, and RWA originators a no-code platform to manage governance, tokenize assets, and establish on-chain credit systems with ease. Now, Ink Finance is reaching a significant milestone with the December 2nd listing of Quill, its native utility token, on BingX and other exchanges. Quill is designed to enhance governance, scalability, and financial operations for Web3 projects. It simplifies treasury management, ensures compliance, and empowers organizations to streamline activities efficiently. For DAOs and RWA-focused projects, Quill promises to become a vital tool, driving the next wave of decentralized finance and empowering Web3 innovations to thrive.
    • British Pound/U.S. Dollar Tradinglounge Analysis GBPUSD Elliott Wave Analysis: Daily Chart GBPUSD Elliott Wave Technical Analysis Function: Trend Mode: Impulsive Structure: Orange Wave 3 Position: Navy Blue Wave 3 Next Higher Degree Direction: Orange Wave 4 Details: Orange wave 2 appears complete, initiating orange wave 3 of navy blue wave 3. Wave Cancel Invalidation Level: 1.30502 Analysis Overview The analysis of the GBPUSD currency pair applies Elliott Wave theory to the daily chart, revealing an impulsive trend in progress. The current wave structure highlights orange wave 3, which has commenced following the completion of orange wave 2. This setup indicates a continuation of upward momentum. Key Observations: Position Within the Wave Cycle: The pair is currently within navy blue wave 3, with orange wave 3 actively developing. This phase represents a strong bullish progression, characteristic of an impulsive Elliott Wave structure. Future Projections: Following the expected completion of orange wave 3, the market will likely transition into orange wave 4, which represents a corrective phase within the broader bullish trend. Risk Management: An invalidation level is set at 1.30502. If the price falls to this level, the current Elliott Wave count and the bullish outlook will be invalidated. This serves as a crucial threshold for assessing trend confirmation and managing risk. Conclusion The Elliott Wave analysis for GBPUSD on the daily chart suggests a strong impulsive bullish trend, with orange wave 3 of navy blue wave 3 underway. The completion of orange wave 2 marked the beginning of this upward phase. Key Takeaways: Bullish Trend: As long as the price remains above 1.30502, the bullish outlook remains intact. Further Gains Anticipated: Continuation of orange wave 3 signals additional upward movement before transitioning into the corrective orange wave 4 phase. This analysis provides critical insights into the GBPUSD market, supporting strategic decision-making for trend identification and risk management.   GBPUSD Elliott Wave Analysis: 4-Hour Chart GBPUSD Elliott Wave Technical Analysis Function: Trend Mode: Impulsive Structure: Orange Wave 3 Position: Navy Blue Wave 3 Next Higher Degree Direction: Orange Wave 4 Details: Orange wave 2 appears complete, initiating orange wave 3 of navy blue wave 3. Wave Cancel Invalidation Level: 1.30502 Analysis Overview The 4-hour Elliott Wave analysis for GBPUSD demonstrates an impulsive trend in motion. The wave structure highlights orange wave 3, which started following the completion of orange wave 2. This setup points to a continuation of bullish momentum. Key Observations: Current Wave Position: GBPUSD is situated in navy blue wave 3, with orange wave 3 actively progressing. This phase is characterized by a strong impulsive movement, which aligns with the typical dynamics of Elliott Wave analysis. Future Projections: After the anticipated conclusion of orange wave 3, the trend is expected to transition into orange wave 4, marking a corrective phase within the broader upward movement. Risk Management: The invalidation level for the current wave count is 1.30502. A decline to this level would invalidate the current bullish outlook and wave count. This level is critical for trend confirmation and risk assessment. Conclusion The Elliott Wave analysis on the 4-hour chart identifies a strong bullish impulsive trend, with orange wave 3 of navy blue wave 3 in progress. The completion of orange wave 2 initiated this upward phase. Key Takeaways: Bullish Continuation: The bullish outlook remains valid as long as the price stays above 1.30502. Further Gains Expected: As orange wave 3 progresses, additional upward momentum is anticipated before the market transitions into the corrective orange wave 4 phase. This analysis offers actionable insights for identifying trends and managing risk in the GBPUSD market. Technical Analyst : Malik Awais Source : Tradinglounge.com get trial here!  
    • Solana (SOL) has become one of the most talked-about cryptocurrencies due to its impressive blockchain capabilities. With the ability to process over 65,000 transactions per second at low fees, Solana has gained significant attention. But what does the future hold for Solana? Let’s dive into the latest Solana price predictions and explore the factors that could influence its journey. Solana Price Today: A Rapidly Growing Cryptocurrency Currently trading around $243, Solana price today is experiencing remarkable growth. Many experts are optimistic about Solana's potential, with some predicting that the Solana coin price could reach $900 by 2025. This forecast is driven by Solana's growing adoption in the decentralized finance (DeFi) sector and its powerful blockchain technology. Solana Price Prediction: Can SOL Surpass Its All-Time High? One of the most exciting aspects of Solana is its potential for explosive growth. Crypto strategist Inmortal has compared Solana’s future to Ethereum’s performance in 2021. He predicts a Sol price prediction of $450 by 2025, a significant increase from its current value. If Solana follows Ethereum’s path, we could see similar price surges, making Solana a coin to watch closely in the coming years. Bloomberg’s Mike McGlone also shares a positive outlook, citing Solana’s low transaction fees and high transaction throughput as key factors that will drive its adoption in the DeFi and NFT sectors. This could help Solana compete with Ethereum and other top platforms, pushing the price of Solana even higher. FIL token set for a massive bullish spike! Discover the FIL price prediction for December and what’s driving the surge! Key Factors Driving Solana’s Growth Solana has proven to be a strong contender in the blockchain space, and several factors could contribute to its future success: The Firedancer Upgrade: This major network upgrade aims to improve performance and scalability, making Solana more attractive to developers and users. With Firedancer, Solana could see even more demand for its services and tokens, driving up the sol crypto price. Potential Solana ETF: Talks of a Solana Exchange-Traded Fund (ETF) are generating excitement. If approved, an ETF would provide institutional investors with a regulated way to invest in Solana, potentially boosting the price of Solana significantly. Growing DeFi and NFT Adoption: Solana’s ecosystem is thriving, with increasing activity in decentralized finance and non-fungible tokens (NFTs). As more decentralized applications (dApps) are built on Solana, the price of Solana could continue to rise. Solana Price Now: Is It Nearing Its Peak? While Solana’s performance is impressive, the Solana price now is approaching critical resistance levels. Experts note that key resistance points are around $271 and $309. If Solana can break through these levels, it could see further price growth. However, if the market faces a correction, the Solana price could experience temporary declines. What’s Next for Solana? Despite the potential risks, experts remain optimistic about Solana’s future. By December 2024, analysts project an 8.7% rise in the Solana price. The ongoing upgrades, along with broader adoption in the DeFi and NFT sectors, will play crucial roles in determining whether Solana can hit new highs. Raoul Pal, CEO of Real Vision, even set a “worst-case” price target of $800 for Solana, with the possibility of reaching up to $2,500 in a peak market scenario. Conclusion: Solana Price Prediction As Solana continues to make strides in the crypto world, its future looks promising. With key upgrades like Firedancer, the potential launch of an ETF, and growing adoption in DeFi and NFTs, the price of Solana could soar. While the Solana coin price may face short-term resistance or corrections, long-term projections remain positive. If you’re considering investing in Solana, it’s crucial to stay informed and understand the market risks. But for those looking for a high-growth opportunity, Solana presents a compelling case for the future. Keep an eye on the Solana price prediction, as SOL may be on the verge of a major breakout.
×
×
  • Create New...
us