The sequence of calling ArraySetAsSeries() and CopyBuffer()

 

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.
 
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().