Attachments forums

Re: Something interesting from Chatgpt/AI please post here

Pelle, Sat Aug 08, 2026 12:53 am

cladi53 wrote: Fri Aug 07, 2026 2:33 am Your indicator is not looking for mqh archivos in Include folder soo you must made a Include folder into the indicators one. Here is a vesion that read directly from Include folder in mT5
Fixed — and it's a real structural fix, not just a workaround
Your friend's instinct was right that the Include folder was the problem, just not quite the fix — the issue was that TheStratSuite.mq5 used a path-relative include (#include "Include/StratXXX.mqh"), which only works if that Include\ subfolder travels glued to the exact directory the .mq5 sits in. Anyone who copies just the .mq5 file on its own, or rearranges the folder while sharing it, breaks the build.

What I changed: switched to MQL5's standard global/shared Include convention — #include <TheStratSuite/StratXXX.mqh> — which resolves from a terminal-wide MQL5\Include\TheStratSuite\ folder instead of a path next to the .mq5. Compiled it fresh from inside the actual MT5 data folder to confirm the resolution really works (log confirmed every .mqh was found at MQL5\Include\TheStratSuite\...): 0 errors, 0 warnings.

What to tell your friend
They (or you) need to do a one-time setup per terminal, then it's copy-and-forget from then on:

File → Open Data Folder in MetaTrader 5.
Put TheStratSuite.mq5 (and eventually the compiled .ex5) in MQL5\Indicators\.
Create MQL5\Include\TheStratSuite\ and put the nine .mqh files there — not nested inside Indicators, a sibling folder under the same MQL5\ root.
Compile TheStratSuite.mq5 in MetaEditor (F7).
I wrote all of this into README.md's "Installation (developers)" section, including a short explanation of why it broke before, so you can just forward the file instead of re-explaining it each time.

If your friend (or anyone else) only wants to run the indicator rather than recompile it, none of this applies to them — they just need the precompiled .ex5, which has zero runtime dependency on the Include folder at all. Worth clarifying which situation they're actually in.
All files in topic