![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
@Vladimir Karputov
@William Roeder
finely this code worked for me
Your code won't compile. It contains many bugs.
@Vladimir Karputov
deferent libraries same code and same function
now I have tow quastions please help me with
1-how to modify the positions?
2-where to put dynamic stoploss code?
thank you very much
It is still not clear to me: what exactly do you need? I cannot compile your code - there are a lot of compilation errors in it.
Describe in your own words: under what condition you need to close ALL positions.
In general, this is how I understood your question: when two iMAs intersect, we receive a signal (open a position, and close the opposite one). This is a minimal code - there is no basic protection and verification of a trade request. This is very simple code.
@Vladimir Karputov
Amazing thank you very much
yes exactly the above code what I meant.
in addition if you will I want to know how to:-
1-how to modify all opened positions ?
2-where to put dynamic stoploss code for all opened positions in above code?
@Vladimir Karputov
Amazing thank you very much
yes exactly the above code what I meant.
in addition if you will I want to know how to:-
1-how to modify all opened positions ?
2-where to put dynamic stoploss code for all opened positions in above code?
Example - how to set Stop Loss and Take Profit:
Simple Advisor with Stop Loss and Take Profit
Example - how to set Stop Loss and Take Profit:
Simple Advisor with Stop Loss and Take Profit
OMG thank you very much
there is every thing I want
thank you