Trouble buying only when 16:00 crosses the high of 15:00 only!
-
Hi can somebody more experienced then me please take a look at this, I am super frustrated lol I am a beginner to EA;
shared/CGWo1oenc
All I want is a buy to take place only when the 16:00 breaks higher then the 15:00 otherwise I dont want it to take place.
Thanks in Advance, Suly!
-
@sulyayub Your shared link isn't showing, there is a few ways you can do this, if it's a line you can make the ea react on contact but depending on how the line is drawn changes how you would do this. The way I would do is at 15:00 save the price level into a variable, then use a condition with something like at 16:00 current price is above the price in the saved variable, then your buy/sell
-
@sulyayub said in Trouble buying only when 16:00 crosses the high of 15:00 only!:
shared/CGWo1oenc
Do you mean that crossing is supposed to happen any time from 16:00 to 17:00 or maybe that it happens exactly at 16:00?
-
@jstap Hi, thanks for replying. So all im trying to do is, as soon as the 1600 candle open, if it breaks below the 15:00 candle low first then i would like a sell to take place. If the 1600 opens and breaks the high first of the 1500 candle then id like a buy to take place.
-
https://fxdreema.com/shared/Nyk73RUbc try this link
-
@l-andorrà no sir, what i mean is when the 1600 candle opens, which either way it goes first up or down, if it goes down to break the low of the 1500 including wick then id like to sell. if the candle goes up and breaks the high of the 1500 including wick then id like a buy to take place. https://fxdreema.com/shared/Nyk73RUbc
-
-
hi @jstap thanks for doing that. Now its only buying not selling at all. the robot is coming in with 100% with no losses on the back test from 2021 March till present. For some odd reason its not selling its just buying. Anyways I deleted the sell option and will try to set up another robot just for selling. I used the same EA settings you created for me, it works in buys but not in sell, would you know why? thanks for all your help dude

-
-
thanks dude, your very helpful. its still not working, im gona mess around with it a bit more if there is no luck i might just give the EA robot idea up lol
-
@jstap I never use that orange 'condition' block. Just by typing 'BUY' what is it supposed to do exactly?
-
@l-andorrà It basically just does an if statement, if bool input (constant or variable) BUY = true then pass, if false don't pass. Is just like using a standard condition block but only having to use one word.
-
@sulyayub Ok if you still struggle, put the updated project on here and I'll take a look.