Strategy produces unrealistic results on non-standard chart types (Heikin Ashi, Renko, etc.)

On TradingView, strategies can be applied to any type of chart, including non-standard ones like Heikin Ashi (HA), Renko, Kagi, Point and Figure and Range. Because of the inherently synthetic nature of price levels on non-standard charts, backtesting results calculated on them will typically not produce results representing real market conditions.

Strategy orders are filled using the chart's OHLC values, as is documented in the Pine User Manual. A strategy running on a Renko chart, for example, will use the price levels from the Renko bricks rather than from real market prices. Our Help Center pages explain their features and calculations. Renko brick levels, being disconnected from actual market prices at any given moment, will fill orders using their own prices and therefore, will not produce reliable strategy results. This is because the formation of boxes in real-time is different from recorded historical data.

Consider this simple strategy:

//@version=4 strategy("My Strategy", overlay=true) 
longCondition = open<close if (longCondition) strategy.entry("My Long Entry Id", strategy.long) 
shortCondition = open>close if (shortCondition) strategy.entry("My Short Entry Id", strategy.short)

On a standard chart using normal candles, it produces results that are quite ordinary. It will also produce the exact same results on any other standard chart type: Bars, Hollow candles, Line, Area or Baseline.

If, however, you run that same strategy on any non-standard chart type, you will obtain different results that cannot be reproduced in real markets. On a Renko chart, for example, we obtain this:

These results are calculated using the Renko chart's synthetic prices, which most likely do not reflect the actual order fills you would get if you were trading for real.

Why do we allow strategies to run on non-standard charts?

The different methods used to interpret price action in building non-standard charts can provide traders with an original perspective when analyzing markets. Traders who understand their advantages and limitations may find them useful. We provide tools and believe it's up to traders to select the ones they want to use to trade. However, we still consider it our duty to warn our community: exercise caution when using strategies on non-standard chart types. Use them privately if you wish, but in order to protect the community we will moderate script publications using strategies on non-standard charts.

홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃