ChopBot v1.0

20515 vizualizações
Simple and accurate strategy

If you can improve the script to skip the noise entries spanning less then 4 USD please let me know.

Script de código aberto

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Quer usar esse script no gráfico?
strategy("ChopBot v1.0", overlay=true)

rangeup = close[1]+tr[1]
rangedown = close[1]-tr[1]
over() => high > rangeup and close > open
under() => low < rangedown and close < open

longCondition = over()
if (longCondition)
    strategy.entry("ChopBot Long", strategy.long)

shortCondition = under()
if (shortCondition)
    strategy.entry("ChopBot Short", strategy.short)