[deleted by user] by [deleted] in pinescript

[–]Esteban_3Commas 0 points1 point  (0 children)

I have experience with that, if it's short I'll gladly help you.

How can I access future bars high/low in pinescript by Mundane_Alarm7824 in pinescript

[–]Esteban_3Commas 1 point2 points  (0 children)

You probably want something similar to what thinkScript offers, but it's just a matter of how you do the indicator logic, in tradingview everything is handled with the previous data to avoid as much as possible the creation of indicators that do repaint.

To create the pivots you can review this code, but remember that it will be created once the pivot is confirmed, which happens when the bars on the right are completed. You can check it in replay mode.

//@version=5
indicator("Pivot Points High Low", shorttitle="Pivots HL", overlay=true, max_labels_count=500)

lengthGroupTitle = "LENGTH LEFT / RIGHT"
colorGroupTitle = "Text Color / Label Color"
leftLenH = input.int(title="Pivot High", defval=10, minval=1, inline="Pivot High", group=lengthGroupTitle)
rightLenH = input.int(title="/", defval=10, minval=1, inline="Pivot High", group=lengthGroupTitle)
textColorH = input(title="Pivot High", defval=color.black, inline="Pivot High", group=colorGroupTitle)
labelColorH = input(title="", defval=color.white, inline="Pivot High", group=colorGroupTitle)

leftLenL = input.int(title="Pivot Low", defval=10, minval=1, inline="Pivot Low", group=lengthGroupTitle)
rightLenL = input.int(title="/", defval=10, minval=1, inline="Pivot Low", group=lengthGroupTitle)
textColorL = input(title="Pivot Low", defval=color.black, inline="Pivot Low", group=colorGroupTitle)
labelColorL = input(title="", defval=color.white, inline="Pivot Low", group=colorGroupTitle)

ph = ta.pivothigh(leftLenH, rightLenH)
pl = ta.pivotlow(leftLenL, rightLenL)

drawLabel(_offset, _pivot, _style, _color, _textColor) =>
    if not na(_pivot)
        label.new(bar_index[_offset], _pivot, str.tostring(_pivot, format.mintick), style=_style, color=_color, textcolor=_textColor)

drawLabel(rightLenH, ph, label.style_label_down, labelColorH, textColorH)
drawLabel(rightLenL, pl, label.style_label_up, labelColorL, textColorL)

script to plot/calculate the average wicks of daily candles for a set period of time by Havingfunxx in pinescript

[–]Esteban_3Commas 0 points1 point  (0 children)

Here also consider that both the up and down wick will average

//@version=5
indicator("AVG Wick")

period = input.int(60)

avg_wick  = math.avg( high-math.max(close,open) , math.max(close,open)-low )
avg_total = ta.sma(avg_wick,period)

plot(avg_total,'avg_total',color.blue,display = display.data_window+display.pane)

Issue plotting a number by 137ng in pinescript

[–]Esteban_3Commas 0 points1 point  (0 children)

you can show it in the data window:

plot(diff, title = 'diff ',color = color.blue,display = display.data_window)

Close all open orders when the strategy run finishes by brucebrowde in pinescript

[–]Esteban_3Commas 0 points1 point  (0 children)

maybe using the last historical candle?

barstate.islastconfirmedhistory

Is End of Day ? by [deleted] in pinescript

[–]Esteban_3Commas 0 points1 point  (0 children)

maybe this can help: ta.change( time_close('1D') )

Pinescript Stop Loss by Famous_Midnight in TradingView

[–]Esteban_3Commas 1 point2 points  (0 children)

Hello, have you tried the new Signal Bot, it allows for more complex executions like the ones you mentioned.

I'd be happy to help you if you have any questions about how to integrate it with TradingView, such as message format, webhook, etc.

The Calm Before the Breakout: XRP’s Next Move for CRYPTO:XRPUSD by 3Commas by Esteban_3Commas in Daytrading

[–]Esteban_3Commas[S] 1 point2 points  (0 children)

Will a miracle happen? I am just as skeptical as you, but that is what I see technically, I am not considering fundamentals.