OPEN-SOURCE SCRIPT

Motive Wave Scanner [Trendoscope®]

Motive Wave Scanner is a simple algorithm to find out motive waves as per the rules of Elliott Wave theory.

It is an extension to our previous open source script Interactive Motive Wave Checklist which provides interactive capability to select six points of a five wave formation. Once users select them, the rules of motive waves are applied to manually selected points to highlight them as either diagonal wave, motive wave or none.

لقطة

This indicator does the same. But, instead of requesting the pivots manually from the user, the indicator automatically picks and scans them through zigzag.

We have already published a similar script as protected source. But, due to some changes in the pine engine, there have been few issues in the runtime. In this publication, we not only address those runtime issues but also making it open source for the users to make use of the source code and enhance it further.
🎲 What are motive waves
Motive waves are strong upward or downward movement with 5 subwaves.

Motive Wave in the upward direction will start with Swing High, Ends with Swing High and consists of 3 Higher Highs and 2 Higher Lows representing strong upward trend.

Motive Wave in the downward direction will start with Swing Low, Ends with Swing low and consists of 3 Lower Lows and 2 Lower Highs representing strong downward trend.

🎲 Types of Motive Waves
Motive Waves are broadly classified by two types:
  • Impulse Waves
  • Diagonal Waves


Diagonal Waves are further classified into Contracting and Expanding Diagonals. These can fall into the category of either leading diagonal and ending diagonal.

🎲 Rules of Motive Waves

🎯 Generic Rule of any motive waves are as follows
  • Should consist of 5 alternating waves. (Swing High followed by Swing low and vice versa)
  • This can start from Swing High and end in Swing High or start from Swing Low and end in Swing Low of a zigzag.
  • Wave-2 should not move beyond Wave-1. This means, the Wave-2 is always shorter than Wave-1 with respect to distance between the price of start and end.
  • Wave-3 always moves beyond Wave-1. This means, the Wave-3 is always longer than Wave-2 in terms of price
  • Among Wave-1, Wave-3, and Wave-5, Wave-3 is never the shortest one. This means, either Wave-1 or Wave-5 can be longer than Wave-3 but not both. Wave-3 can also be longest among the three.


Here is the pictorial representation of the rules of the Motive Waves
لقطة

For a wave to be considered as motive wave, it also needs to follow the rules of either impulse or diagonal waves.

🎯 Rules for a 5 wave pattern to be considered as Impulse Wave are:
  • Wave-4 never overlaps with Wave-1 price range
  • Wave-1, Wave-3 and Wave-5 should not be either expanding or contracting. Meaning, we cannot have Wave-1 > Wave-3 > Wave-5, and we cannot have Wave-1 < Wave-3 < Wave-5


Pictorial representation of the impulse wave rules are as below:
لقطة

🎯 Rules for the Diagonal Waves are as follows
  • Contrary to the first rule of impulse wave, in case of diagonal wave, Wave-4 always overlaps with Wave-1 price range. But, it will not go beyond Wave-3
  • Waves are progressively expanding or contracting - Wave1 > Wave3 > Wave5 and Wave2 > Wave4 to be contracting diagonal. Wave1 < Wave3 < Wave5 and Wave2 < Wave4 to be expanding diagonal wave.


Pictorial representation of the Contracting Diagonal Wave is as below. Here, the Wave-1, Wave-3 and Wave-5 are in contracting formation.
لقطة

Pictorial representation of the Expanding Diagonal Wave is as below. Here, the Wave-1, Wave-3 and Wave-5 are in expanding formation.
لقطة

🎲 Indicator Settings

Indicator settings are defined as below:

لقطة

Repaint Warning: If Repaint is selected, the indicator will throw a runtime error after certain bars or when alerts are set. This is due to some pine internal issue. At present, we do not have any solution for this until the internal issue is resolved by Tradingview Pine Team.
Chart patternselliotwaveanalysisHarmonic Patternshewhomustnotbenamedtrendoscope

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

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

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

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