How to read MA value of different bar
  #1 (permalink)  
Old 11-29-2008, 09:01 AM
Currency Trader
Join Date: Jun 2008
Posts: 1
Sufian is on a distinguished road
Red face How to read MA value of different bar

Hi Guys,

Need some light here, could anybody clarify or code for me value of Moving average for the current bar, previous bar, and last 2 or 3 bars.
It does not matter method of moving average.

Reply With Quote
  #2 (permalink)  
Old 02-16-2009, 08:03 PM
Currency Trader
Join Date: Feb 2009
Posts: 1
bredin is on a distinguished road

double iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)
Calculates the Moving average indicator and returns its value.
symbol - Symbol the data of which should be used to calculate indicator. NULL means the current symbol.
timeframe - Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.
period - Averaging period for calculation.
ma_shift - MA shift. Indicators line offset relate to the chart by timeframe.
ma_method - MA method. It can be any of the Moving Average method enumeration value.
applied_price - Applied price. It can be any of Applied price enumeration values.
shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
OK - Traditionalists need not read... autolox Trading Systems 11 04-25-2014 02:16 AM
Before Asking For Coding Help!! READ FIRST gazuz System Coding 6 06-30-2009 06:07 PM
!!!read This!!! forexflash Brokers/Platforms 6 08-17-2008 10:31 AM
Please read this sobering article Tribulus General Trading Talk 3 05-27-2008 07:38 PM
Read SJR3t2 Chit Chat 6 11-30-2004 02:37 PM

All times are GMT. The time now is 05:47 PM.

Registered members gain free access to online FOREX currency trading tools, foreign exchange software, Metatrader MT4/MT5 expert advisors, MT4 indicators and EAs. Register now