Arivadis

Trend crossier

Hello there!

I would like to share my script.

This is S/R levels indicator based on custom range for each step used for computing minimum/maximum of the range.

For example - we predefined step with 50 candles as one, after we have got the minimum and maximum of it - we come to the next 50 candles and do the same to it.
Finaly - we have got 20 lines for 10 steps.
After that - we set the ( SMA * mult) to have step between lines and if N of lines in range of step from eachother(if a+step > b and b+step > c ...) we call it a strong level.

It is not my idea(but my code), so I do not claim the uniqueness of this idea (the customer asked me to code it, but I also read about this method in open sources before).

The second thing - vectors of current trend direction on different timeframes.

For this task I took the same ranges, but ema () of each range. After first step it has an array with N values.
The next thing it does is take out "chain" one by one on each iteration. How does it do that? We take new AVG with neighbor values.
If we have 10 length at start - after iteration it becomes 9. So it repeats computing till length is 2.

After we have 2 points left - we can plot the line using indexes.
This way we can see the trend direction on different timeframes.


Feel free to use, change, put into another scripts. You can even never use it!

The right to publish this particular code was issued by the customer.

Have fun!
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?