researchpro: I need to distinguish those orders which closed by TakeProfit or StopLoss, from those that closed using the OrderClose() function in the code. |
|
WHRoeder:
researchpro: I need to distinguish those orders which closed by TakeProfit or StopLoss, from those that closed using the OrderClose() function in the code. |
|
Excellent WHRoeder. Thank you for your help.
Using Less Than, will allow a fuzzy conclusion to create the bool I need to distinguish Types -- without having to meet an exact predetermined price criteria.
John
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 ,
I'm trying to return the parameters from the OrderClose function event. I want to load it into an array as each one occurs.
Example: When a Take Profit or StopLoss is hit, the order is closed . I want know When and at what price it closed, as it occurs. The problem I'm having is that the order is sent ahead of time,pending,, as opposed to if I would Close the Order with the OrderClose() Function.
Can't find documentation on how to return the OrderClose info on the same tick or bar that it occurs on. All I see documented is how to Close the order, using OrderClose().
I need to distinguish those orders which closed by TakeProfit or StopLoss, from those that closed using the OrderClose() function in the code.
Thanks
John