Trendoscope

TrendMaAlignmentStrategy - Long term trades

Trendoscope Wizard 업데이트됨   
This is another strategy based on moving average alignment and HighLow periods. This is more suitable for long term trend traders and mainly for stocks.

Candle is colored lime if : Lookback Period has at least one bar with moving averages fully aligned OR None of the bars in Lookback periods has negatively aligned moving averages (More than half are positively aligned).
Candle is colored orange if : Lookback Period has at least one bar with moving averages fully aligned in negative way OR none of the bars in lookback has positively aligned moving averages (More than half are negatively aligned).
If either of above conditions are met, candle is colored silver.

Moving average alignment parameters:
  • Moving Average Type : MA Type for calculating Aligned Moving Average Index
  • Lookback Period : Lookback period to check highest and lowest Moving Average index.

HighLow parameters:
  • Short High/Low Period: Short period to check highs and lows
  • Long High/Low Period: Longer Period to check highs and lows.

If short period high == long period high, which means, instrument has made new high in the short period.

ATR Parameters:
  • ATR Length: ATR periods
  • StopMultiplyer: To set stop loss.
  • ReentryStopMultiplyer: This is used when signal is green buy stop loss on previous trade is hit. In such cases, new order will not be placed until it has certain distance from stop line.

Trade Prameters:
  • Exit on Signal : To be used with caution. Enabling it will allow us to get out on bad trades early and helps exit trades in long consolidation periods. But, this may also cause early exit in the trend. If instrument is trending nicely, it is better to keep this setting unchecked.
  • Trade direction : Default is long only. Short trades are not so successful in backtest. Use it with caution.
  • Backtest years : limit backtesting to certain years.

Part of the logic used from study's below:



Other strategies based on these two studies are below (which are meant for short - medium terms):


릴리즈 노트:
Reverse color on stop-compound line.
릴리즈 노트:
Include separate compound multiplier for compound calculation

오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?