Forum

Timeframe and iIchimoku

Hi everybody! I've got a problem , when I try to see the difference between Buy1_current and Buy2_5mn, I've got the same value while the second indicator has a PERIOD_M5 ! Is it normal? double Buy1_current = iIchimoku(NULL, 0, 9, 26, 52, MODE_CHIKOUSPAN, 26); double Buy2_5mn =

How to have a dynamic compilation on an EA?

Hello world ! I want to know how to create an EA with dynamic compilation ( F5 ) for example every 20 seconds . I saw that the F5 function was defined by VK_F5 (Thanks Coders Guru! ). But how to run ? this is my EA **********************************

Recover a data type from an indicator

Hi Is it possible to recover a data type from an indicator (3 MA Cross w alert) to put it in a EA? This is what I want to do : In the indicator (3 MA Cross w alert) I put a data type : double execute_trade = "ok_buy" or execute_trade = "ok_sell" here : ************Indicator ************ if

how to make a trade with a cycle?

hi I have an EA and I'd like to make it works with a cycle. I've got 5 variables double ma1 = iMA(NULL, 0, 1, 0, MODE_EMA, PRICE_CLOSE, Current + 0); double sar = iSAR(NULL, 0, 0.02, 0.2, Current + 0); double Macd=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,Current + 0); double

How can I have the name of the chart in an Alert?

Hello everyone! Just a little question: How can I have the name of the chart in an Alert? Thanks

How to see Moving_average_1mn and Moving_average_5mn in the same chart?

Hi everybody This is my indicator // double moving_average_14 = iMA (NULL, PERIOD_M5, 14, 0, MODE_SMA, PRICE_CLOSE, shift + 0); As you can see his period is 5mn! Now I'd like to put it in a 1mn graph and so I can see my Moving_average_1mn and Moving_average_5mn in the same chart. But I don't know

problem with [i]

hi in my EA, I try to print my two variables but it's not working: ********************************************************** double m_10 = iMA(NULL, 0, 10, 0, MODE_SMA, PRICE_CLOSE, Current + 0); double m_20 = iMA(NULL, 0, 20, 0, MODE_SMA, PRICE_CLOSE, Current + 0); for(int i=1; i<500 ; i--) {

how to include a file.txt in an mq4 file ??

Hi everybody I've got a file (var.txt) with some variables //************var.txt*********************// double high_d1 = iHigh (NULL, PERIOD_D1, Current + 0); double low_d1 = iLow(NULL, PERIOD_D1, Current + 0); double highp1_d1 = iHigh(NULL, PERIOD_D1, Current + 1); double lowp1_d1 = iLow(NULL

how to build my own moving average with the average of 4 indicators?

Hi I'd like to know how to build my own moving average with the average of 4 indicators double ma = iMA (NULL, 0, 14, 0, MODE_EMA, PRICE_CLOSE,Current + 0); double ma_m15 = iMA(NULL, PERIOD_M15, 14, 0, MODE_EMA,PRICE_CLOSE, Current + 0); double ma_m30 = iMA(NULL, PERIOD_M30, 14, 0