fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. badrsky
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by badrsky

    • B

      Lot sizing
      Questions & Answers • • badrsky

      4
      0
      Votes
      4
      Posts
      1111
      Views

      fxDreema

      Oh, even I don't know what happens. See, Martingale is something that should be used when you have 1 trade at a time. But people wanted to be able to create 2 and more trades and still using Martingale. Then someone wanted to do Martingale over pending orders. For me this is... I don't know. Pending orders doesn't even exist, you don't know their outcome.

      What I want to say is that even I don't know what were the rules of Martingale when pending orders are used. Maybe the EA looks at the last running trade first, or if there are no trades -> at the last closed trade. This is how it works in "Buy now" 🙂

    • B

      the first 4H candle of the week
      Questions & Answers • • badrsky

      2
      0
      Votes
      2
      Posts
      394
      Views

      fxDreema

      Interesting question. I don't know any way to get that "low of the first 4h candle" value in fxDreema, so I made this example with some calculations in it:

      https://fxdreema.com/shared/qKEtPnO4e

      I have a "double" (floating number) Variable called CandleCloseOnMonday4H, which I modify in block 3. As you can see, there are few calculations over there, and the result should be Low of that first 4h candle on the previous Monday. It doesn't work properly for the first 4 hours of Monday and that's why I put this Weekday filter block. Then I create 1 new pending order on every day of the week. Each pending order expires in 1 minute, so the chart can be clear. This is only to test how accurate the value is, here I don't care about the pending orders.

      To shift the open price of the orders, use some value in the "Price offset" option in "Buy pending order".

      I hope you can get an idea what I do in the formula. 86400 is the number of seconds in 1 day and I add .0 to this value when I want to use it as a "double" value, it's where I use this "/" operator. I think it can work without .0, but just in case...

      FourOclockOnMonday - this is the time that is at 04:00 on the past Monday. After that I'm trying to calculate how many candles can fit in that time period between now (TimeCurrent()) and FourOclockOnMonday. Everything will be fine if on the chart you have all candles present. But if there is a missing candle for some reason, the result will be kinda fake. There is no chack for whether some candle is missing or not, it's pure math.

      3600 is the number of seconds in 1 hour.
      TimeDayOfWeek() returns value from 0 to 6, where 0 is Sunday, 1 is Monday and so on...
      MathFloor() returns integer numeric value closest from below
      MathCeil() returns integer numeric value closest from above
      iLow() returns Low of particular candle

    • B

      Can someone help me with High Low conditions please
      Questions & Answers • • badrsky

      9
      0
      Votes
      9
      Posts
      1344
      Views

      J

      At the dropdown menú you have those options

      0_1539701096731_ad15ca23-b203-417e-9b5c-1a0e0ec057c3-image.png

    • 1 / 1