fxDreema

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

    Posts made by jstap

    • RE: Grid placing to many trades.

      You know the saying of trying to run before you can walk? Choose 1 type, test on backtest, when working as you want, add the other. Then groups will separate the trade type.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Grid placing to many trades.

      Ok you are using different groups, do you want pending trades to work as well as instant trades?

      posted in Questions & Answers
      jstap
      jstap
    • RE: Grid placing to many trades.

      Change no position to position/order.

      msedge_fzlUoGS8dy.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Error on the Block "No Trade Nearby" that doesn't find trades that are actually nearby...

      The EA's magic number is stored in an int variable "MagicStart" you get current chart symbol with Symbol()

      posted in Bug Reports
      jstap
      jstap
    • RE: Grid placing to many trades.

      it's better to add a shared link rather than pictures, no trade(position)/order will work for both a running trade and pending order. On the on trade tab you will have purple blocks, when something happens like a trade opens you can delete pending orders

      posted in Questions & Answers
      jstap
      jstap
    • RE: MY QUESTION IS I WANT TO CALCULATE TOTAL SIZE OF LAST 3 CADLES

      what do you mean by total movement? Candle size in pips/point all added together?

      posted in Questions & Answers
      jstap
      jstap
    • RE: MY QUESTION IS I WANT TO CALCULATE TOTAL SIZE OF LAST 3 CADLES

      you can select total or body, like picture

      EFGgnmdhWG.png

      this will show how to check the last closed candle size compared to the 3 before

      8ce18421-6d93-43c5-99b5-de356bf6f3e4-msedge_EnJfDVWQyn.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Creating

      well Peter, that doesn't help fine out why, say what seems to be the problem and add a shared link to look at the project

      posted in Questions & Answers
      jstap
      jstap
    • RE: Grid placing to many trades.

      Light pink need a dark pink for each block first, put your once per bar under blocks that check for something, if position will look for running trades, not pending orders, maybe add another light pink "once per position"

      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: 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: How to Store ATR Value as a Price Fraction

      It is ATR divided by price:
      msedge_iUTyjSuroQ.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Closing a trade based on time

      @saeedkey 👍

      posted in Questions & Answers
      jstap
      jstap
    • RE: Closing a trade based on time

      You can doo this with pink blocks:

      81f8be1c-968c-403c-958e-59aa0dfa1b33-msedge_g1AABEBAuN.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: PIntroducing a new user to the fxdreema community + problem with EA

      Add a shared link to see what you are doing, any once per bar needs to go under the conditions that create a trade, if 1st then once per bar will activate before the conditions to create the trade are checked to see if they are right.

      posted in Questions & Answers
      jstap
      jstap
    • RE: How to get price range from highest price and lowest price in specific time range

      NormalizeDouble() is a standard metatrader function, all can be used in FX, google or any AI platform will show you these, this will link you to a conversation talking about using the side of FX that is not so obvious...

      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: I want to convert points into pips.

      miro hasn't been on these forums for years, he likely got this function from the .mq code you can get from project screen, then red and searched. There is no file/place containing this information, that I am aware of.

      posted in Questions & Answers
      jstap
      jstap
    • RE: HOW TO CALCULATE PROPER RISK based from the Distance without STOP LOSS

      Never done this so I can't really help you with this, I always use a stop, there is an option in FX blocks as picture, test with bigger numbers, to risk 1% of account you will need to use a number more like 100 or even 1000.

      U3NdsXGF2w.png

      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
    • 1
    • 2
    • 18
    • 19
    • 20
    • 21
    • 22
    • 466
    • 467
    • 20 / 467