Expert Advisor Programming for MetaTrader 4 Brand new and fully updated for the latest versions of MetaTrader 4, is a practical guide to programming expert advisors in the MQL4 language. Leverage the latest features imported from the MQL5 language, including object-oriented programming, enumerations, structure and more. This book will teach...
yes, you're very welcome here and no need any .com at out there :)
Good luck
:)
i had a question though, is it possible to open a position exactly when SL is hit (or you can say position is closed in loss) instead of placing a pending order in opposite direction when first position is opened? because if i use trailing stop then it will be real good not to place two orders at once.
i had a question though, is it possible to open a position exactly when SL is hit (or you can say position is closed in loss) instead of placing a pending order in opposite direction when first position is opened? because if i use trailing stop then it will be real good not to place two orders at once.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Okay, according the code in your EA, here is a sample to place sell-stop at your current buy order :
Good luck.
Thank you, it worked exactly as it should, i was able to modify it to place it under open sell conditions too. i tried and that worked too.
next i will learn how to delete this pending order if the position hit take profit. :)
thank you very much for help
Thank you, it worked exactly as it should, i was able to modify it to place it under open sell conditions too. i tried and that worked too.
next i will learn how to delete this pending order if the position hit take profit. :)
thank you very much for help
yes, you're very welcome here
and no need any .com at out there :)
Good luck
yes, you're very welcome here
and no need any .com at out there :)
Good luck
:)
i had a question though, is it possible to open a position exactly when SL is hit (or you can say position is closed in loss) instead of placing a pending order in opposite direction when first position is opened? because if i use trailing stop then it will be real good not to place two orders at once.
Thank you sir.
i will give it a try
:)
i had a question though, is it possible to open a position exactly when SL is hit (or you can say position is closed in loss) instead of placing a pending order in opposite direction when first position is opened? because if i use trailing stop then it will be real good not to place two orders at once.
yes, it is possible,
like @Marco vd Heijden said before.
yes, it is possible,
like @Marco vd Heijden said before.
I mean in Code examples, i am a slow learner btw :D
thank you, but i was looking for code, if you can provide than i will be more thankful.
I was looking for code as well and you only provided words so i gave you words in response.
You can always try freelance: https://www.mql5.com/en/job
I was looking for code as well and you only provided words so i gave you words in response.
You can always try freelance: https://www.mql5.com/en/job