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.
thank you so much for your answer .
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.