Simple Coding Help - No Promise.

cloudTrader

Well-Known Member
On a SBIN Chart

Code:
pnbClose = Foreign( "PNB", "Close", 1);
will give you close price of pnb. Ref(pnbClose, -1) will get you to previous day price.
Thank You very much for the quick reply. :clapping:

I have a query that this code will bring the close of the previous candle of the selected time frame, say 15 min. TF.

Is there a way out that I can get the Value for the Yesterday EOD close of PNB as a foreign security on an Intraday 15 min. chart of SBIN.

Thanks & Regards.
 

amitrandive

Well-Known Member

The previous chart posted marking differ from the current one in values.
I dont want those r1 r2 or s1 s2 lines, I want afl for pure pvts.
anjanbm
If you notice (in Bold Red above), I have said , we need a workaround the original AFL posted.

Any values difference is not possible unless the calculation in the AFL is wrong.

 

Similar threads