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
A Global Variable != globally declared variable
Global Variables are stored in files and are doubles, they can't hold arrays . . .
You are going to need to store your info in a file . . .
Ahh ... I understand. OK, I'll swot up on writing a log to the HDD in case of problems.
Thanks very much for your help, I hope you don't mind if I ask a fewother questions at a later date.
Regards ... G-fer.
Ok ... it's a bit hard to explain though.
I need to loop through the array generated by the open orders and determine a proportional stop loss for each ticket once it has reached a specific target. By Including the OOP in the array when it is initialised, and then looping through the array, rather than the orders, I can firstly determine whether the target has been reached and then, once that has occurred, I can replace the OOP in the array with the proportional stop loss figure, rather than physically modify the order. This PSL can then be modified within the array at each pass, as if it was retrieved by OrderStopLoss(), and then acted upon when it is breached. I think this is more efficient than continually modifying the orders to set a new stop loss ... what do you think?
Not a very clear explanation, I'm afraid.
G-fer