Daveatt

Trend Direction Helper (ZigZag and S/R and HH/LL labels)

Hey everyone

First of all, I'd like to thank Ricardo Santos, Backtest Rookies for the inspiration for this script.
Actually, most of it is coming from them and I only mixed them up (and added my secret sauce ^^). If some of you are not thinking about a trading secret sauce , please get serious for a moment :)

Some of you asked me how I do to set the trend direction. You all understood that if you get an UP label, then the price should go up and vice-versa for down.
But it's not so easy to define the good signals for each asset and each timeframe. I'm going to repeat what I said yesterday because ... well... that's what trading is about
So quoting myself here "The inputs set by default will have to be changed for your asset/timeframe and can't be generic for everything. You have to play with the inputs until the signals will make sense to you
The indicator/strategy with a unique configuration that you'll never check or update according to the market condition DOES NOT exit. "

BUT... a bit of patience and practice and you might do wonders.

The Method

I never realized until now but by connecting the higher highs/lower lows, I was drawing zigzag lines.
The Zig Zag Master is Ricardo Santos. Please give him a follow, he's awesome

For those who don't want to draw on the chart or (my preferred choice) need some inspiration to define your trend directions, this script is for YOU (and your family, your pet, your girlfriend/boyfriend, ...)

I think that each asset/timeframe chart has its own history. What worked in a post could work in the future.
In that regard, if a trend direction worked in the past, that's the parameter that I'll use to trade with it in a demo account and make sure it's relevant. If not then I will adjust

If you're trading with new indicators or a new method right away on your real trading account, you're gonna have a bad time https://imgflip.com/i/39aafp

Lines EVERYWHERE

The script draws the classical horizontal pivots + the zig zag lines + the Higher Highs/Lower Lows label in just 1 script. I'm very excited to share a script (on which I coded 100 lines out of 500) but no one else did it
The horizontal pivots part are coming from Backtest Rookies

For more security, you can add a pullback on a moving average after getting a signal. Pullbacks are necessary to limit any eventual loss or maximize your gains by getting in the trend sooner.

I really give you a solid method and a great script in my opinion. 6 years of experience given away for FREE :p (when Dave will start thinking as a business man instead :O)

Does it repaint ?

Getting this question twice a day. You guys are obsessed with the repainting :)
Short answer, yes because it will calculate the pivots and zig zags whenever new higher highs/lower lows will be formed.
However, the trend direction code is based on the candle close so it shouldn't repaint. If it does, please let me know

See you all on Monday

Love you all
Dave

____________________________________________________________

Be sure to hit the thumbs up. Building those indicators take a lot of time and likes are always rewarding for me :) (tips are accepted too)

- If you want to suggest some indicators that I can develop and share with the community, please use my personal TRELLO board

- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python

if you like my work and wants to buy me some coffee :
- BTC TipJar: 3MKDve7stWTe1io99oFxeQXvP8XB4zCQ8m

Disclaimer:
Trading involves a high level of financial risk, and may not be appropriate because you may experience losses greater than your deposit. Leverage can be against you.
Do not trade with capital that you can not afford to lose. You must be aware and have a complete understanding of all the risks associated with the market and trading. We can not be held responsible for any loss you incur.
Trading also involves risks of gambling addiction.
Please notice I do not provide financial advice - my indicators, strategies, educational ideas are intended to provide only some source code for anyone interested in improving their trading
The proprietary indicators and strategies developed by Best Trading Indicator, the object of intellectual property rights are and remain the exclusive property of Best Trading Indicator, at the exclusion of images and videos and texts free of rights or provided by the Company or external legal or physical person.
No assignment of intellectual property rights is carried out through these Terms and Conditions.
Any total or partial reproduction, modification or use of these properties for any reason whatsoever is strictly prohibited without the express written authorization of the Company.
ملاحظات الأخبار: - Fixed S/R display
ملاحظات الأخبار: - Again an issue fixed
ملاحظات الأخبار: - Another fix
إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة
thanks a lot,

please is there any way to create alarm on B label.

thanks again.
رد
Nice, I doing something also with S/R same code, maybe its possible to add trend for S/R. Will DM you.
+1 رد
Daveatt CryptoArch_
@CryptoArch_, Sure thing. DM me whenever you'd like
رد
Great work and Great Coding skils ,Regards,Author of LongBuyLongSellIndicator.
Keep up the good work.
+1 رد
Daveatt MarxBabu
@MarxBabu, Thank you :)
رد
Hello, I started researching your code and it has a lot of errors. For example, for i = 1 to length-1, i should be started at 0, if you want to calculate the range for all of the candles. i = 1 means 1 bar offset. Also, I suggest using a functional style of coding. And use already written functions.
For example:

range(length) =>
sum = 0.0
for i = 0 to length-1
sum := sum + abs(high-low)
sum / length
can be written as:

range(length) =>
sma(abs(high - low), length)

Best wishes.
Sorry if I was offensive. It all about cultural differences.
Best wishes,
Vadim.
+8 رد
casecnikov casecnikov
@casecnikov, Also MRO1 and MRO2 always return -1.
+3 رد
What is that other indicator? Is that for free plan too?
+3 رد
hi can we scan all market for signal ?
+2 رد
Please help me to how to use this code..from ind
+4 رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف نعمل مميزات الرسم البياني أسعار العضوية قوانين الموقع المشرفون حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية مركز المساعدة طلب الخصائص المدوّنة والأخبار الأسئلة الأكثر شيوعًا معرفة تويتر
الملف الشخصي إعدادات الصفحة الشخصية الحساب وإعداد الفواتير عملات TradingView تذاكر الدعم الخاصة بي مركز المساعدة أفكاري المنشورة المتابعين تتابع رسالة خاصة المحادثة تسجيل الخروج