Example: open a BUY position with a volume of 1 lot.
//+------------------------------------------------------------------+ //| Open Buy.mq5 | //| Copyright © 2018-2021, Vladimir Karputov | //+------------------------------------------------------------------+ #property copyright "Copyright © 2018-2021, Vladimir Karputov" #property version "1.001" //--- #include <Trade\Trade.mqh> CTrade m_trade; // trading object //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { //--- m_trade.Buy(1.0); // open Buy position, volume 1.0 lot }
bulletproof:
LOL... is this a joke?
Hi guys... i'm new to mql5 and programming generally and would love for assistance to these codes..
...this is how far i could go
i know some functions required like ordersend(), ordermodify(), orderopenprice(), orderstoploss(), gettingcurrentmarketprice
dont know how to work them
Thanks for your help!

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
Hi guys... i'm new to mql5 and programming generally and would love for assistance to these codes..
...this is how far i could go
i know some functions required like ordersend(), ordermodify(), orderopenprice(), orderstoploss(), gettingcurrentmarketprice
dont know how to work them
Thanks for your help!