Some modifications
-
Hello,
creating an EA based on a custom indicator, the problem is that the EA opens a sell order on a buy/sell signal .. need help for some modification.. i believe the problem maybe from the indicator coding, Buffer 0' Blue for buy signal and Buffer 1' Yellow for sell signal

here is the link shared
https://fxdreema.com/shared/Cez0EyZQcThanks..
-
You ned to specify candle ID 1 on blocks 8 and 14.
-
Yes i did that.. but still nothing
-
Did you check the buffers are correct?
-
@l-andorrà said in Some modifications:
Did you check the buffers are correct?
if (_startTime<=Time[i] && _endTime>=Time[i]) { fillu[i] = max; filld[i] = min; histou[i] = EMPTY_VALUE; histod[i] = EMPTY_VALUE; During your proper times you don't fill in buffers 0/1. if (histoc[i] == 1) { histou[i] = High[i]; histod[i] = Low[i]; } if (histoc[i] ==-1) { histod[i] = High[i]; histou[i] = Low[i]; } Outside of those times you do fill in the historgrams (blue or yellow.)i was told to do some modifications..
But still not understanding -
@ask4abusaidu Please, can you upload the indicator?
-
already in my channel Check my channel
t.me/ask4abusaidu -
@abubakar Evidently your indicator has some problem with 0 and 1 buffers, you can bypass this in the way I did


-
wow.. thank you very much will work on it now
-
its working now.. only some problems

it will keep opening positions as long as the candle is below itshared/5hy0ms4tc
-
Please, i guess not well understood
-
So what will be the entry if to use for buy and sell
-
@ask4abusaidu This indicator tracks the highest and lowest prices of the hours 00:00 to 03:59
You can work with the price that exceeds the support/resistance lines (red and limegreen), or with a moving average that cross them. I put both options in the shared link. -

Still opens sell on a buy signal
i tried to solve the buffer but still could not
i think the only thing is to solve the BUFFER -
@ask4abusaidu Please, in the previous screenshot you've uploaded, buy orders open above the Green Line and sell orders below the red line. Have you made any trouble?
For me works
-
now working.. Thanks
-
@ambrogio
How do i solve the wrong entries...

-
Wrong entries kills the EA
-
@ask4abusaidu have you removed the "time filter" block?

-
Thank you very much for your support

Working better on 5minutes TF
will add more filters to make it perfect
Thanks again
