B3 Bar Cycle MTF (fix)

Apologies, there was an error in printing for the thick gray boxes, happened when MTF was switched on. All better, and here is the details from before:

This is an interesting study that can be used as a tool for determining trend direction, and also could be a trailing stop setter. I use it as a gauge on MTF settings. If on, you can look at the bar cycle of the 1h while on the 15m giving you a lot of information in one tool. If a line is missing high or low, it is because it was broken, if both exist you are trading in range and cloud appears. If both sides break you get thick gray boxes above and below bar.

Get used to editing the inputs to suit your liking. Often 3-5 length and always looking at different resolutions to get a big picture story. You could put multiple instances of the study up to see them simultaneously. I based the idea off of Krausz's 3 day cycle which you can read about in his teachings. I tend to find it looking better using Heikin Ashi bar-style.
نص برمجي مفتوح المصدر

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

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
~ http://www.twitter.com/VirtuosoTrader ~ Market Analysis
~ http://www.SCRIPTaCHART.com ~ Indicators & Strategies
~ http://www.virtuosotrader.com ~ Personal Blog (no ads)


Hi there,

I am loving this indicator. Thank you so much. I would like to understand it though on how it is drawn to allow me to choose a better larger timeframe. What do you exactly mean by "bar cycle" as well as how do the indicator knows whether it is trading in a range. I am not a programmer but I would rly appreciate it so much if you could explain this in layman terms.
+3 رد
Very useful, thanks a lot
+1 رد
Thanks, agreed interesting idea and useful. When I used to switch to Heiken Ashi at times I noted that the results changed because the high, low, open and close have different values than standard ohlc values so I use a set that refers back to ohlc regardless of chart style:
t = tickerid(syminfo.prefix, ticker)
realC = security(t, period, close)
realH = security(t, period, high)
realL = security(t, period, low)
realO = security(t, period, open)
with this set using the "real" (or consistent) values the indicators with give consistent results.
+1 رد
himdaya Tom1trader
@Tom1trader, is this the complete code?
Tom1trader himdaya
@himdaya, Hi and thanks for question. Had not used this since v4 (version4) a quick look shows you may have to use timeframe.period where I used period.
It is a set of variables that can be used in indicators so that the indicator does not change when you change bar/candle type. If you want an indicator to not change behavior and act as if ohlc bars or candles are being used do the following: insert this codee before calling close, high, low or open and where ever close, high, low or open are used in the code replace them with realC, realH, realL or realO (or choose your own names if you wish of course.
Does this answer your question completely. Let me know if not clear. Thanks again and keep smiling!
+1 رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي حول مميزات الرسم البياني أسعار العضوية إحالة صديق قوانين الموقع مركز المساعدة حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية مكتبة الرسوم البيانية صغيرة الحجم المدوّنة والأخبار تويتر