fxDreema

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

    Spread Filter Block

    Questions & Answers
    2
    3
    1035
    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
      BlueMoon last edited by

      What is the best way to use this block?
      How does the "average spread in time period" parameter work?

      Here is a scenario:

      If I look at historic average for NZDUSD for my broker it is usually 2 pips. But there are times when it could be as high as 25pips. I want the filter so it enters trades only if the pips are less than 4 pips.

      I see the "Adjust with" parameter which I can set to 2 pips to get the desires result.

      My concern is about setting up the the time period of the average. If I set it to too low like 60 seconds....it might get the average too high if my EA started during market open times...if I set it to too high like (10 thousand, like around 3 hours) ...I am not sure what happens when it has not gathered so many seconds yet.

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

        The "average" option collects the spread for each tick in the past few seconds and then average value is calculated. I checked the code for this block these days and I think it works correctly.

        The Adjust parameter... I forgot the reason why I added it, to be honest. I think the default value for this should be 0. Back then I added this "average" option because of one user who wanted something like that.

        If there is an indicator for this, it might be better option 🙂

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

          Basically I want to use the filter so trades are taken only under "Normal Market Conditions"

          My definition of "Normal Market Condition" is when the spreads are within the average limits. Example my brokers average spread for GBPNZD is around 3 pips. But then during Market open, Market Close, News...this spread can be as high as 20-30 pips and even more. This period of hight spread sometimes is not just a few seconds or minutes...it could be as much as 2 hours during Market Open or Market Close times.

          How do I filter this? Since if the block is collecting average for only a past few seconds...then for the filter....a 20 pips spread would be considered as normal.

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

          Online Users

          A
          S
          P
          K
          M
          M
          E
          L
          S

          16
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors