How to count 9 previous bars in MQL4?

 

Hi 

Sorry I am new to MQL4 and trying to understand it


I would like to sum open values of  9 previous bars. I confused using Bars of iBars. Anyone has a clue?

Thanks

 
mohammad gerami:

Hi 

Sorry I am new to MQL4 and trying to understand it


I would like to sum open values of  9 previous bars. I confused using Bars of iBars. Anyone has a clue?

Thanks

use an index from 0 to 8.

 
mohammad gerami: I would like to sum open values of  9 previous bars. I confused … Anyone has a clue?

Perhaps you should read the manual.
   How To Ask Questions The Smart Way. 2004
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help 2017.04.21

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum 2018.05.12

Reason: