Unxi

[Unxi]McClellan Summation Index for DAX 30 (GER30) [modified]

About McClellan Summation Index

The McClellan Summation Index is a market breadth indicator which was developed by Sherman and Marian McClellan. It is based on the McClellan Oscillator and add its values together, effectively running a total. The index goes up when the McClellan Oscillator is positive and goes down when it is negative. Signals can be derived from the index crossing the middle line (bullish when it's crossing up and bearish when it's crossing down). Other potential signals include divergences and overbought and oversold conditions. The indicator is best used in combination with other analysis techniques.

About this implementation
This version here is a modification of the McClellan Summation Index.
It runs the simple version of the McClellan Oscillator and uses the simple method to calculate the Summation Index. No ratios are used in this implementation.

Further information:
- It can only be used on the DAX index ( DAX 30 or GER 30)
- It only considers the DAX 30 stocks
- The data window will provide a summary about rising and declining stocks
- The data window will output the last change for each of the 30 stocks
- The script is pretty slow because it has to calculate the change for each bar individually (instead of receiving a complete calculation from the stock exchange).


DISCLAIMER
This script was mainly written for educational purposes (training myself how to write custom indicatotors).
As you can see, the code is really messy.
FOR YOUR INFORMATION: This script will work on any time period. It is recommended to use it with timeperiod = 1d, though. Just use whatever timeperiod you are comfortable with, the indicator will automatically adjust accordingly.


Credits
Based on the simple version of aftabmk and of code from lazybear.
สคริปต์โอเพนซอร์ซ

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

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

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

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