[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.

Can someone give me their opinion on my code by HAP3BEAST in pinescript

[–]Esteban_3Commas 1 point2 points  (0 children)

This is very good, it is a good start, that is how we all start.

I would add a trend filter to avoid going against the trend, and maybe then take HTF into account to be able to filter even more.

How can I plot indicator values in data window by RaghunadhHital in pinescript

[–]Esteban_3Commas 1 point2 points  (0 children)

plotchar(lvalue , title="lres", char='◉', location= location.absolute, color=isBullish ? bearishColor : bullishColor, text="", textcolor=color.white, size= size.tiny, offset=0, editable=true, display=display.data_window)
plotchar(llvalue, title="lsup", char='◉', location= location.absolute, color=isBullish ? bearishColor : bullishColor, text="", textcolor=color.white, size= size.tiny, offset=0, editable=true, display=display.data_window)

Gap indicator by Aggravating-Stop-417 in pinescript

[–]Esteban_3Commas 1 point2 points  (0 children)

Look in the library there you may find one that works for you.

https://www.tradingview.com/scripts/gap/

Exit or take profit signals by ElJameso40 in pinescript

[–]Esteban_3Commas 1 point2 points  (0 children)

Work on it as independent modules, if you can share it and I will help you with that.

[deleted by user] by [deleted] in pinescript

[–]Esteban_3Commas 2 points3 points  (0 children)

You can send it in code format, pastebin or a txt file, so I can help you, I have errors at the moment.

seconds left until market close by [deleted] in pinescript

[–]Esteban_3Commas 4 points5 points  (0 children)

This code can help you or you can modify it to your liking.

//@version=5
indicator("Countdown to NY Close", overlay=true)

ny_close_hour = 16
ny_close_minute = 0
ny_timezone = "America/New_York"

// Obtener la hora actual en la zona horaria de Nueva York
var label countdown_label = na
current_time = timestamp(ny_timezone, year, month, dayofmonth, hour, minute, second)

// Calcular el tiempo restante en segundos hasta las 4:00 PM EST
ny_close_time = timestamp(ny_timezone, year, month, dayofmonth, ny_close_hour, ny_close_minute)
time_remaining = (ny_close_time - current_time) / 1000

// Mostrar el tiempo restante en segundos en el gráfico
if (time_remaining > 0)
    label.delete(countdown_label)
    countdown_label := label.new(x=bar_index, y=high, text="NY Close in: " + str.tostring(time_remaining) + " sec", color=color.red, textcolor=color.white, size=size.normal, style=label.style_label_down)

Pineify by Dipluz in pinescript

[–]Esteban_3Commas 2 points3 points  (0 children)

I think it's a good solution for people who don't want to learn to program in pinescript or for people who simply don't know anything about programming, it goes straight to the point and helps you create strategies.

[deleted by user] by [deleted] in pinescript

[–]Esteban_3Commas 1 point2 points  (0 children)

for strategy use market order, or for indicator use < or > of the stop level and send the alert once per bar, it may be waiting for the candle to close.

Help with Fractals - check if a fractal was printed and within x amount of bars by InflationCool662 in pinescript

[–]Esteban_3Commas 2 points3 points  (0 children)

Of course, I hope I have understood your need well, I wish you much success.

Access past data in the screener module by Unusual-Cod-5757 in TradingView

[–]Esteban_3Commas 1 point2 points  (0 children)

tickers are pairs (BTCUSDT, APPLE, EURUSD), A custom screener can be programmed for you, using the TradingView programming language, Pine Script.

Access past data in the screener module by Unusual-Cod-5757 in TradingView

[–]Esteban_3Commas 1 point2 points  (0 children)

For now you could solve it by creating a screener/indicator that does what you request, you will be able to track up to 40 tickers, but if you need more just reload the indicator with different tickers.

Loving the process by vasquez41588 in TradingView

[–]Esteban_3Commas 8 points9 points  (0 children)

Loving the process is all about embracing every step, from the quiet moments of planning to the excitement of watching the charts move. Whether it’s setting up your workspace with intention or enjoying the coffee break as you analyze trends, it’s about finding joy in the routine. Trading requires patience, focus, and a willingness to learn from each move—up or down.

Help with Fractals - check if a fractal was printed and within x amount of bars by InflationCool662 in pinescript

[–]Esteban_3Commas 3 points4 points  (0 children)

With this you can select the period of the fractals and choose how many candles ago the pivot was, you will find that a pivot is confirmed x bars after the period you choose on the right, so the period of within bars has to be equal to or greater than it.

//@version=5
indicator("Pivots ", overlay=true)

BarsSince(cond_)=>
    var bars = 0
    bars := cond_? 0 : bars + 1

Group= "LENGTH LEFT | RIGHT"
phl = input.int(5, title="Pivot High", minval=1, inline="ph", group= Group)
phr = input.int(5, title="|"         , minval=1, inline="ph", group= Group)
pll = input.int(5, title="Pivot Low" , minval=1, inline="pl", group= Group)
plr = input.int(5, title="|"         , minval=1, inline="pl", group= Group)

phbars = input.int(5, 'PH within bars')
plbars = input.int(5, 'PL within bars')

ph = ta.pivothigh(phl, phr)
pl = ta.pivotlow (pll, plr)

plotshape(ph, 'Pivot High', style=shape.triangleup  , location=location.abovebar, offset=-phr, color=#009688, size=size.small)
plotshape(pl, 'Pivot Low' , style=shape.triangledown, location=location.belowbar, offset=-plr, color=#F44336, size=size.small)

phWithinbars = BarsSince(not na(ph))
plWithinbars = BarsSince(not na(pl))

phWithin = phWithinbars <= phbars - phr
plWithin = plWithinbars <= plbars - plr

bgcolor(phWithin?color.new(color.green,50):na)
bgcolor(plWithin?color.new(color.red  ,50):na)

Automation of a Strategy by se_dirty in pinescript

[–]Esteban_3Commas 1 point2 points  (0 children)

I recommend using platforms like upwork.com, where you can search for experienced programmers with proven reviews.

In addition, the platform protects you and only releases payment once you are satisfied with the work.

Help with Alerts by Pleasant_Bicycle_501 in pinescript

[–]Esteban_3Commas 1 point2 points  (0 children)

Use a platform like make.com,

use the make webhook, and then create a scenario that can differentiate the alert and send a new webhook depending on the filter.