Tick and Volume and Date and Price

To add comments, please log in or register
dido
73
dido  

Hi There


I would like to create an array where I stock the following information for each tick


1 bid

2 ask

3 Spread

4 Time

5 Volume


MarketArray[0,0]=MarketInfo(Symbol(),MODE_BID);
MarketArray[0,1]=MarketInfo(Symbol(),MODE_ASK);
MarketArray[0,2]=MarketInfo(Symbol(),MODE_SPREAD);

MarketArray[0,3]= Time of the tick ?

MarketArray[0,4]= Volume of the tick ?


Thanks for your help


UKALGO

Glaswegian
485
Glaswegian  
ukalgo:

MarketArray[0,0]=MarketInfo(Symbol(),MODE_BID);

MarketArray[0,1]=MarketInfo(Symbol(),MODE_ASK);
MarketArray[0,2]=MarketInfo(Symbol(),MODE_SPREAD);

spread = Ask - Bid. What's the point of wasting storage space on it?


MarketArray[0,3]= Time of the tick ?

TimeCurrent();



MarketArray[0,4]= Volume of the tick ?

Always = 1 in metatrader I suppose.

dido
73
dido  

IRTRON,


Ok for the spread, you definitvely right.


Regarding the VOLUME by tick, is it possible it differ ? I think so, if yes, how I can get ithe VOLUME using MetaTrader for each tick ?


UKALGO

Glaswegian
485
Glaswegian  
ukalgo:

Regarding the VOLUME by tick, is it possible it differ ? I think so, if yes, how I can get ithe VOLUME using MetaTrader for each tick ?

In MetaTrader volume is merely a tick counter in the current bar. Hence 1 tick has volume = 1.

To add comments, please log in or register