MQL5 indicator plot & Signal: calculating an expected max value based on two highest highs and signal if current value > expected

MQL5 Göstergeler

İş tamamlandı

Tamamlanma süresi: 18 gün
Müşteri tarafından geri bildirim
Thanks a lot! great piece of work, fully in line with expectations, very responsice
Geliştirici tarafından geri bildirim
Nice to work with Heiner! Smart and competent client.

İş Gereklilikleri

I am looking for an MQL5 indicator that is calculating the maximum expected value for a bar and gives a signal if current high is > expected.


Deliverables:

1. Source code, clean and well commented

2. Good optimization for fastest performance


Inputs:

Period H1 number of bars to the left of the current bar (for example H1 = 5; last 1 to 5 bars)

Perod Gap number of bars between Period H1 and Period H2 (for example Gap = 5; last 6 to 10 bars)

Period H2 number of bars in the second period considerd for the calculation of the highest high (for example H2 = 5; last 11 to 15 bars)


The expected max of current bar is calculated by

  • adding to the Highest High of Period H1
  • the average change (slope) between the Highest High of Period H2 and Period H1
  • times the number of bars between current bar and bar of Highest High

Expected = MaxValue of Period H1 * Slope * (bar of Highest High in H1 - current bar)

Slope = DeltaHH / DeltaBars with

DeltaHH = Value of Highest High in Period H2 - Value of Highest High in Period H1

DeltaBars = Barnumber of HighestHigh in Period H2 - Barnumber of HighestHigh in Period H1


See picture for an example.


Signal (Green Arrow Up) if current high > expected value of respective bar


Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(304)
Projeler
509
47%
Arabuluculuk
29
10% / 45%
Süresi dolmuş
138
27%
Serbest
2
Geliştirici 2
Derecelendirme
(261)
Projeler
427
38%
Arabuluculuk
86
44% / 19%
Süresi dolmuş
71
17%
Yüklendi

Proje bilgisi

Bütçe
50 - 150 USD
KDV (19%): 9.5 - 28.5 USD
Toplam: 59.5 - 178.5 USD
Geliştirici için
45 - 135 USD
Son teslim tarihi
from 4 to 8 gün