fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Could anyone help with a MTF Stoch EA + MA EA?

    Questions & Answers
    2
    5
    941
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Boferer last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • B
        Boferer last edited by

        I´ve also tried adding adjustment to the second EA into the condition such as, "+5pips" but to no avail so far.

        1 Reply Last reply Reply Quote 0
        • B
          Boferer last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • L
            line last edited by line

            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

            1 Reply Last reply Reply Quote 0
            • B
              Boferer last edited by

              Yes, it does work wonders!! I cant thank you enough Line for helping me out with this 🙂

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              H
              M
              S
              S
              L
              E
              M
              A
              S

              18
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors