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.

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?
//@version=2
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)