Indicators: Four clicks to draw an arc-shaped channel

 

Four clicks to draw an arc-shaped channel:

A quick way to draw an arc-shaped channel using four mouse clicks.

Author: Nikolai Semko

 

A little mistake. The code for MT4 does not work correctly.

Here is the code for MT4

Files:
Arc.mq4  19 kb
 

The code for MetaTrader 4:

Files:
Arc.mq4  19 kb
 

I fixed some bugs and made the work a little more convenient. Now both lines are edited independently. The lines go into the future.



Files:
Arc.mq5  24 kb
 
For MT4 version 1.02
Files:
Arc.mq4  12 kb
 
For MT4 ver. 1.02
Files:
Arc.mq4  12 kb
 
A parabola (aka 2nd degree polynomial) over two points:
Files:
Parabola.mq5  13 kb
 

A parabola (it is also a polynomial of the second degree) by two points:


Files:
Parabola.mq5  13 kb
 
Nikolai Semko:
Parabola (aka 2nd degree polynomial) on two points:

Beautiful indicators!

As a possible continuation of the topic, fix points on the parabola (for example, by double-clicking) and bend the line further by polynomials of degree higher than the second.

However, judging by the posts, I suspect you already have some of these. :)

 
Aleksey Panfilov:

Beautiful indicators!

As a possible continuation of the topic, fix points on the parabola (for example, by double-clicking) and bend the line further by polynomials of degree higher than the second.

However, judging by the posts, I suspect that you already have such. :)

No, I'm too lazy to do that. The code would become much more complicated. I think a parabola (arc) is quite enough. A wave will be difficult to use for techanalysis.
 
I think this mql4 code here https://www.mql5.com/en/code/7488, like your idea
Lagrange polynomial
Lagrange polynomial
  • www.mql5.com
camarilladt8 It is suitable for those who are too lazy to calculate the daily levels. MultiTrend_Signal_KVN The indicator of the famous trader Korykin. It helps to enter inside the channel. Ticker Awesome Oscillator It is calculated as the difference between two simple moving averages: SMA(5) and SMA(34). Type of the...