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 9331
    • Best 1080
    • Controversial 23
    • Groups 0

    Best posts made by 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
    • RE: Problem with changing internal values ​​on blocks

      try saving and reading as a terminal (global) variable.

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

      global variables are stored in a folder separate to where your local variables are, so they will not change until you change them, so if a block is reading them to use, it will be the same untill you change.

      posted in Questions & Answers
      jstap
      jstap
    • RE: help two indicator

      Just ask AI:

      Quick Answer:
      The Average Directional Index (ADX) and the Average Directional Movement Index (ADX Wilder) are essentially the same indicator conceptually, both created by J. Welles Wilder Jr. in 1978. The difference lies in calculation methods used by trading platforms: Wilder’s original formula uses his own smoothing technique (Wilder’s Moving Average), while some modern platforms implement ADX using standard moving averages (like EMA or SMA).

      📊 Core Concept

      • Inventor: J. Welles Wilder Jr. introduced the Directional Movement System in his book New Concepts in Technical Trading Systems (1978).
      • Components:
      • +DI (Positive Directional Indicator) → measures upward movement.
      • –DI (Negative Directional Indicator) → measures downward movement.
      • ADX (Average Directional Index) → measures trend strength, regardless of direction.
      posted in Questions & Answers
      jstap
      jstap
    • RE: Horizontal lines are not stoping

      as i said and showed in my picture under the if trade will stop all blocks below running... how is that supposed to do anything if no trade is placed...when testing how things work the less used blocks the better...if this is just part of a larger project say what this is doing and why

      posted in Questions & Answers
      jstap
      jstap
    • RE: Calculate the sum of profits

      modify a variable to 0 - for each trade/position - check profit (>0) - formula block (add in loop trade profit)

      posted in Questions & Answers
      jstap
      jstap
    • RE: Calculate the sum of profits

      Yes but no because you didn't set the variable to 0 before starting the loop:

      msedge_Qcse8CTRhd.png

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

      Both look the same so should work the same, try recreating the project from scratch, shouldn't make a difference, but worth a try. Create constantl as picture, then you can select number in multiple blocks, this will show up in your inputs, reducing how much you have to change:
      msedge_c1wuuXbGbs.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: fxDreema based copier

      This should work but the open price variable should be a string (a name you want to call the global variable), same name for sender and receiver. Value you are sending/receiving is stored in the global variable, not a local one, though you could send/receive local variable data, but it will be sent to the global

      posted in Questions & Answers
      jstap
      jstap
    • RE: Expired

      You can add a shared link to look at, but it should still work anyway.

      posted in Questions & Answers
      jstap
      jstap
    • RE: No Position Nearby filter

      This will probably do it, under the condition is where you would do something like place a trade.
      https://fxdreema.com/shared/gsxiiKgZc

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