AFL Experts please help me

GREENCANDLE

Active Member
#1
I want to plot NIFTY spot chart on price chart of stocks like MA.I have painted a chart which included bellow for more clarifications.


Is there any way to do this?
 
Last edited:

GREENCANDLE

Active Member
#5
GREENCANDLE

On Nifty candlestick chart you can plot Essar Oil Line chart as follows


Plot(C,"",colorBlack,styleCandle);
PlotForeign("ESSAROIL","ESSAR OIL",colorBlack,styleLine+styleOwnScale);

vidyasagar
I want to plot Spot nifty line chart on any price chart of any script,to compare the relative change of the script with market direction.May be it is my ignorance ur formula gives me nothing except some syntex error.Thanks for effort .
 
#6
GREENCANDLE

It is working fine, you want Nifty Line chart on Essaroil candlestick chart (or any other symbol whatever youwant), copy paste the following lines

Plot(C,"",colorBlack,styleCandle);
PlotForeign("NIFTY","Nifty",colorBlack,styleLine+styleOwnScale);

and open the AFL

you will get candlesticks on default symbol
and Line chart of Nifty on it, if you want any other symbol other than nifty
you replace the NIFTY in the first quotes with any other symbol

The syntax for plotting any other symbol on the default chart is as follows:

PlotForeign( tickersymbol, name, color/barcolor, style = styleCandle | styleOwnScale, minvalue = {empty}, maxvalue = {empty}, XShift = 0, ZOrder = 0 )

According to your sample chart I understood your requirement as above,
I may be wrong, if so please forgive
please see the chart which was plotted with the above formula

vidyasagar
 
Last edited:

GREENCANDLE

Active Member
#9
Thanks to all for help.Now it is working fine on intraday chart ; but cant plot nifty on EOD chart :confused:why.You can see this in above chart which is a eod (daily)chart of ACC where nifty showing as blank.
 

Similar threads