If we get tick data for Amibroker, and bid ask at LTP, ask can go into High and bid can go into Low. Ask size and bid size can go into aux1 and aux2 respectively. LTP can go into O and C
How to handle them in AFL is to be seen
How to handle them in AFL is to be seen
AFL easily accommodates anything as OHLC. as we did in heikin ashi plotting if i'm not wrong.
Code:
HaClose =EMA((H+L+C)/3,3);
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
O=HaOpen; H=HaHigh; L=HaLow; C=HaClose;
PlotOHLC( O, H, L, C, "Modified " + Name(), Colorblack , styleCandle | styleNoLabel );
That means, if we manage to get tick data and are willing to keep it as it is (without converting it into 1 sec or higher time frame bars) we can easily accommodate ask|bid rates and qty in Amibroker.
Am I correct?
I guess Happy Singh will be able to confirm this. He knows AFL better.
Am I correct?
I guess Happy Singh will be able to confirm this. He knows AFL better.
Its simple - we can plot aux1 or aux2 or both simultaneously - no problem.
u dont have to plot it as plotohlc statement
rgds
u dont have to plot it as plotohlc statement
rgds
bro.... plz look at wht josh asked...?
yes wht u said is right we can simply plot AUX but wht he asked is whether we can assign any other values to open, hi , lo and close.
even we can assign anything to Volume also.
for tht purpose i shown him we can do tht.
yes wht u said is right we can simply plot AUX but wht he asked is whether we can assign any other values to open, hi , lo and close.
even we can assign anything to Volume also.
for tht purpose i shown him we can do tht.
1. If we manage to get tick data ... and
2. If we get Ask|Bid, Ask|Bid Qty(size) at LTP .... and
3. We push each record to Amibroker like this
Open = LTP, High = Ask Price, Low = Bid Price, Close = LTP, Volume = LTQ or Last Trade Qty, Aux1 = Ask Qty, Aux2 = Bid Qty
What will be the effects of this strategy on Amibroker database?
1. Advantages
2. Disadvantages
One advantage I can think of is that we do not need to turn to Ninja for indicators that require Bid | Ask
One disadvantage I think of is that database will have to remain tick based only. It cannot be converted into 1 min candles since Ask |Bid values ( embedded in H and L), for 1 min will be meaningless.
Edit -- backfill not available for Bid|Ask
Last edited: