Could anyone help with a MTF Stoch EA + MA EA?
-
Hello!
So I was trying to do this EA in Fxdreema and I couldnt quite wrap my head around it.
I want to go long when the stoch of daily TF is above/has crossed above the 50 line in the indicator window whilst h4,h1,m30,m15,m5, m4, m3, m2, m1 are all crossing above the 50 line in the window at the same time.
I tried to connect 5 conditions for this with the following logic: indicator stoch > value 80, but it doesnt seem to function. However, if I do it only for one stoch at a time, it functions.
The second EA is quite simple: I want to sell everytime the price goes 5 pips above the MA and vice versa during a specific time of the day(e.g. 15:00-22:00 server time) Also, I couldnt get the logic to work within the fxdreema. I wrote the logic down as following:
bool buy_condition_1 = Ask > iMA(NULL, 0, 10, 0, MODE_SMA, PRICE_CLOSE, 0)+ 0.0005 ;
if( buy_condition_1 ) { OrderSelect(ShortTicket,SELECT_BY_TICKET); if(OrderCloseTime() == 0 && ShortTicket > 0) { bool Closed = OrderClose(ShortTicket,OrderLots(),Ask,0,Red); }Could anyone help me with these problems?
-
I´ve also tried adding adjustment to the second EA into the condition such as, "+5pips" but to no avail so far.
-
I´m still struggling, but I made some small progress, but overall, its still lackluster. Could anyone provide their insight on these issues by any chance?
-
I got it to work, just used 1H and 4H. Not sure if this is what you are looking for.
https://fxdreema.com/shared/7l6liJvSc -
Yes, it does work wonders!! I cant thank you enough Line for helping me out with this
