fxDreema

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

    How can I set time filter?

    Questions & Answers
    2
    3
    176
    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.
    • P
      pharmlatex last edited by

      Hi, I'm new to this service. I'm currently developing a night scalper for testing, and I need some help. I want to open a Buy/Sell order when the price touches the Bollinger Band at -2σ, but only between 23:00 and 23:59. I've attached my script to this question. The script should filter by time, check for the Bollinger Band touch, and then open the Buy/Sell order. However, some trades are opening at exactly 23:00 without touching the Bollinger Band at ±2σ. How can I fix this?

      360807d0-11ad-456c-bb45-767ecdb826c0-image.png
      20add9cc-eeb7-4431-907b-e6e088c9eeef-image.png
      d5f2ec29-b5fc-4c55-9e29-0eb0ff16c123-image.png

      1 Reply Last reply Reply Quote 0
      • Frosties
        Frosties last edited by

        Hi pharmlatex,
        Use a cross 'x>' not a '>'. Also on Metatrader never use Candle ID 0.

        1 Reply Last reply Reply Quote 0
        • P
          pharmlatex last edited by

          Hi Frosties,
          Thanks to your kind advice, I was able to fix the EA, and it is now running as expected. Thank you!

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

          Online Users

          K
          M
          M
          C

          12
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors