Forum

ICustom RSI divergence call up a buffer of an indicator

I'm trying to have buffers printed in an EA to signal when a sell or buy arrow is created but they always return emptyvalues from the RSI divergence indicator. Below is the code EA and indicator int handle; int OnInit () { OnIntIND( _Symbol , handle, PERIOD_M5 ); EventSetTimer ( 20

EA news problem

I need the values: - news date and time (USD) - news impact type (USD) from uses in EA in the code i used string date=values[1] string impact=values[8] but it gives me error illegal operation use void OnTick () { //--- codice Paese per EU (ISO 3166-1 Alpha-2) string EU_code= "US" ; //---

optimization and writing of the input values ​​file

input double TeckProfit= 20 ; input double StopLoss= 20 ; input uint input_value= 0 ; double deposit; double TotalNetProfit; double MaximalDrawdown; //+------------------------------------------------------------------+ int OnInit () { return ( INIT_SUCCEEDED ); }

work with file: text in columns

how do I write the table title with the corresponding values bool writeFile() { string nomeFileTXT = "ottimizzazione.txt" ; bool printOK = false ; int filehandle; int errore= 0 ; // numero dell'errore uint numBytesWritten= 0 ; string stringa; // filehandle= FileOpen

Mql5 difference in moving average results between indicator and price closings

double MA[]; // array for the indicator iMA int MA_handle; // handle of the indicator iMA //+------------------------------------------------------------------+ //| Expert initialization function |

help custom genetic algorithms in mql5

input uint PeriodsADX= 5 ; input double LivelADX= 20 ; uint Adx1; uint contatoreADX= 0 ; double ADXmax,ADXmin= 999999999999999 ; //enum MY_TF1{A_M5= PERIOD_M5,A_M10=PERIOD_M10,A_M15=PERIOD_M15,A_M20=PERIOD_M20,A_M30=PERIOD_M30, A_H1= PERIOD_H1, A_H2= PERIOD_H2, A_H3= PERIOD_H3, A_H4=

iMa in to Expert advisor whit shift MQL5

Hello, I have created an moving average in an EA. how can i add: input int shift=-15; positive or negative ? input int shif=- 15 ; int handle1; int OnInit () { handle1= iMA ( Symbol (), PERIOD_CURRENT , 10 , 0 , MODE_EMA , PRICE_CLOSE ); return ( 0 ); } void OnTick () { //--- double