I need help
-
Hi
I want to do this ea :
every new bar
check last bars (50 for examples)
if find a condition is true (indicator appear)
buy..my problem is when I put "indicator appear" it need to set an ID Candle so what I have to set?!
because I don't know ID Candle it maybe 40 or 35 or 20 or... -
you have to set the ID as some variable, and then use loop to check every id.
loop1: id1 -> check condition ->
loop2: id (1+1) -> check condition ->
loop3: id (1+1+1) -> check condition ....its pretty complicated shet if you're inexperienced
-
Can u give me an example? I'm looking for it in fxdreema examples but I didn't find any thing yet.
-
https://fxdreema.com/shared/bhDHS63Qc
Here's the principle
-
Thank u, now I understood how to do this in fx Deema, good luck.
-
Now, I found a problem, when the ea in loop for looking a signal (true condition) it can found 2 or 3 signals in the range of loop,
how I can make ea choose the last signal? (I can't minimize the range I want another way)
thank you -
So the signals happen at different price?
You need another variable, and store the price to that variable.
After the looping process, that variable should contain the last signal and you can continue with that -
It's working thank you, sir

-
Sorry for the inconvenience
can you give me an example of how I can know if the last bottom of zigzag indicator is after last top of it or the opposite
I need to know if the last swing of zigzag indicator is up or down. -
Sorry, I don't know much about zigzag
-
ok thank you

I'm waiting someone know about zigzag. -
For the first question I can suggest this block "Indicator moves within limits". This block is a little bit scary, but it's a block who can actually iterate through candles and check values for each candle. Or, in "Condition" when you are using custom indicators there are few extra options available... for example you can find the candle number at which the indicator is "visible" (meaning, its value is different than EMPTY_VALUE)
Zig Zag, I hate this indicator
Whatever I did for this indicator, I don't want to touch it anymore. I don't even know how this shit can be used, but anyway. In the indicators list you can find it, I have added few extra options on top of the original custom indicator that comes with MetaTrader. You can also import it as a custom indicator (in My Indicators) and use it like this... if you know how, because I really don't know 
-
Hhhh yes its
however, I will try with it.
thank you fxDreema
-
Can you give me an example for "Indicator moves within limits" how to I find the candle number at which the indicator is "visible"?
-
I found how to use "Indicator moves within limits" like what I want, so thank you mr fxDreema

It's a super block,