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

    Posts made by jstap

    • RE: Accoun Balance

      check profit (period of time) is easiest, <place a trade, >close all trades . this will stop for the day if profit is reached, then continue the next

      posted in General Discussions
      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: 2 variables in 1 text output

      Something like this will do it, just replace words with the relevant ones:

      msedge_8PSrQilrg6.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: close all trades at the end of each month and start again next day!

      Try once per bar set to month, the first tick of the month should activate all blocks beneath, then not again for a month.
      msedge_RMKVG8DNKx.png

      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: گروه روبومستر سلیمانی خواه

      I did see your other post but when indicators are use to determine SL it might not be why, if I was you I would run on live demo for a day, then the next I would backtest over the same time and see if results are different, then workout what it was that caused different results, this may show you what it is that is different.

      posted in Questions & Answers
      jstap
      jstap
    • RE: گروه روبومستر سلیمانی خواه

      Check your Stop Loss normally it is because the live market reacts differently to backtest,. For me whenever SL is set correctly BT results are very similar to live results.

      posted in Questions & Answers
      jstap
      jstap
    • RE: 市价单(市场执行)只能在每个小时的 55–59 分钟内允许下单;挂单(所有类型)任何时间都允许下单与触发,不受该时间风控限制。

      I can help you help yourself, start by testing and getting a few simple blocks working. no buy/sell trade/position - condition (doing anything) - buy/sell, make this in 2 trees (1 4 buys, 1 4 sells), back test and watch it how it works, then decide what you want to add/change.

      posted in Questions & Answers
      jstap
      jstap
    • RE: 市价单(市场执行)只能在每个小时的 55–59 分钟内允许下单;挂单(所有类型)任何时间都允许下单与触发,不受该时间风控限制。

      You are lacking a lot of if this happens, make a start on your project and say what you cant do

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

      This compiles but does use Print(), not tested so give it a try. I will put everything you need below:

      msedge_wv33nh08N5.png

      Settings:
      LogToConsole(max_win, total);

      ~next~

      Global variables, includes:
      double total = 0;
      double max_win = 0;
      int lastLogDay = -1;

      Custom function:
      // Logs values to the Experts tab
      void LogToConsole(double max_win, double total)
      {
      Print("Logging values → Max win: ", DoubleToString(max_win, 2),
      ", Total: ", DoubleToString(total, 2));
      }

      msedge_5louQxM4p1.png

      posted in Questions & Answers
      jstap
      jstap
    • RE: Multitimeframe confirmation

      This is down to our logic, if the bot is working as needed. Set up blocks that will obey your logic, and connect the orange dot to your buy/sell block. I you want to limit these add a diffract group number to blocks including a new buy/sell

      posted in Questions & Answers
      jstap
      jstap
    • RE: Multitimeframe confirmation

      Yes, have you tested? This allow only 1 trade at a time, if you want 1 trade of a type change in the block...

      msedge_BifBmZheh3.png

      msedge_qIQC5NhlKJ.png

      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?

      Yes it converts the component time in int number format, to a string time stamp format

      posted in Questions & Answers
      jstap
      jstap
    • RE: Multitimeframe confirmation

      I have said this before, you need a no trade block above your buy/sell blocks

      posted in Questions & Answers
      jstap
      jstap
    • RE: Multitimeframe confirmation

      Then you need to start your tree with a no trade block

      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
    • 1
    • 2
    • 23
    • 24
    • 25
    • 26
    • 27
    • 469
    • 470
    • 25 / 470