OBV + EMA Custom indicator.
-
Hello I have OBV + EMA Custom indicator but i dont know how to set conditions for crossup/down.

Can anyone help me with this please?
here is indicator:0_1590746659809_OBV with MA.mq4
Thanks alot
-
Did you import it correctly to your fxDreema account? Can you see the buffers?
-


It looks like this.Dont know if its correct...
Thanks for any advice. -
Apparently everything is fine. Can you please share your project? Probably the reason must be there.
-
https://fxdreema.com/shared/Ui6cc4OQb
This is my project so far,but its not opening any trades. I tried it with candle ID1 to but no difference.
The strategy is when OBV crosses EMA and at same time OBV is higher than highest OBV value per 10 candles --- BUY and opposite.
Will be glad for any help,thank you.
Got second idea with OBV to use it like "support/resist" indicator but have no idea how to put it into code to test it.
Just when OBV makes HigherHigh set pending order above. and same for sell.
Sorry for my poor drawing skillz :DDD
Do anyone have idea how to code it so we can test it?

-
Is the same buffer 0 giving you two different values? That's what is what you set in block 18. I guess there should be two different buffers, on for each value. Can you please confirm it?
-
In Block 18 im trying to find highest/lowest value of OBV per 10 Candles. Thats why im comparing same buffer. Conditions for cross are in Block 4 and 15. There im working with 2 buffers. As i understand custom indicator settings... there is in my case one buffer for OBV and second for EMA. Or am i wrong?
-
I don't have the indicator so I don't know, but I find it is very weird.
-
Indicator is in First post

-
LOL. You're right :D. Ok. I instaleld it and it correctly identifed. Honestly I don0t see why it is not working. Just a final suggestion. Can you please confirm the values for both high and low variables? Use a comment block to visualize them every tick. The only problem I can guess is the comparisons in blocks 15 and 4 are wrong because their values are nor correct.
Check thet and let me know, please.
-
Comment block does not show any data. Maybe i have wrong variable type. Im using double,but the numbers can be like
-43568.9 so i dont know if its correct. -
Yes, it is correct. Can you please share your project including the 'Comment' block?