This guide outlines every configurable input in Luna Algo, explained using the input comments exactly as they appear in the code. These are the official field descriptions shown inside MetaTrader, helping traders understand and adjust the EA with confidence.
Live signal: myfxbook.com/members/SDNT/luna-algo/11593841
LunaAlgo MT5: https://www.mql5.com/en/market/product/142826
My personal channel: https://www.mql5.com/en/channels/sdnt_channel
📌 Trading Symbols & Identifiers
Pairs to monitor for trade execution – XAGUSD,XAGAUD,XAGEUR
Define which silver-related pairs the EA will scan and trade. Separate each pair with a comma.Strategy reference ID for managing trades
A unique numeric identifier used to tag trades, helpful for internal management and distinguishing multiple EA instances.Comment tag to label trades on chart
Text string that will appear as the comment on all orders placed by Luna Algo for easy identification in trade history or chart.
⚙️ Execution Conditions & Spread Rules
Threshold used for volatility comparison
This value helps determine when the market is sufficiently volatile for a trade signal.Max trades allowed simultaneously
Limits the number of trades Luna Algo can open at the same time to manage exposure.Maximum spread allowed when opening trades
The EA will skip trade entries if the current spread exceeds this value (measured in points).Trade direction preference
Choose whether Luna Algo should open Buy only, Sell only, or both Buy and Sell trades.
💰 Money Management Settings
Method to compute lot size per trade
Select how lot size is calculated: fixed size, based on balance, percent risk, or specific monetary value.Percentage of account to risk
If using percent-based lot sizing, this defines what portion of your balance is at risk per trade.Fixed lot size for every trade
Use this if the fixed lot size option is selected. The same volume is used for every order.Lot sizing relative to balance
Used when the lot size is tied to account balance (e.g., 0.01 lots per $1000).Alternative lot sizing based on fixed money
Use this amount to risk a specific monetary value per trade when using money-based sizing.Cap on largest trade volume allowed
Prevents the EA from opening trades above this lot size, even if risk logic allows it.Minimum allowable trade volume
Ensures that trade volume doesn’t fall below your broker’s minimum or your desired limit.Lot size reduction percentage after loss
If set above 0, lot size is reduced by this % after a losing trade, useful for recovery or capital preservation strategies.
⏰ Time Window & Session Rules
Start time for trading session
The hour and minute (broker/server time) when the EA starts trading each day.Stop time for trading session
The hour and minute when the EA will stop initiating new trades.Enable Monday trades
Toggle on/off to allow or block trades on Monday.Enable Tuesday trades
Enable or disable trades on Tuesday.Enable Wednesday trades
Enable or disable trading operations on Wednesday.Enable Thursday trades
Control whether Thursday trades are allowed.Enable Friday trades
Option to allow or restrict trading on Fridays, which are often volatile or low-liquidity.
🛑 Stop-Loss / Take-Profit Setup
Determines how SL/TP values are set
Select between static or dynamic risk handling. Dynamic adapts to market conditions.Fixed SL distance in points
The number of points used for a static stop loss if dynamic risk mode is off.Fixed TP distance in points
The number of points used for a static take profit.Add-on SL distance
Adds extra pips to SL, regardless of the base value, for buffer or volatility protection.Add-on TP distance
Adds extra pips to TP, giving the trade more room to reach profit target.Activate SL capping feature
When enabled, SL is forcibly limited to a predefined maximum, even if normal logic allows more.Max allowed SL in pips
Defines the upper limit of how far a stop loss can be, preventing oversized risk.Adjust lots if SL is above max threshold
When enabled, EA automatically reduces trade size if SL is larger than allowed.
🧪 FTMO/Challenge Mode Configuration
Add random pip offset to SL/TP
Slightly alters SL/TP values to prevent broker or prop firm detection.Daily max monetary loss before halting
The EA stops trading for the day once this dollar loss limit is hit.Max losing trades allowed per day
If this number of losing trades occurs in a single day, trading halts until the next day.Bars to pause after trade loss count hit
Temporarily stops trading for this many bars if the daily loss threshold is reached.
🔄 Trade Management Logic
Limit to one position per instrument
Prevents multiple trades on the same pair at the same time.Minimum spacing between trades on same pair
Ensures a buffer (in points) between multiple trades to avoid over-clustering.Enable hedging capability
If enabled, allows Buy and Sell positions to coexist on the same pair.
⚠️ Auto Close on Risk Limits
Max drawdown percent allowed
Total drawdown (as % of balance) that triggers emergency trade closure.Force close all trades at max drawdown
If enabled, all positions will be closed once drawdown exceeds the defined max.Stop trading if this daily DD% is hit
If the account experiences this percent of daily drawdown, the EA will halt trading for the day.Force closure when daily loss limit hits
If enabled, EA closes all open trades once the daily monetary or loss count limit is reached.
🧲 Trailing Logic Configuration
Toggle for trailing feature
Enables or disables the trailing stop functionality.Choose trailing method
Select between fixed-distance or ATR-based trailing.Clear take profit after trailing is engaged
If enabled, take profit is removed once trailing starts to let profits run.
🧩 Partial Exit & Trailing Settings
Take partial profit, trail rest
Close a portion of the trade when in profit and manage the rest using trailing.Portion of trade to close at trailing start
Percentage of the trade to close once trailing is activated (e.g., 50%).
📏 Fixed Distance Trail Parameters
Pips to activate trailing
Trailing starts only after this much profit (in pips) is reached.Distance between SL and price
Defines how far the stop loss will trail behind price once trailing is active.Minimum move to update trailing SL
Trailing SL is only moved when the price advances this many pips past the last update.
📊 ATR Adaptive Trail Strategy
Period for ATR trailing calculation
ATR lookback period used for dynamic trailing stop distance.Timeframe to calculate ATR
Select which chart timeframe is used to measure ATR for trailing.Multiplier used for ATR trailing
Defines how far the trailing SL is placed from price using the ATR value (e.g., 1.5 × ATR).
✅ Summary:
These inputs allow maximum flexibility in configuring Luna Algo for different brokers, market conditions, and trading styles—whether you’re scalping silver, preparing for a prop firm challenge, or managing risk tightly.
If you’re unsure how to adjust these, send a private message for setup guidance or optimization support.
www.mql5.com (Article Sourced Website)
#EAs #setting #inputs #tutorial