fxDreema

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

    Setting a Price for the day

    Questions & Answers
    2
    3
    284
    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.
    • Z
      zomba4rex last edited by zomba4rex

      Dear All

      I need some help please if you do not mind

      I want every day, at a certain time, to have the price of that time to be set a as the DAY OPENING PRICE

      Example, at server time 00:01, if the candle open price at that time is 1.1234, the value 1.234 be set as the DAY OPENING PRICE for that day

      And then to have trades opening and closing around the price of 1.1234

      If Moving Average crosses 1.1234 from below, open BUY trade

      If Moving Averages crosses 1.1234 from above, open SELL trade

      Kindly see what I tried to come up with. Unfortunately it is not working and not opening trades at the cross

      https://fxdreema.com/shared/KUIoQ4VRc

      I tried to set the price as a FLAG, and then CHECK FLAG for each rule

      Will appreciate any advise/assistance on how to go about this please

      Thanks a lot and regards

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @zomba4rex last edited by

        @zomba4rex Your 2 time filters are doing the same thing so 1 is pointless, a candle open will never be 0, it will be a a price level something like 1.6135 and there is no way of pre guessing this, you need to save the price into a variable, candle time == time now is the open of a candle.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • Z
          zomba4rex last edited by

          Thanks so much for your help @jstap

          Will try that

          Appreciate your time

          best rgds

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

          Online Users

          R
          F

          19
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors