[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Is is possible to plot volume with foreign function?



PureBytes Links

Trading Reference Links

Hello Friends,

I just got my real time data feed to test and was exploring the calls & 
puts. 
Here below is the crude way i took to plot both calls & puts in a 
single window but i coudn't plot the respective volumes with foreign 
any idea how to get this in a single indicator. I am wondering if there 
is a another way to do this.
 
Thanks in advance.

_SECTION_BEGIN("Nf3100_CP");
a=Foreign("NFCE1_3100","CLOSE",fixup=True);
b=Foreign("NFPE1_3100","CLOSE",fixup=True);
d=Foreign("NFCE1_3100","VOLUME",fixup=True);
e=Foreign("NFPE1_3100","VOLUME",fixup=True);
Plot(a,"Nfce1_3100",colorBlue,styleLine);
Plot(b,"Nfpe1_3100",colorRed,styleLine);
Plot(d,"Ce_vol",colorLavender,styleHistogram|styleOwnScale);
Plot(e,"Pe_Vol",colorRed,styleHistogram|styleOwnScale);
_SECTION_END();

Regards
hetu