OPEN-SOURCE SCRIPT

Twin Range Filter Algo

업데이트됨
colinmck used two different ranges to generate signals. Read his release notes to find out what the original script does.

I added one condition which seems to increase performance on 15m BTCUSD as well as 1h BTCUSD and that is ATR with 32 periods being smaller than ATR with 64 periods. I used my script Volatility Optimiser to discover this tendency.

Both buying and selling conditions are same as in colinmck's script plus one condition of my own. You can disable my condition.

Target and stop-loss are manually set values in ticks.

Time stop-loss is manually set value in a number of candles. After this number of candles, a position always exits (or should 😇). You can disable it by inserting a very long period. I do not recommend it, because a value of indicator should not be measured in luck and if market starts moving in the direction after 40 periods, the predictive capability of an indicator is questionable.

I used 300/150/17 for 15m BTCUSD chart and 900/30/17 for 1h BTCUSD. I didn't try to optimize any other parameters for these periods.

Since this script relies mostly on volatility for its prediction, I wouldn't recommend using it on its own. Individual approach to the market is recommended. Also, it didn't work on EURUSD when using the same default values and different order management (tp, sl, time sl), so it is probably not as versatile.

Let me know what do you think of this strategy. If you have some ideas about how to make it more reliable, share it in the comments, I might put it to the test. Good luck 🍀

릴리즈 노트
► A problem with the position opening and closing at the exact same price at the exact time should be fixed. This was one of my first scripts back when I was learning the basics, it's hard to believe some people actually liked it as it was.
► I added some basic stop-loss and profit settings to the strategy that I add to my buyerss' scripts. It will add some consistency to the strategy without restricting it too much. The previous version had fixed profit and loss too, but its definition was a static number of ticks. The strategy uses dynamic calculation, but a static option is available too.

Target calculation example - option "Close + ATR(len) * %":
Average True Range is calculated for the Length number of candles.
• Above range is multiplied by the percentage. If you want to double it, input 200. If you want to quadruple it, use 400. To half, use 50...
• The result is added to the close price of the candle which was used for entry.
• A set number of ticks is added to the result.
• Algorithm will reverse the process for Short positions.

Stop calculation example - option "Low - (close - lowest low(len)) * %":
• The lowest low in the Length number of bars is subtracted from the closing price of the entry candle.
• This value is multiplied by a percentage. If you want to double the value, set the percentage to 200. If you want to half it, set it to 50.
• The result is subtracted from the entry candle's low. After that, a set number of ticks is subtracted from the result.
• The process is reversed for calculating a stop for Short positions.
릴리즈 노트
Alerts added - sellect the indicator, choose create an alert, choose "alert() function calls only" in the first dropdown menu.
Please let me know if it works, I didn't test it.
Average True Range (ATR)signalsVolatility

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

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


또한 다음에서도:

면책사항