Add a shared link to look at
Best posts made by jstap
-
RE: HOW TO PUT THE HH:MM IN A VARIABLE TO OPTIMIZE THE BEST WORKING TIME OF THE DAY?posted in Questions & Answers
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 -
RE: Orhpaned constants when running EAposted in Questions & Answers
@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". -
RE: Orhpaned constants when running EAposted in Questions & Answers
Magic no is always there, the rest are created by boxes you have ticked in a block or two.
-
RE: Where are comments printed now?posted in Questions & Answers
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:- Platform Logs
- These are stored in:
...\MetaTrader 5\Logs\ - They capture general platform activity, including terminal startup, network events, and trade operations.
- 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?
-
RE: Check Distance Price Fractionposted in Questions & Answers
depends on traded asset and pip rules set in settings.
-
RE: Blocks for "bidding price"posted in Questions & Answers
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.
-
RE: Buy only Sell only MT5posted in Questions & Answers
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.

-
RE: Buy only Sell only MT5posted in Questions & Answers
Set it up as an enum: https://fxdreema.com/shared/R8XxH6iSc
-
RE: Buy only Sell only MT5posted in Questions & Answers
@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.
-
RE: Buy only Sell only MT5posted in Questions & Answers
@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.

-
RE: Buy only Sell only MT5posted in Questions & Answers
@sktsec His condition didn't have text, it was yousef builder that did.
-
RE: how to draw fibbs from another objectposted in Questions & Answers
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
-
RE: Turning on and off blocksposted in Questions & Answers
I

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). -
RE: Cut long numbersposted in Questions & Answers
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.
-
RE: How to send "Push Notification"posted in Questions & Answers
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.

-
RE: How to get the Average Value of the Indicator for nBarsposted in Questions & Answers
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.
