An EA that uses several timeframes

MQL5 Esperti Consulenza

Lavoro terminato

Tempo di esecuzione 2 giorni
Feedback del cliente
great codes great attitude
Feedback del dipendente
great customer. thank you

Specifiche

I have created an EA with several timeframes, however, when tested, bugs are encountered, please advise.

I am using a H4 timeframe when going through a test.

input int      barNumM=42;             // Number of bars in mid term array
double   SLS=0;


MqlRates mrateS[];
MqlRates mrateM[];

if(CopyRates(_Symbol,PERIOD_H4,0,barNumS,mrateS)<0)
{
Alert("Error copying H4 rates/history data - error:",GetLastError(),"!");
return;
}
if(CopyRates(_Symbol,PERIOD_D1,0,barNumM,mrateM)<0)
{
Alert("Error copying D1 rates/history data - error:",GetLastError(),"!");
return;
}

SLS=mrateM[iHighest(_Symbol,PERIOD_D1,MODE_HIGH,barNumM,0)].high-mrateM[iLowest(_Symbol,PERIOD_D1,MODE_LOW,barNumM,0)].low;

Bug: mrateM[iHighest(_Symbol,PERIOD_D1,MODE_HIGH,barNumM,0)].high-mrateM[iLowest(_Symbol,PERIOD_D1,MODE_LOW,barNumM,0)].low returns negative values sometimes.

Some of my buy logic is not working properly as well, but I think that is related to mrateM not functioning properly.

Con risposta

1
Sviluppatore 1
Valutazioni
(94)
Progetti
190
66%
Arbitraggio
8
25% / 50%
In ritardo
2
1%
Gratuito
2
Sviluppatore 2
Valutazioni
(74)
Progetti
121
43%
Arbitraggio
12
33% / 50%
In ritardo
17
14%
Gratuito
3
Sviluppatore 3
Valutazioni
(1)
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
4
Sviluppatore 4
Valutazioni
(15)
Progetti
16
19%
Arbitraggio
2
0% / 50%
In ritardo
1
6%
Gratuito
Ordini simili
The basic indicator and the only indicator to be used is PRICE PERCENT RANGE and the indicator files are attached. A picture to visualize what is required is also attached. Job: Indicator : 1. Add Buy alert and Buy arrow function,if the price%R value touches or goes below value 9.5 or the user specified,after candle close. 2. Add Sell alert and Sell arrow function,if the price%R value touches or goes below value 90.5

Informazioni sul progetto

Budget
30+ USD
Per lo sviluppatore
27 USD
Scadenze
a 1 giorno(i)