fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. jstap
    3. Best
    • Profile
    • Following 2
    • Followers 222
    • Topics 37
    • Posts 9375
    • Best 1086
    • Controversial 23
    • Groups 0

    Best posts made by jstap

    • RE: Need 50% of range to create variable price

      Maybe you are over thinking this? The mid price of the day candle is the 50% value, so may find this the best way to work with it.
      msedge_5PuQQUrWKK.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: my account

      Click back to main page above, and ask support. If paid with crypto it can take a few days.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Need 50% of range to create variable price

      Ok so the mid of the range in the day, you can use a formula block to get this:
      msedge_9TXPF1PhzS.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Need 50% of range to create variable price

      You can draw lines on those places like this:
      https://fxdreema.com/shared/8Hr6vlcrd

      metatester64_HOt0vwVMWg.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: MT5 COLUMN PARAMTERS

      You can fine the code on the MQL5 wed site, search google to find' for example AccountBalance() [Equity/Profit Etc] will return that value

      posted in Questions & Answers
      jstap
      jstap
    • RE: Placing Pending Orders on WRONG VALUES

      Maybe, not the 1st time GMT time doesn't appear to work correctly. If you use meta trader code it will probably work (I use server and just change the input time to match). On mt4 GMT in backtest uses server time.

      posted in Questions & Answers
      jstap
      jstap
    • RE: find Candel Full

      Or you could use soincle candle template and minimise wick size by %

      258664b8-4603-4e70-8755-02130d0e16cf-msedge_yYYJy0n87b.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: What does the EA remember when restarting MT4/5?

      None will, blocks that do the calculation there and then don't need to, other than that only something that saves data to a global (terminal) variable can remember.

      posted in Questions & Answers
      jstap
      jstap
    • RE: What does the EA remember when restarting MT4/5?

      Or just draw the line in your EA before using, generally using the price rather than a visible object makes more sense, but these will be deleted when closing terminal/removing EA from chart, so a global variable would need to be used, you could then use this price to draw the line.

      posted in Questions & Answers
      jstap
      jstap
    • RE: What does the EA remember when restarting MT4/5?

      They are not always removed, but at times I have restarted computer, loaded MT and line's etc have been missing.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Getting few bool values from custom block

      Ask AI (something like chat GPT), the settings are whatever tab you are using on in this case it will be on tick, global variables are likely correct (but AI may add or remove), then there's the custom functions section, you may not need to add anything here, let AI decide, the first line in settings needs to call the custom function (if ones used by using the name (the first line) of the function, Say all this to AI, give it your code and the sections it's in, it will then advise changes, then test what it gives you, any compile errors you get on the the used project will tell you and AI where the problems lye, anything can be used in custom block code that you have change in inputs, the code just needs to reference it. GlobalVariableGet() for example will get the value from anything the custom block has set.

      posted in Questions & Answers
      jstap
      jstap
    • RE: MT5 Close All Fast

      @KLG Well in mate, good to see code changed and put out for the community to use. ๐Ÿ‘

      My bad || means or and && means and..

      posted in Questions & Answers
      jstap
      jstap
    • RE: MT5 Close All Fast

      Well in keep this updated, messed about with this a long time ago, don't really have time at the minute (and was never vary good) but, in there you can add different options for the block, in this something like, limit by magic, or limit by symbol, etc, like what is in other standard FX, blocks. also

      According to ChatGPT this is also used in FX custom code, but I wouldn't trust it all, some I have see used over the years of looking though. AI didn't know this when I was originally working with this code but now...
      Commonly Used Tokens in FX Dreema
      | | |
      | ~next~ | | Refers to the next block in the execution chain
      | ~prev~ | | Refers to the previous block
      | ~value~ | | Used to fetch the current value of a variable or indicator
      | ~custom~ | | Placeholder for user-defined values or expression
      | ~time~ | | Refers to the current time or timestamp of a candle
      | ~price~ | | Gets the current price (can be open, close, high, low depending on context)
      | ~index~ | | Used in loops or array-like structures to refer to the current iteration index
      | ~symbol~ | | Refers to the current trading symbol
      | ~magic~ | | Refers to the magic number assigned to trades
      | ~spread~ | | Gets the current spread value

      These tokens are often used inside blocks like:

      • Modify Variables
      • Condition
      • Buy/Sell
      • Custom Code
      • Loops and Filters

      ๐Ÿ› ๏ธ Why They're Useful

      • Modularity: You can reuse logic across multiple blocks without rewriting values.
      • Dynamic behavior: They adapt to changing market conditions or block sequences.
      • Cleaner logic: Avoids hardcoding and makes debugging easier.

      If you're building session-aware or event-driven logic (like your NY session breakout detection), these tokens can help you create reusable, adaptive structures. Want to see how to use ~index~ or ~value~ in a looped candle scan or variable comparison? I can mock up a block chain or walk through a use case.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Enum day of week

      Constant should be an int, and call the full function in code input:
      msedge_BJWXymYT5r.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Enum day of week

      You could also create an enum and select it that way, have a good weekend:
      msedge_hvVcVhMoNA.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Problem with adding volume to buy operations

      Everything I said does work, add your latest link to see what you have done and what's not working

      posted in Questions & Answers
      jstap
      jstap
    • RE: Open trades to close at a certain time of day?

      this will do it:
      msedge_NrF0PPmxmo.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Problem with changing internal values โ€‹โ€‹on blocks

      I have never had this problem

      posted in Questions & Answers
      jstap
      jstap
    • RE: Problem with changing internal values โ€‹โ€‹on blocks

      That's not FX, that's what terminals do, just and check values have been changed

      posted in Questions & Answers
      jstap
      jstap
    • 1
    • 2
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 51 / 55