Load OHLCV Data
MT5 History Center โ select symbol & timeframe โ right-click โ Export as CSV
Drop your MT5 CSV here
Comma or tab-separated ยท date, open, high, low, close, volume
Label Configuration
Look-ahead bars 5
1 bar30 bars
Threshold (pips) 10
1 pip100 pips
Features & Architecture
Select technical indicators ยท configure neural network depth and regularization
Trend
MA 20
MA 50
MA 200
EMA 12
EMA 26
MA Cross
Price/MA Ratio
Volatility
ATR 14
BB Position
BB Width
ATR 7
Hist Vol 20
Momentum
RSI 14
MACD
MACD Signal
Stochastic K
Stochastic D
ROC 10
CCI 20
Price Structure
Close-Open
High-Low/ATR
Upper Wick %
Lower Wick %
Lag 1 Return
Lag 3 Return
Volume Ratio
Time
Hour of Day
Day of Week
Network Architecture
๐ก Default settings work well for most cases. Read the descriptions below to understand what each setting does, then leave them as-is unless you have a specific reason to change.
Hidden Layer 1
The number of neurons in the first processing layer. More neurons = the model can learn more complex patterns, but risks memorizing the training data instead of generalizing.
โ Leave at 64.
Hidden Layer 2
An optional second processing layer for deeper pattern recognition. Set to None for a simpler 2-layer network. Adding a second layer helps with complex market patterns but increases training time.
โ Leave at 32.
Activation Function
Determines how each neuron processes its input. ReLU is the standard choice โ fast and effective for most cases. Tanh and ELU are alternatives with slightly different behavior on edge cases.
โ Leave at ReLU.
Dropout 0.30
During training, randomly ignores this percentage of neurons. This forces the network to learn robust patterns rather than memorizing the data (overfitting). 0.30 means 30% are randomly disabled each step.
โ Leave at 0.30.
00.6
Learning Rate
Controls how much the model adjusts itself after each mistake. Too high = learns fast but imprecisely. Too low = very precise but slow. 0.001 is the well-tested default for most financial time series.
โ Leave at 0.001.
Max Epochs 100
One epoch = one full pass through all training data. The model trains up to this limit, but Early Stopping will automatically finish training earlier if the model stops improving โ so the actual number is usually lower.
โ Leave at 100.
20300
Training
TensorFlow.js ยท WebGL GPU ยท Early stopping (patience=18)
Train Samples
โ
Features
โ
Epoch
0
Val Accuracy
โ
Initializing...0%
Loading TensorFlow.js...
Export ONNX
ONNX opset 12 ยท Protobuf serialized in-browser ยท MT5 OnnxLoad() compatible
Format
ONNX opset 12
MT5 Compatibility
โ OnnxLoad ready
Input tensor
float32[1,?]
Output tensor
float32[1,3] softmax
Operators
Gemm ยท ReLU ยท Softmax
File size
โ
Feature Index (must match MT5 computation order exactly)
sfm5_ai_model.onnx
โ MT5/MQL5/Files/sfm5_ai_model.onnx
MQ5 Code + StratForge Integration
Complete feature calculation code ยท all normalization constants embedded ยท ready to paste
AI Signal Settings
Confidence threshold 0.55
0.40 โ loose0.90 โ strict
Entries below this confidence level are skipped.
Higher = fewer but higher-quality signals.
Higher = fewer but higher-quality signals.
Filter Mode
๐ Send to StratForge MT5
Saves your AI model config to browser storage. When you open StratForge MT5, it will detect the AI model and offer to inject it into your EA automatically.
1
Click the button below to save AI config to browser2
Open StratForge MT5 โ an AI Signal banner will appear3
Complete the wizard as usual โ AI Signal is injected into Step 4 (Entry Conditions)4
Generated .mq5 includes full feature calculation code + OnnxLoad/RunOr: Download & Manually Integrate
Manual Integration Steps
โ Place
โก Paste this file below the
โข
โฃ
โค Before Buy:
โฅ Before Sell:
sfm5_ai_model.onnx โ MQL5/Files/โก Paste this file below the
#include block in your StratForge EAโข
OnInit(): add if(!AI_Init()) return INIT_FAILED;โฃ
OnDeinit(): add AI_Deinit();โค Before Buy:
if(CheckAISignal() != 2) return;โฅ Before Sell:
if(CheckAISignal() != 0) return;