The ideia is not to enter in the range of price of the last position. For example if last position was opened in 1.15 the next should not enter from 1.20 to 1.10.
I was using CPositionInfo with PositionSelect(_Symbol) then PositionPrice, but when position is closed PositionPrice returns to zero.
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6.
- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
IagoGomes:
The ideia is not to enter in the range of price of the last position. For example if last position was opened in 1.15 the next should not enter from 1.20 to 1.10.
The ideia is not to enter in the range of price of the last position. For example if last position was opened in 1.15 the next should not enter from 1.20 to 1.10.
I was using CPositionInfo with PositionSelect(_Symbol) then PositionPrice, but when position is closed PositionPrice returns to zero.
You need to look into the history
Check out historyselect
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