# Q-Trend

تم تحديثه
Q-Trend is an multipurpose indicatorm that can be used for swing- and trend-trading equally on any timeframe (non-volatile markets are better for this thing).

Settings:
• Trend period - used to calculate trend line in the special moments(will explain below);
• ATR Multiplier - changes sensitivity. The higher the multiplier = the more sensitive it is.
• Also option to smooth source data (helps get cleaner signals, as always).

How to use?
Signals are given on the chart. Also ou can use trend line as S/R line.

The idea behind:

Terms:
SRС = Source
TL = trend line;
MP = ATR multiplier;
ATR = ATR :)
TL = (highest of source P-bars back + lowest of source P-bars back) / 2
Epsilon = MP * ATR
I was thinking for a week about combining volatility and relation between highest and lowest price point. That why I called indicator Q-Trend = Quantitative Trend, as I was trying to think about price in a mathematical way.

Okay, time to go philosophical:
1) TL is shows good price trend, but as it is slow enough and not enough informative, we need add additional conditions to produce signals.
2) Okay, so what can we add as conditions? We need to take volatility into account, as it is crucial in the moments of market uncertainty. So let's use ATR (Average True Range) somehow. My idea is that if SRC breaks TL + ATR, then it means that there will be upmove and we update our TL. Analogically for SRC breaking TL - ATR (breaks are crosses of TL +- ATR lines).
Conclusion:
- if SRC breaks TL + ATR, it is a BUY signal and update of trend line;
- if SRC breaks TL - ATR, it is a SELL signal and update of trend line;

But if not, then I hope, that you will gain some profits with Q-Trend :)

I will continue my work on this thing, so stay tuned.

Wish you all the best!

- Tarasenko Fyodor
ملاحظات الأخبار:
+ Enabling/disabling trend line on the chart.
ملاحظات الأخبار:
+ Signal modes.
ملاحظات الأخبار:
+ Strong signals;
ملاحظات الأخبار:
+ Minors;
ملاحظات الأخبار:
+ Minors;
ملاحظات الأخبار:
+ Minors;
ملاحظات الأخبار:
+ Minor changes;
ملاحظات الأخبار:
ملاحظات الأخبار:
+ Minors;
ملاحظات الأخبار:
+ Reaching fix;
ملاحظات الأخبار:
ملاحظات الأخبار:
+ Option for choosing ATR period. Experiment with it to get signals that will suit your trading style.
ملاحظات الأخبار:
+ Option for choosing which signals to display (All, Buy/Sell, Strong or None);
Same chart, but:
All Signals
Strong

+ Option for choosing colours;
+ Little logic optimization.
ملاحظات الأخبار:
+ Option for choosing shape of signals: label (with text) or arrows (without text).

NOTE:
To apply changes delete indicator from chart, reload browser page and add indicator once again.

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

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

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

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

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟