The facility of Socrates AI lies not in brute drive, however in its methodical, Socratic AI Engine. This technique is designed to intelligently interrogate market situations on the XAUUSD M5 chart, making use of a logical framework to establish high-probability alternatives. This complete information serves as your guide, strolling you thru each important setting and operational consideration that will help you harness the total potential of this clever intraday system.
Essential Suggestion
Socrates AI comes with its superior Socratic AI Engine options turned OFF by default. On this preliminary state, the EA depends purely on its strong, indicator-based algorithmic core for entry and exit alerts. We strongly advocate new customers function the EA on this default, AI-disabled state for the primary few weeks to totally validate its core system effectiveness in your particular dealer’s feed earlier than partaking the AI.
Essential Operational Be aware
This EA can make the most of a big quantity of the MT5 terminal’s reminiscence for correct operation, particularly when AI integrations are energetic. We do not advocate operating Socrates AI concurrently with different Skilled Advisors or resource-intensive indicators on the identical MT5 terminal occasion. For optimum efficiency, a devoted MT5 terminal (ideally on a VPS) solely for Socrates AI is suggested.
Part 1: Step-by-Step System Activation and Preliminary Configuration
Observe these exact steps to get Socrates AI operational:
-
Guarantee Algo-Buying and selling is Enabled on Your Account: Earlier than loading the EA, confirm that automated buying and selling is permitted in your MT5 buying and selling account. This can be a broker-side setting and a prerequisite for any Skilled Advisor.
-
Load EA to Chart: Drag Socrates AI.ex5 out of your Navigator window onto an XAUUSD M5 chart. Verify the chart is exactly set to the M5 (5-minute) timeframe.
-
Permit Algo-Buying and selling inside EA Settings: When the EA’s properties window seems, navigate to the “Frequent” tab. Right here, guarantee “Permit Algo Buying and selling” is checked.
-
Add URL Internet Requests: This can be a crucial step for AI performance. Go to your MT5 Terminal menu: Instruments -> Choices -> Skilled Advisors Tab. Test “Permit WebRequest for listed URL” and add the mandatory Internet Request URLs offered in your Socrates AI buy documentation. These URLs facilitate safe communication with the OpenAI and Google Gemini APIs.
-
Modify Threat Administration Inputs: Within the EA’s “Inputs” tab, instantly proceed to the “Threat Administration & Commerce ID settings” part. That is your main safeguard. Fastidiously configure your lot_sizing_method (selecting between FIXED_LOT , DYNAMIC_LOT_DOLLAR_RISK , or DYNAMIC_LOT_RISK_PERCENT ) and enter the corresponding Fixed_Lot_Entry_Amount , Balance_dollars_per_.01_traded , or percent_of_balance_to_trade values. Moreover, set your daily_loss_limit and maximum_equity_DD_% . For prop agency merchants, allow Prop_Firm_Mode_Enabled (if obtainable, confirm out of your inputs) and align protection_reset_hour (if used for prop agency resets) together with your agency’s server time.
-
Activate AI Panel (Later) & Commerce Validation (Later): Initially, guarantee Use_AI_Entry_Signal_Validation and Use_AI_Directional_Entry_Bias stay false . You may set show_AI_Assistant_panel to true later after AI validation is enabled, to visually observe AI choices on the chart.
-
Add Your API Key (Later): Don’t add your API key for ChatGPT or Google Gemini but. This step ought to solely be carried out after you’ve validated the EA’s core efficiency with out AI. When prepared, enter your particular person OpenAI API key into the Copy_&_Paste_Your_OpenAI_API_Key_Here discipline and/or your Google Gemini API key into the Copy_&_Paste_Your_Gemini_API_Key_Here discipline.
-
Allow AutoTrading Button: Make sure the “AutoTrading” button in your MT5 toolbar is enabled (it needs to be inexperienced). This prompts the EA on the chart.
Part 2: Detailed Enter Parameters – Your Advantageous-Tuning Toolkit
As soon as hooked up, navigate to the “Inputs” tab within the EA’s properties.
A. AI Supplier & Mannequin Choice
This part is the place you outline which AI fashions Socrates AI will work together with.
-
Select_AI_Provider: (Dropdown) Select between AI_GEMINI_COMPAT (for Gemini-compatible fashions like gemini-pro, gemini-1.5-flash), AI_OPENAI (for OpenAI fashions like gpt-4o, gpt-3.5-turbo), or AI_NATIVE (if future native AI integration is added).
-
OpenAI_Model_Used: (String) Specify the precise OpenAI mannequin identify, e.g., gpt-4o or gpt-3.5-turbo .
-
Custom_OpenAI_Model: (Checkbox) Set to true in case you are offering a customized OpenAI mannequin identify.
-
Gemini_Model_Used: (String) Specify the precise Gemini mannequin identify, e.g., gemini-1.5-flash .
-
Custom_Gemini_Model: (Checkbox) Set to true in case you are offering a customized Gemini mannequin identify.
B. Socratic Insights Panel
These settings management the looks and performance of the on-chart AI Insights Panel.
-
show_AI_Assistant_panel (Default: false ): Set to true to show the AI Assistant panel in your chart, offering real-time AI insights and management.
-
Move_Panel_Left-Proper: Adjusts the horizontal place of the AI Assistant panel on the chart.
-
Move_Panel_Up-Down: Adjusts the vertical place of the AI Assistant panel on the chart.
-
Adjust_Panel_Width: Units the width of the AI Assistant panel.
-
Adjust_Panel_Height: Units the peak of the AI Assistant panel.
-
AI_Panel_Background_Color: Units the background coloration of the AI Assistant panel.
-
AI_Panel_Button_On_Color: Units the colour of buttons when an AI characteristic is “on”.
-
AI_Panel_Button_Off_Color: Units the colour of buttons when an AI characteristic is “off”.
-
AI_Panel_Button_Text_Color: Units the textual content coloration for buttons on the AI Assistant panel.
-
Copy_&_Paste_Your_OpenAI_API_Key_Here: Essential. Paste your OpenAI API key right here when enabling OpenAI options.
-
Copy_&_Paste_Your_Gemini_API_Key_Here: Essential. Paste your Google Gemini API key right here when enabling Gemini options.
-
OpenAI_Timeout_ms: Defines the utmost time (in milliseconds) the EA will anticipate a response from the OpenAI API.
-
Use_AI_Entry_Signal_Validation (Default: false ): Set to true to allow real-time commerce validation through AI earlier than entries.
-
Use_AI_Directional_Entry_Bias (Default: false ): Set to true to permit AI to find out the directional bias (BUY-only, SELL-only, BOTH) for entries.
-
Use_AI_Optimization_Assistant (Default: false ): Set to true to allow the AI’s parameter optimization ideas.
C. AI MTF Choices
These settings relate to Multi-Timeframe (MTF) confluence validation with AI.
-
Use_AI_Powered_Multi_TF_Confluence_Filtration (Default: false ): Set to true to allow AI-driven MTF confluence checks earlier than entries.
-
TF_List_For_Confluence_Filtration: (String) A comma-separated checklist of timeframes (e.g., M15,H1,H4 ) the AI ought to test for confluence.
D. Threat Administration & Commerce ID settings
That is your main safeguard and commerce identification part.
-
Fixed_Lot_Entry_Amount: (Used if lot_sizing_method is FIXED_LOT ). The static lot dimension for all trades.
-
lot_sizing_method: (Dropdown) Select between FIXED_LOT , DYNAMIC_LOT_DOLLAR_RISK , or DYNAMIC_LOT_RISK_PERCENT .
-
Balance_dollars_per_.01_traded: (Used if lot_sizing_method is DYNAMIC_LOT_DOLLAR_RISK ). The greenback quantity risked per 0.01 lot dimension. This works together with your cease loss to calculate lot dimension.
-
trade_direction: (Dropdown) Handbook override for commerce course: BUY_ONLY , SELL_ONLY , or BOTH .
-
percent_of_balance_to_trade: (Used if lot_sizing_method is DYNAMIC_LOT_RISK_PERCENT ). The proportion of your account fairness/steadiness to threat per commerce.
-
pip_calculation_for_risk_percent_mode: (Numerical) Clarifies how pips are interpreted for threat proportion calculations (e.g., 10 for 1.0 normal pip in 5-digit brokers, or 1 for 1.0 normal pip in 4-digit brokers). Essential for correct lot sizing.
-
Select_Stop_loss_level: (Dropdown) Determines the place the Cease Loss is ready: SL_FROM_SIGNAL (primarily based on inner logic) or SL_CUSTOM_PIPS (makes use of Stop_Loss_Pips ).
-
Select_take_profit_level: (Dropdown) Determines the place the Take Revenue is ready: TP_FROM_SIGNAL (primarily based on inner logic) or TP_CUSTOM_PIPS (makes use of Take_Profit_Pips ).
E. Magic Quantity Inputs
F. Entry Safety Settings
-
max_allowed_spread_to_open: The utmost allowed unfold (in factors) for a brand new commerce entry. If present unfold exceeds this, no commerce.
-
max_open_positions_across_account: International restrict on open positions.
-
max_open_lots_across_account: International restrict on complete open heaps.
-
check_for_entry_every_N_seconds: Defines the frequency (in seconds) the EA checks for brand new entry alerts.
G. Each day Safety Settings
-
daily_loss_limit: (Share) The utmost proportion of your preliminary day by day steadiness you might be prepared to lose earlier than the EA pauses buying and selling.
-
daily_DD_limit: (Share) Each day drawdown restrict.
-
protection_reset_hour: The hour (0-23) at which day by day safety limits are reset.
H. Account Safety Settings
-
minimum_equity_level: If account fairness falls under this absolute worth, buying and selling stops.
-
maximum_equity_DD_%: An overarching most fairness drawdown proportion from peak.
-
maximum_equity_level: Buying and selling stops if fairness reaches this absolute worth.
I. Information Filter Settings
-
News_Priority: (Dropdown) NewsFilter_Disabled , Filter_High_Impact , Filter_Medium_and_High_Impact .
-
set_news_currencies: (String) Currencies to filter information for (e.g., XAU,USD or ALL ).
-
upcoming_Medium_News_Trade_Buffer_(MINUTES): Minutes earlier than a medium influence information occasion to pause entries.
-
trade_buffer_after_medium_news_(MINUTES): Minutes after a medium influence information occasion to renew entries.
-
upcoming_High_News_Trade_Buffer_(MINUTES): Minutes earlier than a excessive influence information occasion to pause entries.
-
trade_buffer_after_high_news_(MINUTES): Minutes after a excessive influence information occasion to renew entries.
-
Number_of_headlines_to_display: What number of upcoming information headlines to point out on the chart (if display_EA_statistics is true ).
J. Stats Panel Show Settings
-
display_position_stats: If true , shows statistics about open positions.
-
display_EA_statistics: If true , shows basic EA efficiency statistics on the chart.
-
seconds_between_panel_refresh: How typically (in seconds) the stats panels on the chart replace.
Ok. Socratic Logic Panel Settings
These settings management the visible look of a particular strategy-related panel.
-
PanelX / PanelY: X and Y coordinates for the panel place.
-
PanelWidth / PanelHeight: Width and top of the panel.
-
LineSpacing: Vertical spacing between strains of textual content within the panel.
-
BullishEntireColor / BearishEntireColor: Colours for bullish and bearish parts inside the panel.
L. Session Time Settings
-
sessionSundayOpenHour / sessionSundayCloseHour: Buying and selling hours for Sunday.
-
sessionMondayThursdayOpenHour / sessionMondayThursdayCloseHour: Buying and selling hours for Monday by means of Thursday.
-
sessionFridayOpenHour / sessionFridayCloseHour: Buying and selling hours for Friday.
-
sessionIgnoreSunday: If true , no buying and selling on Sunday.
-
sessionCloseAtSessionClose: If true , open trades are closed on the finish of the session.
-
sessionCloseAtFridayClose: If true , open trades are closed at Friday’s session shut.
M. Market Interrogation Log (MIL)
These settings management the visible look of the technique monitoring log.
-
Show_Strategy_Monitor (Default: false ): Set to true to show this particular monitoring panel.
-
SMP_X / SMP_Y: X and Y coordinates for the MIL.
-
SMP_Width / SMP_Height: Width and top of the MIL.
-
SMP_LineSpacing: Vertical spacing inside the MIL.
-
SMP_MaxLogLines: Most variety of log strains to show within the MIL.
Part 3: Operational Movement – Your Clever Buying and selling Journey
1. Preliminary Validation (WITHOUT AI) 🧐
-
Start by working Socrates AI with Use_AI_Entry_Signal_Validation and Use_AI_Directional_Entry_Bias each set to false .
-
Permit the EA to run for at the least a couple of weeks (on a demo or small stay account) to totally validate its core, indicator-based technique effectiveness in your particular dealer’s XAUUSD M5 feed. Pay shut consideration to execution, unfold influence, and total consistency.
-
This part is essential: It means that you can verify the EA’s strong algorithmic efficiency earlier than introducing the Socratic AI layer.
2. Introducing AI (After Core Validation) 🤖
-
If you’re glad with the EA’s efficiency within the non-AI mode, you possibly can then proceed to activate the AI layer.
-
Go to Instruments -> Choices -> Skilled Advisors Tab and guarantee your Internet Request URLs are accurately added.
-
Within the EA’s Inputs, now enter your OpenAI API key into the Copy_&_Paste_Your_OpenAI_API_Key_Here discipline and/or your Google Gemini API key into the Copy_&_Paste_Your_Gemini_API_Key_Here discipline.
-
Set Use_AI_Entry_Signal_Validation or Use_AI_Directional_Entry_Bias (or each) to true .
-
Take into account enabling show_AI_Assistant_panel to realize real-time perception into the AI’s decision-making course of straight in your chart.
-
You may then experiment with Use_AI_Optimization_Assistant (set to true ) to obtain clever optimization ideas from the AI.
3. Monitor and Adapt 📊
-
No matter whether or not AI is enabled, repeatedly monitor the EA’s efficiency utilizing the on-chart information panel and your MT5 account historical past. The market is dynamic, so be ready to make considerate, data-driven changes to your inputs as wanted, at all times understanding the potential influence of every change.
Part 4: Important Greatest Practices & Strategic Suggestions
-
Devoted Terminal & VPS is Paramount: Given Socrates AI’s potential for important reminiscence utilization (particularly with AI energetic) and its M5 timeframe sensitivity, operating it on a devoted MT5 terminal on a dependable Digital Non-public Server (VPS) is strongly advisable. This ensures uninterrupted operation, minimal latency, and devoted sources, maximizing efficiency and stability.
-
No Different EAs: Don’t run different Skilled Advisors or overly resource-intensive customized indicators on the identical MT5 terminal occasion as Socrates AI. This technique is designed for singular focus to make sure optimum reminiscence allocation and execution velocity.
-
Dealer Selection Issues: XAUUSD M5 buying and selling is extremely delicate to your dealer’s uncooked unfold, fee construction, and execution velocity. Select a dealer providing tight spreads, low commissions, and low latency for gold.
-
API Prices & Monitoring: Be absolutely conscious that using the OpenAI and Google Gemini APIs incurs prices primarily based in your utilization (variety of requests). Monitor your API supplier’s dashboard to your spending to handle prices successfully.
-
Backtesting for Insights, Demo for Validation: Whereas MT5’s Technique Tester can present invaluable historic insights, it can not completely replicate stay market situations (variable unfold, slippage, actual latency). At all times conduct thorough testing on a demo account mirroring your stay dealer’s feed earlier than deploying Socrates AI with actual funds.
-
Keep Knowledgeable & Discretion: Whereas the information filter gives a strong automated buffer, sustaining a basic consciousness of main financial information and geopolitical occasions is at all times a clever follow. No system, even AI-powered, can predict black swan occasions, and human discretion is the last word safeguard.
-
Common Updates: At all times guarantee your Socrates AI is up to date to the newest model. This ensures you profit from steady efficiency enhancements, bug fixes, and new options as they’re launched.
By adhering to this complete operational information, you empower your self to totally leverage Socrates AI as a very clever, disciplined, and powerfully adaptive software for navigating the dynamic XAUUSD M5 market. Begin with logic, validate with persistence, after which unlock the total Socratic potential.


