EA wont buy, help!
-
Hi,
I have tried to make ea with custom indicator and ea should buy when color is lime green (buffer0) and sell when color is dark orange(buffer1).
As you can see ea only sell
I have only ex4 file but i think i have loaded it correctly

I have tried to use trace block and this is what i get

Limegreen(buffer0) always show some number like you can see in picture but when line on chart is limegreen (buffer1)darkorange show empty value, also you can see vertical orange lines I dont know why that happen and if that have something with ea not buying, and one more thing there is (buffer2) same color as (buffer1) and I dont know if that affect ea somehow?
Indicator(0_1559400451436_Jurik smoothed Kijun slope.ex4 ) -
Try swapping buffer 0 position by buffer 1 on the manually inserted output buffers dialog box. If green colour is working now instead of orange then it probably means that buffer 0 is not understood by the platform. This happens a lot on MT5.
-
@luka21 if, as you say, buffer0 always shows a value the indicator appear block will not function as you want it to. This block is comparing one event with another, in the example you show it would only pass if at candle ID 4 buffer0 had no value and then at candle ID3 has a value. If it always has a value there is no point at which it appears as it is always present.
As you say buffer1 has no value when you want the buy to occur (the green line is visible) why not try the ea using the indicator disappear block with buffer1 in place of the indicator appear block with buffer0?
-
@cpbonzo Thank you, your advice is working!