Hi guys,
is that possbile in a code? One indicator makes some calculations then it should simulate an object-click to activate a second indicator. No other solutions are needed because this is also for educational purposes.
Thanks!
You shouldn't need to simulate an object click.
If the first indicator satisfies whatever conditions, call the second indicator.
You shouldn't need to simulate an object click.
If the first indicator satisfies whatever conditions, call the second indicator.
But would it be possible to simulate an object click if I know the object name?
Hi guys,
is that possbile in a code? One indicator makes some calculations then it should simulate an object-click to activate a second indicator. No other solutions are needed because this is also for educational purposes.
Thanks!
Read up on EventChartCustom().
As far as I know you won't be able to get the id==CHARTEVENT_OBJECT_CLICK but I'm sure you can work around that.
Basic example. Indicator #1 sends this:
Indicator #2 can check for this chart event id:
(you'll probably want to change lparam / dparam / sparam in the EventChartCustom)
Read up on EventChartCustom().
As far as I know you won't be able to get the id==CHARTEVENT_OBJECT_CLICK but I'm sure you can work around that.
Basic example. Indicator #1 sends this:
Indicator #2 can check for this chart event id:
(you'll probably want to change lparam / dparam / sparam in the EventChartCustom)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys,
is that possbile in a code? One indicator makes some calculations then it should simulate an object-click to activate a second indicator. No other solutions are needed because this is also for educational purposes.
Thanks!