Plotshape(myLabelToggle ? buy and myPosition=1 ? low - 0.005 : na : na, style=shape.labelup, location=location.absolute, text="Buy", transp=0, textcolor = white, color=black, editable=false) 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") MyThresholdUp = input(defval=70, type=float, title="Upper Threshold") MyPeriod = input(defval=14, type=integer, title="Period")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |