Automatically have your Strategy Quant X generated Strategy analyzed

Started by Theo Gottwald, January 06, 2025, 08:44:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theo Gottwald

𝙷𝚘𝚠 𝚍𝚘𝚎𝚜 𝚊 𝚜𝚙𝚎𝚌𝚒𝚏𝚒𝚌 𝚜𝚝𝚛𝚊𝚝𝚎𝚐𝚢-𝚐𝚎𝚗𝚎𝚛𝚊𝚝𝚎𝚍 𝚃𝚛𝚊𝚍𝚒𝚗𝚐 𝚜𝚌𝚛𝚒𝚙𝚝 𝚏𝚘𝚛 𝙼𝚎𝚝𝚊𝚃𝚛𝚊𝚍𝚎𝚛 5 𝚠𝚘𝚛𝚔?

𝙽𝚘𝚛𝚖𝚊𝚕𝚕𝚢, 𝚢𝚘𝚞 𝚠𝚘𝚞𝚕𝚍 𝚗𝚎𝚎𝚍 𝚝𝚘 𝚜𝚎𝚊𝚛𝚌𝚑 𝚝𝚑𝚛𝚘𝚞𝚐𝚑 𝚝𝚑𝚎 𝚌𝚘𝚍𝚎 𝚝𝚘 𝚏𝚒𝚗𝚍 𝚝𝚑𝚎 𝚛𝚎𝚕𝚎𝚟𝚊𝚗𝚝 𝚜𝚎𝚌𝚝𝚒𝚘𝚗. 𝙷𝚘𝚠𝚎𝚟𝚎𝚛, 𝚒𝚝 𝚠𝚘𝚞𝚕𝚍 𝚋𝚎 𝚖𝚞𝚌𝚑 𝚎𝚊𝚜𝚒𝚎𝚛 if the Script already contains 𝚊 𝚌𝚘𝚖𝚖𝚎𝚗𝚝 𝚎𝚡𝚙𝚕𝚊𝚒𝚗𝚒𝚗𝚐 𝚑𝚘𝚠 𝚒𝚝 𝚍𝚎𝚝𝚎𝚛𝚖𝚒𝚗𝚎𝚜 𝚒𝚝𝚜 𝚕𝚘𝚗𝚐 𝚊𝚗𝚍 𝚜𝚑𝚘𝚛𝚝 𝚎𝚗𝚝𝚛𝚒𝚎𝚜.

𝙸𝚗 𝚝𝚑𝚒𝚜 𝚌𝚊𝚜𝚎, 𝙸'𝚖 𝚞𝚜𝚒𝚗𝚐 𝙶𝙿𝚃-4𝙾 𝚝𝚘 𝚐𝚎𝚗𝚎𝚛𝚊𝚝𝚎 𝚝𝚑𝚎 𝚌𝚘𝚖𝚖𝚎𝚗𝚝s automatically for all Scripts in a defined Folder.

When you open a script, you can immediately see how it works. 
𝙰𝚍𝚍𝚒𝚝𝚒𝚘𝚗𝚊𝚕𝚕𝚢, 𝚜𝚘𝚖𝚎 𝚝𝚎𝚡𝚝𝚜 𝚒𝚗 𝚝𝚑𝚎 𝚜𝚌𝚛𝚒𝚙𝚝, 𝚜𝚞𝚌𝚑 𝚊𝚜 𝚌𝚘𝚙𝚢𝚛𝚒𝚐𝚑𝚝 𝚗𝚘𝚝𝚒𝚌𝚎𝚜, 𝚠𝚒𝚕𝚕 𝚋𝚎 𝚛𝚎𝚙𝚕𝚊𝚌𝚎𝚍.

#𝙼𝚎𝚝𝚊𝚃𝚛𝚊𝚍𝚎𝚛5 #𝚃𝚛𝚊𝚍𝚒𝚗𝚐𝚂𝚌𝚛𝚒𝚙𝚝 #𝙰𝙸𝙲𝚘𝚖𝚖𝚎𝚗𝚝𝚊𝚛𝚢 #𝙶𝙿𝚃4𝙾 #𝙰𝚕𝚐𝚘𝚛𝚒𝚝𝚑𝚖𝚒𝚌𝚃𝚛𝚊𝚍𝚒𝚗𝚐

'
'SPR Script-file: New Script_1
'Purpose:
'Author: DESKTOP
'Creation date: 01-04-2025 at 13:16:40
'===========================================================
'#EXE:?path\
'#SPI:ForceWrite

AIC.Set Key|File
AIC.Set Max Token|1548
AIC.Set Model Chat|gpt-4o

' This is the Prompt for the AI
VAR.$$PRO=Please create a concise and well-structured comment block (in MT5 format) for the provided Expert Advisor (Code Part).
$$PRO+ The comment block should clearly detail the conditions for opening and closing trades, as coe and in easy unerstandable words.
$$PRO+ In a general form that is easy to undertand an in a way where the formula is shown (incl. name of function where it is in ()).
$$PRO+ Do NOT return anything besides the Commentblock.
$$PRO+ Along with any relevant information about the EA's functionality and structure.$crlf$

$$TRE=------------------------------------------------------------------

' Folder with Scripts to analyze.
$$PAZ=C:\Users\theog\AppData\Roaming\MetaQuotes\Terminal\...\MQL5\Experts\Strats

' Comment is added after this Line:
$$FND=//+-----

FEF.DoIt|$$FIL|$$PAZ|*.mq5|(256+69-1)
MBX.Ok
ENR.
'===========================================================
:DoIt
TXT.Load Text File|$$FIL|$$LIA
IVV.$$LIA<100
  MBX.Could not load file.
  ENX.
EIF.
PRT.Loaded: $$FIL$crlf$with $$LIA Lines.$$TRE
#IFVA 1
  TXT.Get Text Lines|1|800|$$PAR
' Ermittle Zeile mit Ende der Kommentare.
  TXT.flw|$$FND|4|$$ILN
'DBP.Line found: $$ILN
  CAL.$$ILM=$$ILN+1
  TXT.Get Line Trimmed|$$ILM|$$TST
  GSS.1|2|$$TST|$$TSA
  JIS.$$TSA=//|over 
  VAR.$$PAR=$crlf$"$$PAR"   
  VAR.$$PRX=$$PRO$$PAR 
  AIC.Ask Chat|$$PRX|$$RET
  VBT.$$RET|`
  TXT.Insert Text After Line|$$RET|$$ILN
#EIFA
GSB.Replace
TXT.Save
'CLP.$$RET
'PRT.$$RET
:over
RET.
'-----------------------------------------------------------
:Replace
$$REA="Generated by StrategyQuant EA Wizard"
$$REB="(c) 2025 Your Name"
TXT.Replace|$$REA|$$REB
'STR.Replace|$$INP|$$REA|$$REB

$$TEA=#property copyright "StrategyQuant.com"
$$TEB=#property copyright "Copyright 2025, Your Name"
'STR.Replace|$$INP|$$TEA|$$TEB
TXT.Replace|$$TEA|$$TEB

$$TEA=#property link      "http://www.StrategyQuant.com"
$$TEB=#property link      "Your WEB-Site"$crlf$
$$TEB+#property version   "1.00"
'STR.Replace|$$INP|$$TEA|$$TEB
TXT.Replace|$$TEA|$$TEB

' M1_dukas löschen
$$TEA=_M1_dukas
$$TEB=
'STR.Replace|$$INP|$$TEA|$$TEB
TXT.Replace|$$TEA|$$TEB

$$TEA=```mql
$$TEB=
'STR.Replace|$$INP|$$TEA|$$TEB
TXT.Replace|$$TEA|$$TEB

RET.
'-----------------------------------------------------------


//+------------------------------------------------------------------+
//| Expert Advisor: Strategy 4.23.111 EA                             |
//|                                                                  |
//| Description: This EA implements a hedged trading strategy based  |
//| on moving averages and other indicators. It is designed to trade  |
//| the EURUSD currency pair on M1 and H1 timeframes.               |
//|                                                                  |
//| Trade Opening Conditions:                                         |
//| 1. Buy Condition:                                                |
//|    - If (MovingAverage(Period1) > MovingAverage(Period2))      |
//|      then OpenBuy();                                             |
//|                                                                  |
//| 2. Sell Condition:                                               |
//|    - If (MovingAverage(Period1) < MovingAverage(Period2))      |
//|      then OpenSell();                                            |
//|                                                                  |
//| Trade Closing Conditions:                                        |
//| 1. Close Buy Condition:                                          |
//|    - If (CurrentPrice < MovingAverage(Period1))                 |
//|      then CloseBuy();                                           |
//|                                                                  |
//| 2. Close Sell Condition:                                         |
//|    - If (CurrentPrice > MovingAverage(Period1))                 |
//|      then CloseSell();                                          |
//|                                                                  |
//| Additional Information:                                          |
//| - Backtested on EURUSD_M1 / H1 from 2013.01.01 to 2018.08.30. |
//| - Generated by StrategyQuant X Build 140 for MetaTrader5.      |
//| - Version: 1.00                                                 |
//| - Copyright 2024, Theo Gottwald                                 |
//| - Link: https://www.smart-package.com                           |
//+------------------------------------------------------------------+


Charles Pegge

Hi Theo,
I am unable to convert text-to-speech from your recent postings. It also appears to contain hidden codes that interfere with block copy/paste. But the code sections are unaffected.

Theo Gottwald

Hello Charles! Yes, that's correct. This isn't regular text; it's Unicode characters. I don't write this by hand either—it's generated by my add-on. Check out this video to see how I create this text! 🎥✨
I particularly enjoy using these fonts because they are resistant to automated censoring systems. They simply can't comprehend them. 

If you're interested in using my add-on, feel free to send me a DM. We can discuss the details! 
#Censorship #Fonts #DigitalFreedom #OnlineExpression #CreativeResistance #Unicode #TextGeneration #AddOn #Explanation
#Video 🚀💻🔤🎉

Charles Pegge

Understood. I rather depend on Text-to-Speech for most reading, due to my eyesight.

Theo Gottwald

Reminds me a famouse componist whose ears got deaf.
Yo should work on that and i hope you also still work on your project.


Charles Pegge

My problems are more systemic than eye-focus but I certainly agree with promoting natural healing.