need help(quick questions)

To add comments, please log in or register
70955799
9
70955799  

Hello everyone,

My question was short, someone know what is the method and the library to get the price of market, and stock this price in a object or variable.

And what is the method to take and give a position in the market ?

exemple in c++ ( int price = myobject.getPrice() )

thanks for yours answers and sorry for my bad english.

Osama Shaban
1549
Osama Shaban  

In MQL4 you don't to use libraries most of time like c++ ...

Anyway ...

To know current ask price, it is enough to write, Ask .. for bid, just use Bid ...

if you want to call, for example, bid price of different chart ( like "EURUSD") ... use ...

double eurusd_bid = MarketInfo("EURUSD",MODE_BID); 

 To open market position, that is a long story ... Please read about OrderSend( ) function.

It could be not easy to do it at once. I suppose checking simple EAs will help a lot to get the idea. 

70955799
9
70955799  
thank you so much for your answer .
To add comments, please log in or register