Tick and Volume and Date and Price

 

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

 
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.

 

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

 
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.