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
MyArray [0] [0] = Here we will save the ticket number of the previous open trade.
Here is some code to get you started - play around with it.
But do consider the advice above - using a struct in an array is far more effective
Here is some code to get you started - play around with it.
But do consider the advice above - using a struct in an array is far more effective
according to my knowledge i am doing it correctly but it is not working can u please have a look ?
Some suggestions:
You have to select the context of the ticket you want before using such functions [i.e. within the for (int i = 0; i < totalPositions; i++) loop
- AFTER the ulong ticket= PositionGetTicket(i) statement]
Please read the MQL5 documentation - there are lots of good examples for everything you need - copy their style for optimal/better code
Please always use the CODE button (Alt-S) when inserting code.
Some suggestions:
You have to select the context of the ticket you want before using such functions [i.e. within the for (int i = 0; i < totalPositions; i++) loop
- AFTER the ulong ticket= PositionGetTicket(i) statement]
Please read the MQL5 documentation - there are lots of good examples for everything you need - copy their style for optimal/better code
here is the file brother
Please follow the bullet points 3 & 4 i mentioned - your efforts will result in you learning MQL5 better.
Coding it yourself is the only way.
here is the file brother
...wouldnt new price be "... * _Point" not Digits?
...wouldnt new price be "... * _Point" not Digits?
yes brother my mistake