REV0LUTI0N

Momentum Strategy

REV0LUTI0N 업데이트됨   
This is a momentum indicator strategy that plots 2 lines on the momentum indicator and if both cross above zero a long entry is generated and if both cross below zero a short entry is generated. It also has code to check and make sure the condition is still true when launching the official alert, which helps back testing and live results line up, however be sure to enter commission and slippage into the properties to accurately reflect profits. There's also an optional "percent" option and selecting the MOM1 option in the "MOM Choice" field as it uses a slightly different calculation and may provide better results than the standard momentum calculation. Also I'd like to thank @felipecms14 for his open source momentum code. I added back testing date ranges to this so you can easily pull up and see back tested results for a certain date range.
릴리즈 노트:
Update 9-17-21:
- Added a zero line plotted on the indicator so you can clearly see when lines are crossing above or below zero.
- Added a buy and sell message field in the properties so you can launch alerts that will work with automated trading services. Simply enter your buy message and sell message into those fields in the properties and then when you create an alert enter {{strategy.order.alert_message}} into the alert body and it will dynamically pull in your buy and sell messages when it fires alerts.
릴리즈 노트:
In this version I updated momentum entries to have 2 options. By default it uses 2 momentum lines that must cross zero to generate an entry. However you can uncheck "Use Double Momentum Entries" and check off "Use Single Momentum" entries and it will use only 1 momentum line to generate an entry. Usually using the double will be best but I'm providing the option in case it works better for the asset you're trading.

I also added in the ability trade between certain hours which is useful for day traders. You can check off "Enable Close Trade At End Of Time Frame" to have the open trade closed when it reaches the end of the trading hours.

The take profit and stop loss has been changed to % based and you can check off a box to enable stop loss or take profit individually.

Finally I've also added more alert boxes so you can set separate entry and exit alert messages. Just use {{strategy.order.alert_message}} in your alert body and it will use the alert boxes for all entries and exits.
릴리즈 노트:
Added EMA filter. Default "No EMA Filter" is checked. You can uncheck this and check "Use EMA Filter" and then set an ema length and ema source. Then it will not enter a long unless close price is above the ema and will not enter a short until close price is below the ema.
오픈 소스 스크립트

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

면책사항

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

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