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 9378
    • Best 1086
    • Controversial 23
    • Groups 0

    Best posts made by jstap

    • RE: Orhpaned constants when running EA

      Add a shared link to look at

      posted in Questions & Answers
      jstap
      jstap
    • RE: HOW TO PUT THE HH:MM IN A VARIABLE TO OPTIMIZE THE BEST WORKING TIME OF THE DAY?

      Use components to optimise, and convert them to a string to use in blocks like time filter.
      MT4: https://fxdreema.com/shared/IbgvGjJY
      MT5: https://fxdreema.com/shared/VpOj39mrc

      posted in Questions & Answers
      jstap
      jstap
    • RE: Orhpaned constants when running EA

      @jstap Good mate, glad you sorted it. I said that first...
      "Magic no is always there, the rest are created by boxes you have ticked in a block or two".

      posted in Questions & Answers
      jstap
      jstap
    • RE: Orhpaned constants when running EA

      Magic no is always there, the rest are created by boxes you have ticked in a block or two.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Where are comments printed now?

      Does this help? From Copilot (chatGPT)...

      It sounds like your friend’s custom MT5 code used to reliably write to the log file via Print(), but after a recent update, the log location may have changed or the behavior of logging might have shifted slightly.
      Here’s how to track down the new log file location and ensure the output is still being captured:
      📁 Where MT5 Stores Log Files Now
      There are two main types of logs in MT5:

      1. Platform Logs
      • These are stored in:
        ...\MetaTrader 5\Logs\
      • They capture general platform activity, including terminal startup, network events, and trade operations.
      1. Expert Logs (EA/Script Output like Print())
      • These are stored in:
        ...\MetaTrader 5\MQL5\Logs\
      • This is where your Print(cmt); output should appear.
        To locate them:
      • Open MT5.
      • Go to File → Open Data Folder.
      • Navigate to:
      • MQL5\Logs for EA/script logs.
      • Logs for platform logs.
        Each log file is named by date: YYYYMMDD.log.
        🛠️ If Nothing Is Showing Up
        If your friend’s Print() output isn’t appearing:
      • Check the Experts tab in the MT5 terminal (bottom panel). If the EA is running, output should appear there live.
      • Make sure the EA is attached and running—if it’s not triggered, no logs will be written.
      • Confirm that logging is enabled in MT5 settings (some updates may reset preferences).
      • If the EA is compiled in Release mode, some debug output might be suppressed. Try compiling in Debug mode.

      If your friend wants to make the output more persistent or structured, I can help them write to a custom file using FileOpen() and FileWrite() instead of relying solely on Print(). Want to go that route?

      posted in Questions & Answers
      jstap
      jstap
    • RE: Check Distance Price Fraction

      depends on traded asset and pip rules set in settings.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Blocks for "bidding price"

      Trailing stop is the easiest way to achieve this, in the block using a separate tree to the one placing the trade, you can set start in pips from open price so stop doesn't move until price goes in the right direction. Stop is how for behind current price the stop should be, if price retraces the stop will stay in place until it's hit. Step is how often stop should move.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Buy only Sell only MT5

      They are numeric, because although text is a string, it counts the tecx as a position (buy=0 sell=1, both=2) All I know is this compiled for me, it is tried and tested. Basically check if the enum text is what is selected in the inputs, if so activate blocks below, if not go through yellow and check the next. this https://fxdreema.com/shared/m27SSDMZd you can run on MT5 back test, and see that every time you change a input the drawn text will change.

      d6add2d0-8c0b-45c0-8fcc-fa9c27e94372-terminal64_noWfXdgMR9.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Buy only Sell only MT5

      Set it up as an enum: https://fxdreema.com/shared/R8XxH6iSc

      posted in Questions & Answers
      jstap
      jstap
    • RE: Buy only Sell only MT5

      @sktsec you do not need to select int any ware, because it is using the ENUM data type, all you need is ENUM and the named type. In the other blocks you need numeric not text.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Buy only Sell only MT5

      @merajmusic It is how the logic is set up, if all is correct for a sell place a sell, but if you want both there is no yellow connection linking back to "BOTH", you either link back like the picture, or you make the choice above your buy/sell trees. It depends on how you want this set up to work. msedge_i4iZvDBgSI.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Buy only Sell only MT5

      @sktsec His condition didn't have text, it was yousef builder that did.

      posted in Questions & Answers
      jstap
      jstap
    • RE: how to draw fibbs from another object

      Yes if you search fib you will find how to do that I would think. Like this: https://fxdreema.com/forum/topic/19269/using-fibonacci?_=1759609337943

      posted in Questions & Answers
      jstap
      jstap
    • RE: Turning on and off blocks

      I
      msedge_2WjrM0u6q5.png
      I wouldn't have once per bar above that many conditions. And I would have 2 check profits (what you had may have worked but I have never tried it).

      posted in Questions & Answers
      jstap
      jstap
    • RE: Cut long numbers

      Not exactly sure what you need but if you put this in text code input: DoubleToString(x.xx,2)

      x.xx being the number you want to cut, you can also add the name of a variable and this will be cut, 2 is the number of digits past the decimal point.

      posted in Questions & Answers
      jstap
      jstap
    • RE: Cut long numbers

      1d35aedc-7947-4dbe-b3ee-04883ae023e8-msedge_fvMUHPZ0Ri.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: How to send "Push Notification"

      If phone is connected to your pc terminal by getting the number from your phone, that's in the picture. Then your phone can receive notifications. I cant remember exactly because I haven't done so in years, but I think this cam do all you want. dfee2de6-bad1-439d-8942-ead85bdd2cad-terminal64_yU6AAfsMSF.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: How to get the Average Value of the Indicator for nBars

      it sets the atr variable to 0, then loops through and add us the value from the last number or candles in the candle range, then it takes this total number, and divides it by the number or candles in the range giving you the average number over the range.

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