If you are interested in trading gaps in DAX, then DOW plotted in DAX's trading hours, will help you know whether the smoothed candle was a gap or not. Use a different script to plot yesterday's closing price. This will help you see the target for the gap close. Let me know if you find it helpful or not!

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
study("DOW GAP")
higherRes = input("15", type=resolution) 
is_newbar(res) =>
    t = time(res)
    change(t) != 0 ? 1 : 0
o = security("US30", higherRes, open)
h = security("US30", higherRes, high)
l = security("US30", higherRes, low)
c = security("US30", higherRes, close) 
plotcandle(is_newbar(higherRes) ? o : na, h, l, c, color=c >= o ? lime : red)