Pretty much the title, I'm having problems having my partial closing be a percentage of the whole tp instead of a fixed value and I'm not sure why. Basically, im coding a range breakout strat and I have a breakeven stop on the first partial and a trailing SL on the second partial which works just fine, but when I try to make the partial close a percentage of tp it kinda just messes up and I'm not exactly sure why. Any comments or criticisms would be greatly appreciated guys thanks!
I'd build the main functions once, just for buy, then have it depend from direction and percentage so you can call it again and again instead of using four different but same functions in a highly nested blob.
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.
Pretty much the title, I'm having problems having my partial closing be a percentage of the whole tp instead of a fixed value and I'm not sure why. Basically, im coding a range breakout strat and I have a breakeven stop on the first partial and a trailing SL on the second partial which works just fine, but when I try to make the partial close a percentage of tp it kinda just messes up and I'm not exactly sure why. Any comments or criticisms would be greatly appreciated guys thanks!