bifurqué depuis SahrJohn/RSI-Stoch-MA-EA
112 lignes
Pas d'EOL
5 Kio
MQL5
112 lignes
Pas d'EOL
5 Kio
MQL5
//+------------------------------------------------------------------+
|
|
//| InputParams.mqh |
|
|
//| All Input Parameters for QuarterTheory |
|
|
//+------------------------------------------------------------------+
|
|
#property copyright "QuarterTheory x VIZION"
|
|
#property strict
|
|
|
|
//================ INPUT PARAMETERS ==================//
|
|
input group "=== CORE SETTINGS ==="
|
|
input int MagicNumber = 456789;
|
|
input double Risk_Per_Trade = 1.2;
|
|
input int Max_Trades_Per_Setup = 10;
|
|
input int Max_Total_Trades = 100;
|
|
input int Min_Runners_To_Keep = 4;
|
|
|
|
input group "=== MARKET MODE SYSTEM ==="
|
|
input bool Use_Market_Mode_Filter = true;
|
|
input int Mode_Confirmation_Bars = 2;
|
|
input double Chop_ATR_Threshold = 0.5;
|
|
input double Range_Price_Threshold = 0.3;
|
|
|
|
input group "=== REVERSAL CONFIRMATION ==="
|
|
input bool Only_Close_On_Full_Reversal = true;
|
|
input int Reversal_Confirmation_Bars = 3;
|
|
|
|
input group "=== MA SYSTEM ==="
|
|
input int MA_1 = 7;
|
|
input int MA_2 = 14;
|
|
input int MA_3 = 21;
|
|
input int MA_4 = 50;
|
|
input int MA_5 = 140;
|
|
input int MA_6 = 230;
|
|
input int MA_7 = 500;
|
|
input int MA_8 = 1000;
|
|
input int MA_9 = 1100;
|
|
input int MA_10 = 1300;
|
|
input int MA_Touch_Buffer = 100;
|
|
|
|
input group "=== STOCHASTIC ==="
|
|
input int Stoch_K_Period = 5;
|
|
input int Stoch_D_Period = 3;
|
|
input int Stoch_Slowing = 3;
|
|
input double Stoch_Extreme_High = 85.0;
|
|
input double Stoch_Extreme_Low = 15.0;
|
|
input double Stoch_High = 70.0;
|
|
input double Stoch_Low = 30.0;
|
|
|
|
input group "=== MOVING FIBONACCI (ATH/ATL) ==="
|
|
input int MFIB_Lookback = 500;
|
|
input bool Use_MFIB_382_Bias = true;
|
|
|
|
input group "=== FIBONACCI ==="
|
|
input int Lookback_Bars = 200;
|
|
input bool Show_Levels = true;
|
|
|
|
input group "=== CONTINUATION TRADE SETTINGS ==="
|
|
input int Continuation_SL_Points = 150;
|
|
input int Continuation_BreakEven_Points = 500;
|
|
input int Continuation_Trail_Points = 820;
|
|
input int Continuation_TP_Points = 4000;
|
|
input int Continuation_Partial_TP = 900;
|
|
input double Continuation_Partial_Percent = 33.0;
|
|
|
|
input group "=== COUNTER-TREND TRADE SETTINGS ==="
|
|
input int Counter_SL_Points = 50;
|
|
input int Counter_BreakEven_Points = 25;
|
|
input int Counter_Trail_Points = 300;
|
|
input int Counter_TP_Points = 3000;
|
|
input int Counter_Partial_TP = 100;
|
|
input double Counter_Partial_Percent = 50.0;
|
|
|
|
input group "=== WAR SURVIVOR: AGGRESSIVE MFIB PARTIAL SYSTEM ==="
|
|
input bool Use_MFIB_Partials = true;
|
|
input double MFIB_Partial_Percent = 25.0;
|
|
input int MFIB_Partial_Min_Profit = 30;
|
|
input double War_Survivor_Lot_Multiplier = 2.5;
|
|
|
|
input group "=== PRAISE SYSTEM: Aggressive Trend Following ==="
|
|
input bool Use_Praise_System = true;
|
|
input double Praise_Size_Multiplier_Strong = 1.5;
|
|
input double Praise_Size_Multiplier_Supreme = 2.0;
|
|
input int Praise_Tight_Trail = 100;
|
|
input bool Pause_Counter_On_Praise = true;
|
|
input bool Reduce_Continuation_On_Warn = true;
|
|
input bool Max_Aggression_Mode = true;
|
|
|
|
input group "=== BAND SNAP DETECTION ==="
|
|
input double Band_Snap_ATR_Multiplier = 2.0;
|
|
|
|
input group "=== RE-ENTRY SETTINGS ==="
|
|
input bool Allow_Re_Entry = true;
|
|
input int Re_Entry_Cooldown_Bars = 3;
|
|
|
|
input group "=== NEURAL NETWORK ==="
|
|
input bool Use_NeuralNet = true;
|
|
input string NN_ServerURL = "http://127.0.0.1:8000/predict";
|
|
input int NN_CooldownSeconds = 15;
|
|
input int NN_TimeoutMs = 800;
|
|
input double NN_MinConfidenceToUse = 55.0;
|
|
input double NN_MaxRiskToUse = 75.0;
|
|
input bool NN_BlockOnDisagree = true;
|
|
input bool NN_DebugPrint = false;
|
|
|
|
|
|
input group "=== OPENAI INTEGRATION ==="
|
|
input bool Use_OpenAI = true; // Enable AI analysis
|
|
input string OpenAI_API_Key = "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"; // Your OpenAI API key
|
|
input string OpenAI_Model_Choice = "gpt-4o-mini"; // gpt-4o or gpt-4o-mini
|
|
input bool AI_Validate_Trades = true; // Ask AI before each trade
|
|
input bool AI_Daily_Briefing = false; // Daily market briefing
|
|
input bool AI_Position_Advice = true; // Get AI advice on positions
|
|
input int AI_Briefing_Hour = 8; // Hour for daily briefing (0-23) |