How to compare Intraday price With previous EOD prices?

#1
Dear seniors,

I need your help regarding Amibroker AFl.Plz throw some light on the issue.
I have two NSE databases,one intraday and the other EOD.
Now I want to compare the intraday price of the stocks with the EOD prices(present in EOD database) with the help of an AFL.
Is it possible to do this.
Can we compare the prices of a same stocks present in two different databases?
Plz help.
thanks.
vedvyas.
 

hsb

New Member
#2
Hi Vedvyas,

I dont think you can compare data of 2 databases. But u can change the timeframe temporarily in an AFL.

This can be done by using functions timeframeset() and timeframerestore().

You can use the below logic:

1. Set timeframe to daily
2. Get EOD Price
3. Restore timeframe
4. Do the required processing

THe above AFL could be executed in Intraday charts only, since the EOD chart wont have Intraday data.