fxDreema

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

    Matrix Loop

    Questions & Answers
    2
    5
    1164
    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.
    • K
      keydcuk last edited by

      Hello Mr Fxdreema,

      I have a bit of a peculiar scenario in which I need to figure out if this can be done in fxdreema.

      Basically there is a loop process and a matrix involved and I don't know where to begin with this as I am not sure even to whether the logic of the EA needs to start on the "ON TICK" tab.

      I am looking to build an EA that looks back at candle ID 1. If bull candle, buy 0.2 lot. If bear candle, sell 0.2 lot.

      This is simple enough. But the problem starts from here for 2 reasons.

      1. A price range must be considered for the lot size trading
      2. There is only 6 trades to be taken and the loop needs to start again

      Imagine this matrix.

      0.5
      0.4
      0.3
      0.2
      0.1
      0.2 START HERE
      0.1
      0.2
      0.3
      0.4
      0.5

      When looking at the previous candle, we buy or sell according to the last bull or bear candle. This is easy.

      If you look at the attachment, there is only 6 blocks to consider but only 5 trades to take. Initially this was an idea based on renko but I would like to build this on just bull and bear candles.

      I know that visually it is not the same as renko but the concept of bull and bear candles are the same.

      I am wondering if this is a bit too much for what can be done in fxdreema or not. I think the most complicated thing is to set a loop of some sort to just take the 5 trades and then start the sequence of trading again.

      Many Thanks & Best Regards,

      Daniel

      ......
      Matrix_5.png

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

        What about pending orders in grid?

        Otherwise check this topic, someone put interesting example for opening trades, but the lot sizing is another thing - post/12945

        1 Reply Last reply Reply Quote 0
        • K
          keydcuk last edited by

          __What about pending orders in grid?

          Otherwise check this topic, someone put interesting example for opening trades, but the lot sizing is another thing - viewtopic.php?f=2&t=2499&p=12957#p12945[/quote:1ptfu0dy]

          I think pending orders in a grid is a good idea so long as the grid refreshes itself so that it can capture the candles or blocks in a retracement move. I will have a look and think and let you know if I need any more help.

          Thanks,

          Daniel

          1 Reply Last reply Reply Quote 0
          • K
            keydcuk last edited by

            I think I am going to go Renko way so my first obstacle in this is that standard time is not relevant in renko.

            I have noticed that there is an expiration mode in buy and sell that the time is dictated by candles but I am a bit confused with this.

            How does candle time work?

            There will be 2 scenarios in this EA which I think I will be able to get around. The first scenario involves in the strategy rules when a candle has ended and it is in profit, the close it and re-open another.

            The second scenario will be that if the 1st candle has finished and it is at a loss, this is when it will go through the 5 candle matrix so I will need it to close at the end of 5 block candles.

            Where I don't know how to work Candle Time, I am stumbling. Can you explain how Candle Time works?

            Many Thanks & Best Regards,

            Daniel

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

              No, expiration time is not linked with candles, it's N minutes after the creation of the trade. Technically, in the Comment of the trade some information is written and then the EA reads this information and decides when to close that trade. This is for trades. For pending orders, their expiration works on the server.

              I think I don't understand your candles. I decided that you want to open trades at certain pips away from the first trade and with different lot sizes. But if this is something like renko... maybe just use renko.

              Candle Time. So, go to your History Center and you will see that each candle has O, H, L, C, Volume and... Time. This is the rounded time at which the candle is positioned. For H1 we have candles at 00:00, 01:00, 02:00 and so on.
              As a variable, the Time is an integer value, a whole number value. Also known as Epoch or Unix Timestamp. The number of seconds since 01.01.1970. Here is more - http://www.epochconverter.com/

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

              Online Users

              M
              A
              E

              11
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors