MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Screenshot
AUDJPY, M15
Demo
Subscribe to signal
Jef Pro Trader
55.79%, 7 780.66 USD
Virtual Trailing StopVirtual Trailing Stop Try product
Virtual Trailing Stop
Author: Wahoo
Demo_resource_EA Expert Advisor
Demo_resource_EA
Author: MetaQuotes
A Few Tips for First-Time Customers A Few Tips for First-Time Customers

SetPriceSeries

Sets pointers to external price series.

virtual bool  SetPriceSeries(
   CiOpen*    open,        // pointer
   CiHigh*    high,        // pointer
   CiLow*     low,         // pointer
   CiClose*   close        // pointer
   )

Parameters

open

[in]  Pointer to Open timeseries.

high

[in]  Pointer to High timeseries.

low

[in]  Pointer to Low timeseries.

close

[in]  Pointer to Close timeseries.

Returned value

true if successful, otherwise false.

Note

The setting of pointers to external timeseries (price series) is necessary if the object uses timeseries of the symbol and timeframe, different from the symbol and timeframe, defined at initialization.


Updated: 2011.07.26