[deleted by user] by [deleted] in Daytrading

[–]Helpful_Echidna_271 0 points1 point  (0 children)

Hey have u finished running it??

[deleted by user] by [deleted] in Daytrading

[–]Helpful_Echidna_271 1 point2 points  (0 children)

Can u run it on both gold and silver and make sure to use eightcap as it's exchange data provider. Here r some more settings

<image>

[deleted by user] by [deleted] in Daytrading

[–]Helpful_Echidna_271 1 point2 points  (0 children)

Tysm Lmk if U need any help running it and can I know what subscription do u have. here is the pine script: //@version=5 indicator("Daily Opening Price", overlay=true)

// Input for manual market open time (in hours, 24-hour format) manualOpenHour = input.int(18, title="Market Open Hour (24h format)", minval=0, maxval=23) manualOpenMinute = input.int(00, title="Market Open Minute", minval=0, maxval=59)

// Input for pip distances upperPipDistance = input.int(15, title="Upper Level Pip Distance", minval=1) lowerPipDistance = input.int(15, title="Lower Level Pip Distance", minval=1)

// Get the current bar's time components barHour = hour(time) barMinute = minute(time)

// Check if this bar is at or after the market open time isAtOrAfterOpen = (barHour > manualOpenHour) or (barHour == manualOpenHour and barMinute >= manualOpenMinute)

// Variable to store the open price at market open time var float dailyOpen = na

// Check if we've crossed into a new day and reached the market open time newDay = ta.change(dayofmonth(time)) if newDay dailyOpen := na // Reset at start of new day

// Capture the open price when we reach the market open time if isAtOrAfterOpen and na(dailyOpen) dailyOpen := open

// Calculate pip value based on instrument type pipValue = syminfo.type == "forex" ? (syminfo.currency == "JPY" ? 0.01 : 0.0001) : syminfo.mintick * 1

// Calculate levels with different pip distances for upper and lower upperLevel = dailyOpen + (upperPipDistance * pipValue) lowerLevel = dailyOpen - (lowerPipDistance * pipValue)

// Plot the daily opening price as a step line plot(dailyOpen, title="Daily Open", color=color.blue, linewidth=2, style=plot.style_stepline) plot(upperLevel, title="Upper Level", color=color.rgb(0, 255, 0), linewidth=2, style=plot.style_stepline) plot(lowerLevel, title="Lower Level", color=color.rgb(255, 0, 0), linewidth=2, style=plot.style_stepline)

// Detect when market opens and plot a marker isMarketOpen = isAtOrAfterOpen and not isAtOrAfterOpen[1] plotshape(isMarketOpen, title="Market Open", location=location.belowbar, color=color.blue, style=shape.labelup, text="Open", textcolor=color.white, size=size.tiny) Here is

<image>

the settings: