Open a position when indicator gives alert
-
Hi
Is it possible to make an EA which will use alert price from an indicator to open an order. I mean, when an indicator gives alert, EA will use this alert (price) and open a position -
If 1) the indicator can be successfully uploaded to your fxDreema account AND 2) those alerts are easily identifiable by the builder (ie, available buffers), the answer is yes.
-
Thank you for your answer. How can I find the alert buffer of indicator. I only have ex4 file not source code
-
@rusen Check data window in terminal on a chart were the indicator is placed on. To switch on/off data window use CTRL-D keys.

It should look like this.
Now try to find your indicator. If it draws for example an arrow on the chart, then hover over that arrow and see which buffer value changes (usually one gets a number that hadn't one before or after).
-
Thank you. It only shows name of the indicator and nothing is changing

-
@rusen If you may upload your indicator I might have a look how to catch the alert event.
-
-
@rusen Well, that seems to be a comercial indicator and my account is not in the list to use it. In general it will be hard to get reliable results with an harmonic indicator as it tends to repaint if price moves.
However, in this case you might check the objects it creates on the chart. Find them by pressing CTRL-B. But much more I can't help here.
-
Yes I tried to find object as you said but there is a problem. When I first load the EA it detects the previously drawn arrow and immediately open position. How can I tell the EA "ignore previous objects on chart" and wait for new arrow to appear.
"İndicator appear" block helps if I use indicator but when I use "for each Object" this problem arise. Is there an "object appear" block ? -
@rusen I am absolutely no expert in managing chart objects! What I found by quickly scanning the options I'd start with this condition block (don't know if that is doing the right thing) in your object loop.

There is als a Time doption where you can choose from 3 times. Maybe that could work as well.

For a triangle object there are 3 times. So maybe one of those might do the trick.
-
This configuration worked. Thank you for your inspiration.
