Indicators indicate. Why would/should it know if an EA is on the chart?
You're working at your desk, why would/should you care if the boss is in the room?
Indicators indicate. Why would/should it know if an EA is on the chart?
You're working at your desk, why would/should you care if the boss is in the room?
@WHRoeder: Just because you have no need for it does not mean that you should ridicule the question. It is in fact a valid query and one that makes sense for many a case.
The fact is that there are "Chart" functions to identify and delete Indicators attached to a Chart. It would make sense that a "Chart" function to identify an EA would also be useful.
@ionone: Unfortunately, it does not seem there is a native function to identify an attached EA, but there could still be a work-around method.
There is a "WindowExpertName", but it only returns the name of its own scope from within an EA, Indicator or Script and not any other attached to the Chart!
FMIC: @WHRoeder: Just because you have no need for it does not mean that you should ridicule the question. . It is in fact a valid query and one that makes sense for many a case. |
|
Maybe you don't think about it if EA suddenly leaves the chart,
then an indicator is needed to give a warning to traders
this is just a simple example
:)
Hi
You can make a “workaround” function for such management, but you would have to have the access to code of the EA and the indicator. You could add a global variable with proper name (including symbol/period and/or chart id) when EA is active and when it’s removed global variable would be also removed. This could be the signal for indicator that EA is removed, but this indictaor has to also “get” those global variables. It’s not a perfect solution but it may work with proper management I suppose.
Have a nice day👍📊

- 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
is there a hack that allows to know, within an indicator, the expert name that is on the same chart as the indicator?
thanks a lot
Jeff