Use custom Swing High/Low indicator in EA
-
I have this indicator which finds previous swing high and low. I want to use it as signal generator for my ea. Whenever the it gives me swing high(on Buffer 1) or low(on Buffer 3) I want to enter SELL and BUY, respectively.
The problem is there a delay for this indicator to recognize the swing candle so I don't know how should I consider the condition.
This is my ea based on this indicator but no position is taken...
Thanks in advance.
-
Two quick questions. Are you sure you selected the correct buffers? And does the indicator repaint? If it does, the EA will not work.
-
@l-andorrà Thanks for the reply. Yes, the buffers are OK. I checked them in MT4. The indicator doesn't repaint but it has a delay. I even have tried "comment" and "variables" to capture the values of buffers but the value is always 0. Since I can not see the values in buffers, how does MT4 shows them?
-
Open the data window in MT4 and you will get what you want
-
Agreed. You should do that and see what info is provided there.