Sinewave indicator

 

Hello,

I am looking for sine wave generator indicator where I can control period, amplitude and offset and it can display 3 sine waves.

I post a image so you can see what I mean. I cant find it anywhere. 

Image of how it looks like

 

Sine Wave - indicator for MetaTrader 5

Sine Wave indicator was developed in 1996 by the American analyst John Ehlers, who called it a "trend oscillator". It is based on the idea of the economical processes periodicity: the indicator detects this periodicity violations. 

The indicator acts in a completely opposite way comparing to the adaptive moving averages during a trend market: in case of a definite trend, both indicator lines (Lead Sine and Sine Wave) move parallel to each other and show the trend direction by their location relative to each other; in case of a flat, the Sine Wave indicator quickly reacts on the market swing movements. That is one of a few indicators that can be used both during a trend market and a flat and it shows accurate results in either case. 

The simplest way to automatize trading using the Sine Wave indicator is to create the automated trading system that can generate buy and sell signals in case of two lines crossing. Therefore, positions will be closed when these lines cross with different periods in the opposite direction.

Two versions of this indicator are available. Original code version - Sinewave.mq5. Sinewave2.mq5 indicator provides a small filtration of chaotic oscillations of the Lead Sine line. 

 

and the article - Advanced Adaptive Indicators Theory and Implementation in MQL5 -

Phasor or Phase Vector is a vector that shows amplitude and phase of a cycle. According to Euler's formula a sinewave can be represented as a sum of two complex number components. Please observe rotating phasor depicting a sinewave cycle below.

Phasor

 

Leonhard Euler - Wikipedia
Leonhard Euler - Wikipedia
  • en.wikipedia.org
Euler was one of the most eminent mathematicians of the 18th century and is held to be one of the greatest in history. He is also widely considered to be the most prolific mathematician of all time. His collected works fill 60 to 80 quarto volumes,[5] more than anybody in the field. He spent most of his adult life in Saint Petersburg, Russia...
 
Sergey Golubev:

If more so you can make a search by yourself for the Market for example, or go to Freelance to find the coder who can help. 

----------------


Dear Mr Golubev, thank you for your effort, I really appreciate it. I already read those articles and thats why I became more interested in sine waves. I have seen and tried all those indicators but as its shown in image it is not the sine wave generator which I was looking for. And just because I found an image of it, I know it exists and it can be coded. Maybe it is better to find somebody on freelance.
I hope you're doing excellent and wish you every best.
 
I found old thread with indicator (for MT4) - it is on this page: https://www.mql5.com/en/forum/174980/page2 
All John Ehlers Indicators...
All John Ehlers Indicators...
  • 2006.09.03
  • www.mql5.com
Hi all... I'm dedicating this thread to all indicators by John Ehler's in the hope that we can get/make as many of them for MT4 as possible...
 

You need a more complicated wave equation to describe (and actually predict) the market than just a sine wave. I'm trying to figure out alglib polynomial interpolation, it should provide some results in this direction.

I wrote something that multiplicates sine waves with fading amplitude and it did draw something like an Elliot wave, but it's (very) far from ready.

 
kypa:

You need a more complicated wave equation to describe (and actually predict) the market than just a sine wave. I'm trying to figure out alglib polynomial interpolation, it should provide some results in this direction.

I wrote something that multiplicates sine waves with fading amplitude and it did draw something like an Elliot wave, but it's (very) far from ready.


Kypa, well spot on the point that sine wave is way too simple to describe the market. If market was that simple than our trading would have been too easy.

Indeed, it might be necessary to model something like more complex system of cycles made up from multiple of periods and amplitudes.

However, instead of trying model those complex system from the cycle point of view, it might be more straight forward to view the market from the fractal wave point of view.

It is because Fractal Wave is a sort of system representing the infinite number of cycles presents in the financial market data. It is the core assumption of the Fractal wave.

This price pattern table will presents the complexity of price evoluation  from left to right.

It get more complicated in the order of Trend, Seasonality, Cycle and Fractal Waves from column 1 to column 5. 



Then, the meaning of complexity of price evolution is closely related to the the number of cycle periods appears in each price pattern table in above five columns.

There is no cycle in the trend (column 1). There are few cycles in seasonailty (Column 2 and Column 3). The system can have more complex pattern of having multiple of cycles (Column 4) but still with finite number of cycles. 

Finanlly, Fractal Wave (Column 5) gets it to the infinite becasue it assume that the similar geometry is keep repeating in different scales infinitley. 


So what is the methods of trading these complex system like Fractal Wave ? 

It is about using the price pattern (or chart pattern) derived from Fractal Wave itself for your trading.


Just to clarify, here are some examples of price patterns that are direclty or indirectly derived from Fractal Waves. Some price patterns have more definite structure whereas some price patterns have loose pattern structure only.

  • Geometric Support and Resistance
  • Supply Demand Zone
  • Fibonacci Retracement and Fibonacci Expansion
  • Harmonic Pattern
  • Elliott Wave Pattern
  • X3 Price Pattern
  • Peak Trough Analysis
  • Falling Wedge and Rising Wedge Pattern
  • Double Top and Double Bottom
  • Triple Top and Triple Bottom
  • Renko Charting
  • ZigZag indicator
  • Point and Figure Chart
  • and so on


In summary, it would be more straight forward trying to model this complex system of cycles using Fractal Wave point of view.

If you are still trying to approch this from cyclest point of view, then you have to assume that the number of cycles are finite by identifying the multiple of periods and amplitudes deterministically for each cycle.

This is damn hard, mathematically for the finanicial market data (It is fine for other simple data type though).    

This is really a friendly advice.

I only do this because I wish all the price action and pattern trader help each other to enlighten more people for their success.

For Michalangelo , you have made a really imporant question to the trading community.  I hope this post will save your time for you to achieve whatever you want to achieve.

Kind regards


Reason: