I want to implement a way it will ask me for the invalidation price every time a new instance is created.
Do you think using Comment section will help you to pass those levels.
Hello, champs!
Tried to search around and couldn't find a proper solution.
I'm trying to create an EA that detects pending orders I place from my mobile terminal.
It will extract some information from the order and close it. It will instead remember the details, and calculate new entries and exits based on my strategy once on every new candle.
It will trail the price until the price reverses and breaches the latest entry level and we can open the trade by market execution.
Each trade instance can be in three statuses, active, inactive, and invalidated.
On the creation of a new trade instance, status is initially set to inactive (2)
After trade parameters have been calculated status is set to active (1)
Now I want to set it to invalidated on either of the two conditions:
- A trade is taken by market
- Price breaches an invalidation level - which is the extreme boundary of the my zone of interest
My problem is that, the invalidation price isn't something the EA can calculate. These are levels I set at my discretion and on different charts. I want to implement a way it will ask me for the invalidation price every time a new instance is created. I tried the MessageBox but it wont work with user input fields.
Is there a proper way to do this right? Thanks in advance.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello, champs!
Tried to search around and couldn't find a proper solution.
I'm trying to create an EA that detects pending orders I place from my mobile terminal.
It will extract some information from the order and close it. It will instead remember the details, and calculate new entries and exits based on my strategy once on every new candle.
It will trail the price until the price reverses and breaches the latest entry level and we can open the trade by market execution.
Each trade instance can be in three statuses, active, inactive, and invalidated.
On the creation of a new trade instance, status is initially set to inactive (2)
After trade parameters have been calculated status is set to active (1)
Now I want to set it to invalidated on either of the two conditions:
My problem is that, the invalidation price isn't something the EA can calculate. These are levels I set at my discretion and on different charts. I want to implement a way it will ask me for the invalidation price every time a new instance is created. I tried the MessageBox but it wont work with user input fields.
Is there a proper way to do this right? Thanks in advance.