fxDreema

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

    Show and work with only a select timeframe per day

    Questions & Answers
    2
    8
    1124
    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.
    • M
      mctrade last edited by

      Hi,

      I would like to see and work on my charts only the timeframe of the Cash Indices, i.e. for the Dax only from 09:00h till 17:35h. A moving average for example should only be calculated than based on this timeframe and not the Future Indices timeframe.

      If it is easier, than only the calculation of the moving average would sufficient as my system relies on the mentioned timeframe.

      Is that possible to build this with fxdreema?

      Thanks
      Marc

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

        There is a block called "Hours filter".

        Moving Average is just an indicator. Change it's period and you have MA calculated for this period. I don't understand what problems you have with it 🙂

        1 Reply Last reply Reply Quote 0
        • M
          mctrade last edited by

          soory for this maybe to easy/ stupid question...but how do I build and SMA with fxdreema?

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

            How to use SMA? In "Condition" block, somewhere in Indicators find the Moving Average indicator and set it's settings

            How to create a custom indicator? Not possible with fxDreema, only Expert Advisors and Scripts can be made with it

            1 Reply Last reply Reply Quote 0
            • M
              mctrade last edited by

              I tried to code now the solution I'm thiniking of:

              -calculate SMA filter only from values between 9:00 and 17:30h local time (cash index time) - i.e. values from <17:30h and <9:00h should not be included into the calculation of the SMA in order to get a SMA values similiar to a SMA of cash index and not future index (8:00 -22:30h)
              -place an pending order at open 15:30h at low of candle shift 1 (with offset 10 pips) if no trade is running

              • close trade at open 17:00h candle

              link of the project:
              https://fxdreema.com/shared/isrc7punc

              is that code correct?

              in a backtest it doesn't seem to work correct.
              Is it correct that I have to settime to server time in the backtest because the backtest only uses the candle times, ie. server time?

              thanks

              thanks

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

                Wide time filter -> Conditions -> Narrow time filter

                Do you really need the first time filter? Why not like this: Time filter (~17:30) -> conditions and so on...

                1 Reply Last reply Reply Quote 0
                • M
                  mctrade last edited by

                  I thought I need the first time filter since I want the SMA only calculated from values of the set timeframe. Meaning that the first value into calcaluting the SMA is that from 09:00h and the value before that is that from 17:30h of the prior day (and so on).

                  So I don't want to use all the values between 17:30 and 9:00h in order to get an SMA based on cash index timeframe and not on futures timeframe.

                  And the second timefilter is then used to only allow trades if they pass the conditions (sma > sma[1] and close> sma) based on the first timefilter.

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

                    Moving average will be calculated at 15:30 anyway, it's not important for indicators to be "used" before or after they are really needed and used. The first time the EA access to an indicator, it already knows it's all current and past values. Indicators are also independent from the EA in some sense.

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

                    Online Users

                    R
                    S
                    M
                    R
                    E
                    M
                    P
                    C
                    J
                    V

                    28
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors