• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:29pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:29pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

TOP 100 best indicators: post good indicators here 580 replies

Lagging Indicators -vs- Leading Indicators 48 replies

Create MT5 indicators from MT4 indicators 3 replies

Custom Indicators vs. Technical Indicators 5 replies

Bar and indicators value on specific time 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: How to get an MA value of first indicators value?
Exit Attachments

How to get an MA value of first indicators value?

  • Post #1
  • Quote
  • First Post: Apr 16, 2011 9:57am Apr 16, 2011 9:57am
  •  ewinner
  • | Joined Apr 2010 | Status: Hanging in there... | 216 Posts
Hello,

Im hoping one of the great coders on FF can help me out or at least put in the right direction.

I have been playing around with MQL for some time now but have come up against a problem/question i cannot answer. I have searched the forums and internet but cannot find any code i can play with.

Any help is much appreciated.. Here goes...

If i put a CCI 25 Typical Price on a chart and then drag a SMA 18 Close onto the CCi and set it to first indicators data as per the image below.

Now my question is, if you look at the data panel the two values, i want to be able to use those values in an EA, how do i get these values?

I know i can use iCCI(NULL,0,25,PRICE_TYPICAL,0) to get the CCI value, how do i get the MA value of CCI?

Im completely stumped on this, from what i have been able to find out is its to do with iCCIOnArray... but that is as far as i have got.

One again, thank you for any advice and suggestions on this.

Regards
Mark
Attached Image
  • Post #2
  • Quote
  • Apr 16, 2011 10:19am Apr 16, 2011 10:19am
  •  iwjw
  • | Joined Mar 2011 | Status: Member | 464 Posts
you can use the iMAOnArray function
 
 
  • Post #3
  • Quote
  • Last Post: Apr 16, 2011 1:31pm Apr 16, 2011 1:31pm
  •  ewinner
  • | Joined Apr 2010 | Status: Hanging in there... | 216 Posts
Thanks for the tip.... done some searching and found a good tutorial here http://www.metatrader.info/node/84 explains it very well

Cheers
Mark
 
 
  • Platform Tech
  • /
  • How to get an MA value of first indicators value?
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022