
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
Hi RaptorUK,
My apologies to keep use your time.
In log that follows when the initial order open the stop loss is different from 0 and that is ok because stop loss in external is 50, but when the opposite order open the stop loss is 0 and I suppose that this is wrong. How can this happen if opposite order calls for add limits function and in this functrion the stop loss is the external 50 ?
Nevertheless on graphic one can see that all sto loss lines are 50 pips apart from price....
Thank you in advance
Luis
Hi RaptorUK,
My apologies to keep use your time.
In log that follows when the initial order open the stop loss is different from 0 and that is ok because stop loss in external is 50, but when the opposite order open the stop loss is 0 and I suppose that this is wrong. How can this happen if opposite order calls for add limits function and in this functrion the stop loss is the external 50 ?
Nevertheless on graphic one can see that all sto loss lines are 50 pips apart from price....
Thank you in advance
Luis
In the following code . . .
where does the value of OpenPrice come from ? what code is used to set it ? please post it here and explain how it is relevant to this code ?
In the following code . . .
where does the value of OpenPrice come from ? what code is used to set it ? please post it here and explain how it is relevant to this code ?
Hi RaptorUk,
So, the OpenPrice is the OrderOpenPrice from the order that the ticket identifies, in this case is the OrderOpenPrice is the Bid at the moment the order is open. Hummmmm........should be bid for sell and ask for buy, right ?
The code is;
Thank you for your time
Luis
Hi RaptorUk,
So, the OpenPrice is the OrderOpenPrice from the order that the ticket identifies, in this case is the OrderOpenPrice is the Bid at the moment the order is open. Hummmmm........should be bid for sell and ask for buy, right ?
The code is;
That should help, test it and see what happens.
Hi RaptorUK,
That issue was due to a line of error be in the wrong place.
Because the line was getting information from OrderSend(....) and here the StopLoss is 0, so it can only be 0.0000.
Now I've exclude information of StopLoss from the line.
Best Regards
Luis