-
Notifications
You must be signed in to change notification settings - Fork 39
/
Trending Bandini
9 lines (6 loc) · 4.18 KB
/
Trending Bandini
1
2
3
4
5
6
7
8
9
# Trending Bandini
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/hEQzdpCy/
def Buy= SimpleMovingAvg(close,2)>SimpleMovingAvg(SimpleMovingAvg(close,2),2) and SimpleMovingAvg(SimpleMovingAvg(close,2),2)>SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2)>SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2)>SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2)>SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2)>SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2)>SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2)>SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2),2)>SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2),2),2);
def Sell= SimpleMovingAvg(close,2)<SimpleMovingAvg(SimpleMovingAvg(close,2),2) and SimpleMovingAvg(SimpleMovingAvg(close,2),2)<SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2)<SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2)<SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2)<SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2)<SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2)<SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2)<SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2),2) and SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2),2)<SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(SimpleMovingAvg(close,2),2),2),2),2),2),2),2),2),2);
assignPriceColor(if buy then Color.Green else if Sell then Color.Red else Color.White);