Return to site

Buy the dip indicator for thinkorswim

broken image

Plot(myLineToggle ? buy and myPosition=1 ? low - 0.004: sell and myPosition=0 ? high + 0.004 : na : na, color=trendColor, style=line, linewidth=4, editable=false) TrendColor = buy ? red : sell ? green : na MyPosition = buy=1 ? 0 : sell=1 or myPosition=1 ? 1 : 0 Sell = myAlgoFlipToggle ? rising(myRSI, 1) and cross(myRSI,myThresholdUp) : falling(myRSI,1) and cross(myRSI, myThresholdDn) MyLabelToggle = input(defval=true, type=bool, title='Show Labels')īuy = myAlgoFlipToggle ? falling(myRSI,1) and cross(myRSI, myThresholdDn) : rising(myRSI, 1) and cross(myRSI,myThresholdUp) MyLineToggle = input(defval=true, type=bool, title='Show Lines') MyAlgoFlipToggle = input(defval=false, type=bool, title='Imverse Algorthim') MyThresholdDn = input(defval=30, type=float, title='Lower Threshold')

broken image

MyThresholdUp = input(defval=70, type=float, title='Upper Threshold')

broken image
broken image

MyPeriod = input(defval=14, type=integer, title='Period')

broken image