Peyman Ghodoomi :
Hi
I want to open a position and after some price changes , open another position in different volume.
In which function (onInit or onTick) should I write codes, and how can I access to open_price of the first position?
Thanks.
Start from the very beginning: launch the MQL5 Wizard and create a template for your Expert Advisor. Attach the result using the button .

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
I want to open a position and after some price changes, open another position in different volume.
In which function (onInit or onTick) should I write codes, and how can I access to open_price of the first position?
Thanks.