Issue with reading indicator arrows (indicator visible)
-
Hi there,
I struggle with reading the arrows of a custom indicator to trigger trades.
The indicator will print an arrow on the current candle (index 0), but it can be at any time (i.e. lets say it is a 1m candle and it prints after 27 seconds and then it stay, no repainting). I use the Indicator Visible specifying candle 0, but no trade is triggered. I am pretty sure the buffer values are correctly assigned, so maybe something with the logic is wrong.Thanks anyone if you have some suggestions:
https://fxdreema.com/shared/EekQNXWub
Thanks so much
-
Add a trace for the custom indicator, run a Strategy tester then watch it go. Pay attention to the values and see if that makes sense.
-
Thanks a lot for the tip. The trace function is helpful. However, in this case I still don't understand the issue.
I copy below the screenshot from the Strategy Tester. Out of the 3 highlighted blue arrows (with corresponding buffer "3rd vul" showing a number), only 1 trade is taken. Same for the red arrows that follow. On average only 1/3 - 1/2 of signals trigger a trade. I don't see any repainting in the backtest, what else could cause this?The latest project: https://fxdreema.com/shared/KfdQNvjae

-
@fm2020 Apparently your custom indicator is repainting. You should check it before using it on your EA. Otherwise any backtest will simpli a waste of time.
-
while its tracing, and watching the strategy tester, does it show the arrows in real time or only populates them after?
-
Hi, yes thanks there is some repainting actually, I think after some observation that it could be 3-4 candles later. So I added to the box "On additional candles to be visible" the number 4, but it still doesnt help, still no trades triggered except the ones appearing on candle ID = 0. Is there anything else I could try?
If not I will have to stick to the signals I can capture and add some MM and trailing stops.Thanks if you have any ideas how to capture the repainting candles (even with some delay these would add value when combined with MM I believe).
Latest project: https://fxdreema.com/shared/jpGimu3Rd

-
@fm2020 You can try the block 'Indicator appears'. It can catch the first time the arrow appears. However, if it disappears later, that can be a bit messy.