PROTECTED SOURCE SCRIPT
Daily Low < Threshold AND Close > Threshold

//version=5
indicator("Daily Low < Threshold AND Close > Threshold", overlay=true)
// Get 1-month close (no lookahead)
monthlyClose = request.security(syminfo.tickerid, "1M", close, lookahead=barmerge.lookahead_off)
// Compute adjustment and threshold
adjustment = monthlyClose * 12.15 / (100 * math.sqrt(360.0 / 30.0))
threshold = monthlyClose - adjustment
// Conditions
condLow = low < threshold
condClose = close > threshold
signal = condLow and condClose
// Plots
plot(threshold, title="Threshold", color=color.orange, linewidth=2)
plot(low, title="Daily Low", color=color.red, linewidth=1)
plot(close, title="Daily Close", color=color.green, linewidth=1)
// Signal marker
plotshape(signal,
title="Signal",
location=location.belowbar,
style=shape.labelup,
text="OK",
textcolor=color.white,
size=size.tiny,
color=color.green)
indicator("Daily Low < Threshold AND Close > Threshold", overlay=true)
// Get 1-month close (no lookahead)
monthlyClose = request.security(syminfo.tickerid, "1M", close, lookahead=barmerge.lookahead_off)
// Compute adjustment and threshold
adjustment = monthlyClose * 12.15 / (100 * math.sqrt(360.0 / 30.0))
threshold = monthlyClose - adjustment
// Conditions
condLow = low < threshold
condClose = close > threshold
signal = condLow and condClose
// Plots
plot(threshold, title="Threshold", color=color.orange, linewidth=2)
plot(low, title="Daily Low", color=color.red, linewidth=1)
plot(close, title="Daily Close", color=color.green, linewidth=1)
// Signal marker
plotshape(signal,
title="Signal",
location=location.belowbar,
style=shape.labelup,
text="OK",
textcolor=color.white,
size=size.tiny,
color=color.green)
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน