Referencing other symbol data
|SYNTAX||RestorePriceArrays( tradeprices = False )|
|FUNCTION|| The RestorePriceArrays restores original price and volume arrays after the call to SetForeign.
tradeprices parameter has to match the one used in SetForeign() function.
When tradeprices argument is set to TRUE, then not only OHLC, V, OI, Avg arrays are restored, but BuyPrice, SellPrice, ShortPrice, CoverPrice, PointValue, TickSize, RoundLotSize, MarginDeposit variables too.
new in 5.90 - it can be also used to restore OHLC arrays that were directly overwritten by the user (without calling TimeFrameSet or Foreign).
|SEE ALSO||SetForeign() function , TimeFrameSet() function|
tj --at-- amibroker.com
|TimeFrameRestore and RestorePriceArrays|
is essentially the same function. So please note that calling RestorePriceArrays also resets the time interval set by eventual previous call to TimeFrameSet
The RestorePriceArrays function is used in the following formulas in AFL on-line library:
Updated on-line reference