You could create a function that looks at the open order(s) and adjusts the SL as per what you want from a trailing SL. You could call this function for each tick at the start of the start function . . . does that help ?
yes a little bit. my english is bad ;-) but i know what you mean. can you mark that positions in my code ?
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.
OK, fair enough.
You could create a function that looks at the open order(s) and adjusts the SL as per what you want from a trailing SL. You could call this function for each tick at the start of the start function . . . does that help ?
yes a little bit. my english is bad ;-) but i know what you mean. can you mark that positions in my code ?
i wanna try it yet again ;-)
i must more learn, i m a absolutly newbee ;-)
yes a little bit. my english is bad ;-) but i know what you mean. can you mark that positions in my code ?
i wanna try it yet again ;-)
Create the Function here . . .
and call it here . . .
the first i understand
but the call ? must i add this to the OrderSend ? or before ?
thanks for your help
is that so right ?
shit it is not right ....
this message shown in strategytester.....
"17:17:07 2011.01.11 00:00 bastiEA GBPUSD,M15: CheckTrailingStop() - OrderSelect returned the error of 0"
help me please, this can not be that hard to make a TrailingStop :(
Where are you getting order_Ticket from ?
In Meta Editor press Ctrl + F type in currentOrderTicket click Find Next . . . . where do you set a value for currentOrderTicket ?
You can't just copy and paste other peoples code into your "own EA" and expect it to work . . . learn some coding or pay someone to do it for you.
i know :(
i m learning but is difficult for me, i can only learning by doing.
thanks for your help i will try it again and again