Codes

Trend Indicator for MetaTrader 4

This indicator is used to show the trend of the 30 min charts. You can then apply your Long Strategy when the market is UP and Short Strategy when the market is DOWN

Forum

iMAonArray

I have been trying to use iMAonArray function now. While looking at the following syntax, I am not very clear on how to set total and period parameter correctly. double iMAOnArray ( double array[], int total, int period, int ma_shift, int ma_method, int shift) total - The number of items to be

Newest Bars Are Not Update

Hi all, I have constructed some custom indicators lately and I had a problem that all newest bars are not updated. They stayed flat at zero. Here's my code, can someone please advise? Thank you. if(Bars<=MA_Period) return(0); i=Bars-counted_bars-1; Print("Bar is ", Bars); Print("Counted Bars is "