Help re data reference, here

To add comments, please log in or register
drlarryvon
22
drlarryvon  

in metatrader mq4 programming, re Close[shift+02], or Close[shift+05] as examples....does the program reference the close 2 bars ago, for the former, and 5 bars ago for the latter?

if not, what does Close[shift+02], and Close[shift+05] and or Close[shift+10]  refer to or reference?

William Roeder
20251
William Roeder  
  1. Why did you post your MT4 question in the Root / MT5 EA section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. Close, the MT4 predefined arrays default to as series. So Close[shift+5] is 5 bars before bar shift. In MT5 and OnCalculate arrays have no direction default, you must set them as series or not.
To add comments, please log in or register