Speed candles indicator help
-
I was trying to make this one work but it dosnt.
https://fxdreema.com/shared/zpznbJPcc
I dont know how i am supposed to implement the indicator at all, i used blocks to check the objects value but it only trades either buy all the time or either sell . dosnt close or nothing.
It's supposed to take buy trades when m1,m5,m15,30,h1 and h4 are above 50% and close and sell when all of them are below -50% .
Help is needed.0_1496346405528_Speed Candles v1.0__1.ex4

-
I don't think that this would work: http://prntscr.com/feswi3
On the left side you have a numeric value and you are trying to compare that value with text. "+50%" is basically the same as ""Hello my friend" in this situation. I guess that MQL4 translates this text into 1, but I'm not sure. It's not correct anyway, you should compare numeric data with numeric data.
If you still want to use that text, you can try to convert it into numeric value. But you need to remove "%" and extract only the first 2 symbols (with StringSubstr()) and convert them into "double" value (with StringToDouble())
-
I tried with numeric value as well but still the same result,
I have made 13 tries on it now and have to livetest it to see if it works , so its a bit frustrating

Tried different conditions for the value approach to , with above , below , above or equal and so on

-
this seems to do the trick , but i dont know if it buys and sells when the colour changes or if the colour changes to the value i set .
i took a version that bought and sold constantly after another and filter it with the colors of the objects .