March 26, 2007
How to chart spreads?
To create a spread chart (and other multi-security indicators / statistics etc.) one can use FOREIGN function which allows to refer to other symbols than currently selected:
It’s necessary to do the following:
– Analysis -> Formula Editor
– enter the formula:
spread = Foreign( "ticker1", "C") - Foreign( "ticker2", "C");
Plot( spread, "spread", colorRed); 
– Tools -> Apply Indicator
(replace ticker1, ticker2 with actual symbol names)
Filed by AmiBroker Support at 7:58 am under Indicators
1 Comment