Download MetaTrader 5

The sequence of calling ArraySetAsSeries() and CopyBuffer()

To add comments, please log in or register
Have you just installed MetaTrader 5? Learn it in details!
tao zemin.
402
tao zemin. 2014.04.14 13:52 

Dear all,

I am puzzled by the sdequence of calling the two functions: ArraySetAsSeries() and CopyBuffer().

There are 3 articles or (documents?) that give examples on using the 2 function.


1. https://www.mql5.com/en/articles/130This article showed calling CopyBuffer() before calling ArraySetAsSeries().

2.https://www.mql5.com/en/docs/series.  This article showed calling ArraySetAsSeries() before calling CopyBuffer().

3. https://www.mql5.com/en/articles/43 This article showed calling ArraySetAsSeries() before calling CopyBuffer().

What is the correct sequence in calling the 2 functions?

thanks for your prompt reply.

taozemin.

20 Trade Signals in MQL5
20 Trade Signals in MQL5
  • 2010.08.26
  • Sergey Gritsay
  • www.mql5.com
This article will teach you how to receive trade signals that are necessary for a trade system to work. The examples of forming 20 trade signals are given here as separate custom functions that can be used while developing Expert Advisors. For your convenience, all the functions used in the article are combined in a single mqh include file that can be easily connected to a future Expert Advisor.
Alain Verleyen
Moderator
30737
Alain Verleyen 2014.04.14 14:58  
taozemin:

Dear all,

I am puzzled by the sdequence of calling the two functions: ArraySetAsSeries() and CopyBuffer().

There are 3 articles or (documents?) that give examples on using the 2 function.


1. https://www.mql5.com/en/articles/130This article showed calling CopyBuffer() before calling ArraySetAsSeries().

2.https://www.mql5.com/en/docs/series.  This article showed calling ArraySetAsSeries() before calling CopyBuffer().

3. https://www.mql5.com/en/articles/43 This article showed calling ArraySetAsSeries() before calling CopyBuffer().

What is the correct sequence in calling the 2 functions?

thanks for your prompt reply.

taozemin.

Both are correct. Provided that you use ArraySetAsSeries() before accessing the buffer filled by CopyBuffer().
To add comments, please log in or register