Hey folks.
Have been playing with MQL4 in the past. These days we also have MQL5, which I did not touch yet (but I might).
I would like to create an EA which will scale out of a position @ 3 different price points, which I will manually enter.
The scaling out should be a percentage of the original lot size, rounded to the next (larger) allowed lot size.
Does anybody have code snippets, in the best case for MQL4 and MQL5, so I have something to work with?
Thanks for reading this far :-)
PS:
If someone with a bit of code has thoughts on using MQL4 or MQL5: I will happily read it.
Have been playing with MQL4 in the past. These days we also have MQL5, which I did not touch yet (but I might).
I would like to create an EA which will scale out of a position @ 3 different price points, which I will manually enter.
The scaling out should be a percentage of the original lot size, rounded to the next (larger) allowed lot size.
Does anybody have code snippets, in the best case for MQL4 and MQL5, so I have something to work with?
Thanks for reading this far :-)
PS:
If someone with a bit of code has thoughts on using MQL4 or MQL5: I will happily read it.