A graduated/released hedge carries a large martingale lot. The dollar-based TrailingDistanceValue converts to a near-zero PRICE gap on that lot, so the trailing stop landed at market and closed the position instantly (or via the emergency-close on a rejected too-tight modify) - cutting profit that could have run. Graduated and released chain legs now trail at HedgeTrailATR x ATR (default 1.0, lot-independent); set 0 to use the normal trailing settings. Added HedgeTrailATR to all profiles.
175 lines
4.2 KiB
Text
175 lines
4.2 KiB
Text
; +-----------------------------------------+
|
|
; Nyao Scalper v42.0 - AGGRESSIVE PROFILE
|
|
; © Copyright Nyao Scalper by Elriz Wiraswara
|
|
; +-----------------------------------------+
|
|
; Optimized for XAUUSD M1
|
|
; Philosophy: Maximum trade frequency, maximum profit capture
|
|
; Low entry threshold, bigger lots, widest stops, ride trends longer
|
|
; Per-trade risk ~1.5% equity; basket stop ~12%; loosest dead-market filter
|
|
; ⚠️ Higher risk - use only with capital you can afford to lose
|
|
; +-----------------------------------------+
|
|
; 📊 Indicator Settings
|
|
DirectionalBodyLookback=8
|
|
EMAFastPeriod=4
|
|
EMASlowPeriod=10
|
|
SlopeLookback=2
|
|
RSIPeriod=6
|
|
ATRPeriod=6
|
|
ATRAvgLookback=8
|
|
MinVolRatioToTrade=0.5
|
|
ImpulseLookback=2
|
|
ImpulseBoostWeight=1.5
|
|
SignalSmoothingCandles=1
|
|
CurrentCandleBlend=0.60
|
|
VelocityWindow=2.5
|
|
RSIOverbought=85
|
|
RSIOversold=15
|
|
RSIMomentumBuy=55
|
|
RSIMomentumSell=45
|
|
; ⚖️ Score Weight Settings
|
|
TrendWeight=1.5
|
|
SlopeWeight=1.5
|
|
MomentumBaseWeight=1.2
|
|
MomentumTriggerWeight=0.8
|
|
BodyMomentumWeight=1.8
|
|
ChopScoreHigh=2.0
|
|
ChopScoreMed=1.2
|
|
ChopScoreLow=0.0
|
|
VolatilityScoreHigh=1.0
|
|
VolatilityScoreLow=0.0
|
|
PeakScoreWeight=1.0
|
|
WickRejectionWeight=0.5
|
|
MinBodyRatio=1.2
|
|
; 📝 Order & Position Settings
|
|
EnableBuyOrders=true
|
|
EnableSellOrders=true
|
|
EnableNewBarEntryOnly=true
|
|
EnableMaxSpreadFilter=true
|
|
MaxSpreadPoints=0
|
|
MaxSpreadATRRatio=0.35
|
|
BaseLotSize=0.03
|
|
MaxOpenOrders=12
|
|
MaxTradesPerCandle=2
|
|
ConsecutiveCandleThresholdBoost=0.5
|
|
MaxConsecutiveCandleBoosts=5
|
|
ZonePoints=300.0
|
|
BuyDuplicateMultiplier=1.0
|
|
SellDuplicateMultiplier=1.0
|
|
MinBreakEvenProfit=0.5
|
|
ProfitThresholdMultiplier=2.0
|
|
LossThresholdMultiplier=2.5
|
|
MinBuySignalScore=3.5
|
|
MinSellSignalScore=3.5
|
|
; 🎯 Limit Entry Settings
|
|
EnableLimitEntry=false
|
|
LimitEntryAnchor=0
|
|
LimitEntryATRFraction=0.25
|
|
LimitEntryExpiryBars=1
|
|
LimitEntryCancelOnFlip=true
|
|
; 🛡️ Signal Dampening Settings
|
|
EnableSignalDampening=true
|
|
MaxLosingPositionsSameDir=3
|
|
LosingPosScorePenalty=1.0
|
|
DrawdownThresholdPct=5.0
|
|
DrawdownScoreBoost=1.5
|
|
ConsecutiveLossesBeforeCooldown=3
|
|
ConsecutiveLossCooldownBars=1
|
|
; 🩺 Loss Management Settings
|
|
EnableLossManagement=true
|
|
MaxHoldingLossPositions=4
|
|
MinHealthScore=0.25
|
|
MaxAdverseATR=2.5
|
|
HealthTrendWeight=0.40
|
|
HealthRSIWeight=0.25
|
|
HealthATRWeight=0.25
|
|
HealthSwingWeight=0.10
|
|
HealthRSIBuyMin=35.0
|
|
HealthRSISellMax=65.0
|
|
HealthSwingLookback=15
|
|
HealthGraceBars=3
|
|
EnablePartialClose=true
|
|
PartialClose75Pct=0.15
|
|
PartialClose50Pct=0.30
|
|
PartialClose25Pct=1.00
|
|
EnableHealthSLTightening=true
|
|
SLTightenATRMultiplier=2.5
|
|
SLTightenMinHealthPct=0.40
|
|
EnableBreakEvenOnSpread=true
|
|
BreakEvenSpreadMultiplier=2.0
|
|
EnableVirtualSLReentry=true
|
|
ReentryRespectsNewBarGate=false
|
|
ReentryMinSignalPct=0.50
|
|
EnableProfitOffsetSL=true
|
|
ConsecutiveWinsRequired=2
|
|
MinOffsetProfit=0.5
|
|
; 🔀 Hedge Chain (Rolling Martingale Recovery) Settings
|
|
EnableHedgeChain=true
|
|
HedgeTriggerATR=1.5
|
|
HedgeRequireSignal=true
|
|
HedgeMinSignalScore=3.5
|
|
HedgeAutoLot=true
|
|
HedgeRecoveryATR=1.0
|
|
HedgeLotMultiplier=2.0
|
|
HedgeMaxLot=0.30
|
|
HedgeRecoveryPct=100.0
|
|
HedgeRollMinProfit=0.0
|
|
HedgeCycleLevels=3
|
|
EnableHedgeCycleReset=true
|
|
HedgeCyclePartialPct=50.0
|
|
HedgeMaxCycles=4
|
|
HedgeMaxChainLossUSD=0.0
|
|
HedgeMaxChainLossPct=0.0
|
|
HedgeClearRootSL=true
|
|
HedgeTrailATR=1.0
|
|
; 🧮 Dynamic Lot Sizing Settings
|
|
EnableDynamicLots=true
|
|
EquityDropPercent=4.0
|
|
MaxEquityDropLotSteps=3
|
|
MinSignalStrengthForLot=7.0
|
|
LotStepSize=0.02
|
|
MaxLotSize=0.10
|
|
; 🏦 Equity Settings
|
|
EnableBasketStop=true
|
|
MaxBasketLossPct=12.0
|
|
MinEquityPercent=50.0
|
|
MaxDrawdownFromPeak=0.0
|
|
PauseMinutes=3
|
|
PauseMinutesMultiplier=1.2
|
|
MaxPauseMinutes=60
|
|
MaxMinEquityTriggers=0
|
|
ResetOnNewPeak=true
|
|
TargetEquity=0.0
|
|
MinimumEquity=20.0
|
|
; 📈 Take Profit Settings
|
|
EnableTakeProfit=false
|
|
TPInputType=0
|
|
TPValue=15.0
|
|
; 📉 Stop Loss Settings
|
|
EnableStopLoss=true
|
|
SLInputType=1
|
|
SLValue=1.5
|
|
; 💸 Trailing TP/SL Settings
|
|
EnableTrailing=true
|
|
TrailingEnableBreakEvenLock=true
|
|
TrailingSLOnProfitableOnly=false
|
|
EnableAdaptiveTP=true
|
|
EnableAdaptiveSL=true
|
|
TSInputType=0
|
|
TrailingDistanceValue=0.50
|
|
TrailingValueMultiplier=0.30
|
|
; 🤖 Robot Settings
|
|
MagicNumber=6926268
|
|
EnableDiscordAlerts=false
|
|
DiscordWebhookURL=
|
|
EnableTradingHours=false
|
|
TradingStartTime=00:00
|
|
TradingEndTime=23:59
|
|
EnableReports=true
|
|
SendReportEveryHour=1
|
|
EnableMarketCloseFilter=true
|
|
MinutesBeforeClose=15
|
|
EnableNewsFilter=true
|
|
NewsMinutesBefore=15
|
|
NewsMinutesAfter=15
|
|
EnableLeveragePause=true
|
|
EnableLogging=false
|