Claudio Lasso:
It doesn't close the position in the right way.
You need to read out the indicator values on every
tick. If you put it to the top it means you are defining it globally. Global variables are initialized only once upon startup.
If you have problems with closing maybe try to SELECT_BY_TICKET and maybe try to store ticket[i] in an array

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
Godd evining,
I'm newbie in programming EA. I'd like to to an EA that does that
- If price is under lower BB and volumes is higher than a certain parameter it must buy;
- If price is upper Higher BB and volumes is higher than a certain parameter it must sell;
I programmed also a auto closed operation when price is under/upper the lower/higher BB for sell/buy position
Here is my code
It doesn't close the position in the right way.
There's somebody can help me?
Thanks a lot