在Pine脚本中,"plotshape"函数用于在图表上绘制形状指示器,以便在特定条件下显示图形。要更改"plotshape"的位置,可以使用该函数的参数来指定所需的位置。 "plotshape"函数的语法如下: 代码语言:txt 复制 plotshape(series, title, location, color, style, text, textcolor, size, transp, offset) ...
问Pine-Script -不能在PLOTSHAPE上使用IF,解决方案?EN在使用 Linux 或者 Windows 的时候,我们有可能...
= plot(trend == 1 ? up : na, title'Up Trend', style=plot.style_linebr, linewidth=2, color=color.new(color.green, 0)) buySignal = trend == 1 and trend[1] == -1 //plotshape(buySignal ? up : na, title='UpTrend Begins', location=location.absolute, style=shape.circle, size=...
plot(ema) bull_ec = close[1] < open[1] and open <= close[1] and close >= open[1] and swingLow and close > ema bear_ec = close[1] > open[1] and open >= close[1] and close <= open[1] and swingHigh and close < ema plotshape( bull_ec, style=shape.triangleup, location...
我尝试使用 if 条件,但在条件下不允许使用 Plotshape。 plotshape(buy, title='BUY ', text='▲', style=shape.labelup, location=location.belowbar, color=color.new(#000c76, 0), textcolor=color.new(#ffffff, 0), size=size.tiny) plotshape(sell, title='SELL', text='▼', style=shape....
pine-script 1个回答 0投票 lb = input.int(defval = 1, title="左栏") rb = input.int(defval = 1, title="右栏") mb = lb + rb + 1 plotshape((不是 na(high[mb]) ? ((ta.highestbars(mb) == -lb) ? high[lb] : na) : na), style = shape.triangledown, location = ...
//@version=5indicator("My Script",overlay=true)src=close a=ta.sma(src,5)b=ta.sma(src,50)c=ta.cross(a,b)plot(a,color=color.blue)plot(b,color=color.black)plotshape(c,color=color.red) 或者是这样写的: //@version=5strategy("My Strategy",overlay=true)longCondition=ta.crossover(ta....
I am trying to have the highest and lowest histogram bars in the last 140 indicated with a plotshape. My code is working a bit too enthusiastically because it is plotting on every bar instead of just the highest and lowest. I have played around with it for a while and searched...
2 How do I assign the most recent close to a variable in pine script? 0 Tradingview Pine Script plotshape function not working with conditional series - where's the error? 0 I'm getting trading view's Could not find function or function reference 'tostring' 0 Combining...
You may also need to play around withbgcolor()or withplotshape()in order to see the signals better – but that’s all there is to it! If you have any questions or suggestions about what you’d like me to cover next, feel free to leave them below. See you next time!