PROTECTED SOURCE SCRIPT
업데이트됨 Auto Harmonic Patterns - Long only Strategy

This is long only strategy where entry and exits are generated based on Harmonic Patterns.
Logic used for generation of harmonic patterns is same as the below script (Double top and bottom are removed in this script):

Now to generate entry and exit signals, following rules are used:
If there is bullish pattern:
If there is bearish pattern and useReverseTradeOnBearishPattern is selected:
If there is any existing trade while new patterns are formed, then existing stoploss and target levels are updated accordingly instead of placing new order.
Optional Profit Targets : When takeInitialProfitOnTargets is selected, minimal profit (20% of open positions) is taken based on harmonic pattern profit targets. These targets are set only based on bullish pattern recognition
Example of XABCD points are shown in below picture:

Other logic involved:
Happy trading. Let me know your views.
Logic used for generation of harmonic patterns is same as the below script (Double top and bottom are removed in this script):

Now to generate entry and exit signals, following rules are used:
If there is bullish pattern:
- Entry : If X is between Point B and D, then use X as entry point. Else use B as entry point. Entries are managed via stop limit orders.
- StopLoss : D - (atrMult times atr)
If there is bearish pattern and useReverseTradeOnBearishPattern is selected:
- Entry : D + (atrMult times atr)
- StopLoss : If X is between Point B and D, then use X as stoploss. Else use B as stoploss
If there is any existing trade while new patterns are formed, then existing stoploss and target levels are updated accordingly instead of placing new order.
Optional Profit Targets : When takeInitialProfitOnTargets is selected, minimal profit (20% of open positions) is taken based on harmonic pattern profit targets. These targets are set only based on bullish pattern recognition
- First Target : Lower of A and C
- Second Target : Higher of A and C
- Third Target: 1.618 times AD
Example of XABCD points are shown in below picture:
Other logic involved:
- Apart from stoploss generated by patterns, there is also trailing stoploss which is simply based on trailingStopAtrMult times ATR
- Stoplosses, entry points and target levels are updated only if new stoploss generated either by ATR or by harmonic patterns are higher than present stoploss. If not, previous stoplosses are used.
Happy trading. Let me know your views.
릴리즈 노트
- useStopOrder option is set to true and removed from user input.
- Three drives and 5-0 patterns removed as they are bit different to rest and the existing logic will not be apt for them.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.