take out price from variable
-
i need to take out the price from last H2 (if its above then H1)to compare further or need to wait untill in uptrend the price need to crossabove the H2 price or if EMA give crossover for sell trend then no need worry about H2 same opposite for sell area also

-
sorry cant understand your english sentences? you want to take a buy trade when price goes abouve H2? and then close trae when ema cross down?
-
@maniamuthan Apparently you already store the value of H1, H2 and H3? It is not fully visible in your picture. Can you please share the link to your project. That would make it easier to review.
-
shared/Em3gKsfzb yes i already store every Highs but now i need to filtter maxhigh value to draw line in chart then if even it was a buy trend EA dont want to trade untill the price cross the line
-
-
@maniamuthan said in take out price from variable:
shared/Em3gKsfzb
You can remove all those 'Pass' blocks connecting other condition blocks. On your issue, I see you are using the example structure created by miro for using zigzag. I'm afraid that goes beyond my abilities because I don't understand the logic he created. Maybe if he's reading this he could help. Sorry for any inconvenience.

-
@maniamuthan Try this, if I understand right, this will put the highest and lowest zz into a variable so you can use it for a level.
-
@jstap
wouldn't it be better to store the incoming ticks or last candle high/low since the last trade was closed?
from what i saw it would reduce the workload a lot and takes worries out, but i dont understant the whole concept sry... -
@bk7 It would and market properties would give you that price, I just thought he wanted to work off the ZZ high's and lows.
-
@jstap yes brother acutally i want that zz high and low tnx for that