OmegaFX:
If you create and Object and then try and create it again it fails because the Object already exists . . . if it exists (ObjectFind() > -1) move it to the new position using ObjectSet() or ObjectMove()
My EA is set to EachTick, but my objects does not update values/location when orders gets opend or closed.
my code structure as following:
Please Help and advice.
Hint: MyLine_Value and its label MyLine_Text shall be updated upon closing existing order or opening new order.
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
My EA is set to EachTick, but my objects does not update values/location when orders gets opend or closed.
my code structure as following:
Please Help and advice.
Hints:
1) MyLine_Value and its label MyLine_Text shall be updated upon closing existing order or opening new order.
2) MyLine_Value is a local variable calculated within the start() function, so that, I can not move the ObjectCreate(....) command into the init() function.