Satish Goyani 10Min Gap/Move Strategy

satishgoyani · study · 35 行 · 点赞 18 · TradingView 原页

本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。

Pine Script

//@version=6
indicator("satish goyani 59", overlay=true)
 
// ૧. ટકાવારી ટાર્ગેટ ઇનપુટ (2.0%)
targetPct = input.float(2.0, title="Target Percentage (%)")
 
// ૨. 10-મિનિટ ટાઈમફ્રેમ ચકાસો
is10Min = timeframe.isminutes and (timeframe.multiplier == 10)
 
// ૩. ગઈકાલનો ક્લોઝ (Previous Day Close)
isNewDay = ta.change(time("D")) != 0
var float prevDayClose = na
 
if isNewDay
    prevDayClose := close[1]
 
// ૪. સવારની પહેલી 10-મિનિટની કેન્ડલ (09:15 થી 09:25)
isFirst10mCandle = isNewDay and is10Min
 
// ૫. ગઈકાલના ક્લોઝ થી સવારની 10m કેન્ડલના ક્લોઝ સુધીનો % તફાવત
var bool isGold = false
 
if isFirst10mCandle and not na(prevDayClose)
    movePct = math.abs((close - prevDayClose) / prevDayClose) * 100
    isGold := (movePct >= targetPct)
 
// નવો દિવસ શરૂ થતાં જ isGold ને રીસેટ કરો
if isNewDay and not isFirst10mCandle
    isGold := false
 
// ૬. જો શરત પૂરી થાય તો ફક્ત પહેલી 10m કેન્ડલ સોનેરી કરો
barcolor(isFirst10mCandle and isGold ? color.rgb(255, 215, 0) : na)
 
// ૭. કેન્ડલ નીચે સોનેરી એરો બતાવો
plotshape(isFirst10mCandle and isGold, title="Gold Signal", style=shape.triangleup, location=location.belowbar, color=color.rgb(255, 215, 0), size=size.small)

← 返回列表