amibroker help

#1
hi,

can anyone tell me how can i plot indicators on spread charts.

For example i want to plot ADX indicator on spread chart gold mid month and near month

But when i drag the indicator on the new pane window, by default it takes the base price chart value and plots the indicator on that rather than the spread value.

Kindly find attached the image of the same.

Thanks in advance
 

Attachments

trash

Well-Known Member
#2
1. Use AddToComposite and Foreign functions to display ADX for that created composite.
or
2. You (or someone else on behalf of you) code your own ADX having a custom array to choose from. e.g

Code:
ticker1 = C;
ticker2 = Foreign("blabla", "C");

spread = ticker1 - ticker2; // or ticker1/ticker2;

myADX = cADX(spread, 14);
cADX would be the ADX of your own plugin or custom AFL function of ADX.

Or you look for other options.
 
Last edited:
#3
thanks trash, for your help..

by the way, if i may ask, do you trade as well in spreads or other such strategies..


thanks once again for your help..