This indicator is based on the PanPrizMA Sin leverage 72 indicator, the features of which make it possible to calculate the phase and amplitude. This can sometimes be helpful.
The phase is calculated in degrees, takes values from 0 to 360 and is displayed by the 5th, green line (removed from array 4).
The opposite phase is also calculated in degrees, takes values from -360 to 0 and is displayed by the 6th, red line (removed from array 5). In the calculations, it is more convenient to use the antiphase values in the sum with 360 (which conditionally raises it to the phase level).
The amplitude with a factor of 1 is calculated in points and displayed by the 9th orange line (removed from array 8)
Refinement of the indicator from the topic: Difference calculus, examples .
I want to draw attention to the fact that there are “crutches” in the indicator that allow you to display the initial lines of the PanPrizMA Sin leverage 72 indicator.
custom trail-stop by MA - update 4
this is my first try at creating an EA from ground up - update 4
Basic List
A basic container for storing an ordered list of basic data type objects.
Forex market sessions identification
This script highlights Forex sessions for Sydney, Tokyo, London and New York with colored rectangles, according to the user time definitions.
Programming patterns - Composite
Compose objects into tree structures to represent part-whole hierarchies.