Hey SyferCV, I changed a little at your script to make it usable on all timeframes and just on crypto.. here are the changes - you just have to integrate them in your script..
Thanks for your work. you helped me to get that "tops" in my script.. ;-) Can you tell me why there is that thing with 350 day to 111 day MA's ? I don't get it why such an "trick" can get someone that tops... Is there anyway to get the bottoms? Like using fib retracements 38,2 and 61,8 automatically?
here are the changes - you just have to integrate them in your script..
len350 = input.int(350, minval=1, title='Length for SMA 350')
len111 = input.int(111, minval=1, title='Length for SMA 111')
src = input(close, title='Source')
res = input.timeframe('D', title='Resolution')
sma350 = ta.sma(src, len350)
sma111 = ta.sma(src, len111)
out350 = request.security(syminfo.ticker, res, sma350, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off)
out111 = request.security(syminfo.ticker, res, sma111, gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off)
arg2 = syminfo.type == 'crypto'
crash = ta.crossunder((out350*2), out111)
plotshape(arg2 ? crash : na, title='Crash Incoming!', style=shape.labeldown, location=location.abovebar, color=color.new(color.red, 66), text='T\nO\nP\n\n‖\n‖\n‖\n‖\n‖\n ', size=size.small)
Thanks for your work. you helped me to get that "tops" in my script.. ;-)
Can you tell me why there is that thing with 350 day to 111 day MA's ? I don't get it why such an "trick" can get someone that tops...
Is there anyway to get the bottoms? Like using fib retracements 38,2 and 61,8 automatically?