Forum

Modified MACD for MT5 inf problem

Hello everybody! There is this 3-10 Oscillator for MT4 which works like this: for ( int i= 0 ; i<limit; i++) ThreeTenBuffer[i]= iMA ( NULL , 0 ,FastSMA, 0 , MODE_SMA , PRICE_CLOSE ,i)- iMA ( NULL , 0 ,SlowSMA, 0 , MODE_SMA , PRICE_CLOSE ,i); //---- signal line counted in the 2nd buffer

Find first candle of any highr timeframe.

Hello everybody! I need help with the code snippet to find the first candle (or any next candle) of a lower timeframe for any other higher timeframe candle. Problems arrise from H4 and higher. I want to write myself an indicator to extract the OHLC data from that specific lower Tf candle and plot

TICKVALUE problem at various brokers

I have encountered this problem. Book says TICKVALUE is in deposit currency. However, practice shows some brokers return the value in other currency than the deposit currency. Moreover, I have seen cases where ie. one CFD's TICKVALUE was in deposit currency, while another's was in base currency

How to make an array from iCustom?

I have this indicator Tickseperatevolume_.mq4 (attached) which I modyfied myself to sum up tick volumes and create 2 labels, and it works fine. Now, I want to do the same, only with data taken from another indicator using iCustom(). The indicator to do this I called as ClusterDelta_VolSum.mq4 -

How to recognize AccountCurrency chart by EA - help needed!

Hello everybody, I need to calculate RequiredMargin in my EA in the situation when: AccountCurrency () != "USD" && AccountCurrency () != "EUR" To calculate RequiredMargin I use the formula: extern string AccountCurrencyChart= "USDPLN" ; double RequiredMargin=Lot* 100000 *Ask/ AccountLeverage ()*