This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
OsMA shift parameter missing for user inputBack to topics list |
|
FrankC
2005.10.20 16:16
Hi,
The shift parameter is missing when you try to insert the OsMA Indicator on a chart, but is available in the mq4 for the EA! I am using MT4 Build 183 (04 Oct 2005) version. Am I missing something here? ///Frank |
|
Slawa
2005.10.24 13:53
double iOsMA( string symbol, int timeframe, int fast_ema_period, int slow_ema_period, int signal_period, int applied_price, int shift)
Calculates the Moving Average of Oscillator and returns its value. Parameters symbol - Symbol the data of which should be used to calculate indicator. NULL means the current symbol. timeframe - Time frame. It can be any of Time frame enumeration values. fast_ema_period - Number of periods for fast moving average calculation. slow_ema_period - Nmber of periods for slow moving average calculation. signal_period - Number of periods for signal moving average calculation. applied_price - Applied price. It can be any of Applied price enumeration values. shift - Shift relative to the current bar (number of periods back), where the data should be taken from. ============= You can take only one value per call. shift parameter allows to access to one value of calculated array. sfift=0 means current value, shift=1 means value from previous bar and so on |
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
