My version of ChopBot with a little of Gen Opt.

Seems to be good for direction spotting during sideways and uptrend. Works only on 4h HA candles.

Von Favorisierten Skripten entfernen Zu Favorisierten Skripten hinzufügen
strategy("BotBot", overlay=false)
atr = atr(19)
avg = sma(close,19)
rangeup = low[1] + atr
rangedown = high[1] - atr
over() => close/avg > 1.001 and high/rangeup > 1.04 and close/open > 1.001
under() => close/avg < 0.999 and low/rangedown < 0.96 and close/open < 0.999

longCondition = over()
shortCondition = under()

plot(close/avg, "close/avg", red)
plot(high/rangeup, "high/rangeup", blue)
plot(close/open, "close/open", green)

strategy.entry("long", strategy.long, when=longCondition)
strategy.entry("short", strategy.short, when=shortCondition)


I found out this script works well in conjunction with RSI Algotrader for mutual confirmations
+1 Antworten
Back testing is very different VS live , but look good, What is the theory
+1 Antworten
lines 3-6: RangeUp and RangeDown variables are conservative estimates of potential upside or downside, calculated as lowest/highest price +/- Average True Range (ATR).
lines 7-8: Buy/Sell conditions. Estimation of buy/sell momentum, values are derived by simple genetic optimization in matlab

I think the strategy could be improved in many ways
great thank you
hi! nice work man! i'm using gunbot a lot! can i have acces please? thanks from holland!
Check out our new project http://depthvisor.com - a new perspective on the orderbook
Uhmmm... Maybe should be able to change period of atr and sma. 19 is too long?
Thank u!
hi, it only works on 4hours Heikin Ashi chart
Faccia amazing_ilya
Ciao, yeah I found it.
Could you change on 15 minutes chart? It would be great
Thank you !
I don't think it will be useful on 15 min timeframe. You might want to try original ChopBot script or other strategies, e.g. ANN strategy is also good (and it also used genetic optimization, as far as I understtod from its description).
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender So funktioniert es! Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Veröffentlichte Ideen Followers Ich folge Private Nachrichten Chat Abmelden