PageSourceSearch

https://www.alphafox.app/_next/static/chunks/0hu3l218x6944.js

js alphafox.app collected 2026-09-24 10:42:27 UTC 33,429 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,325680,t=>{"use strict";var e=t.i(817422);let r=e.z.string().trim().regex(/^\d+(?:\.\d+)?$/,"Invalid decimal string"),i=e.z.enum(["lite","pro","pro_max"]),n=e.z.enum(["month","year"]),a=e.z.enum(["percentage","fixed_amount"]),o=e.z.enum(["free","lite","pro","pro_max"]),s=e.z.object({code:i,name:e.z.string().trim().min(1),currency:e.z.string().trim().min(1),monthlyPrice:r,yearlyPrice:r,monthDurationDays:e.z.number().int().positive(),yearDurationDays:e.z.number().int().positive()}).strict(),l=e.z.object({plans:e.z.array(s)}).strict(),g=e.z.object({planCode:i,planName:e.z.string().trim().min(1),status:e.z.string().trim().min(1),startedAt:e.z.string().trim().min(1),currentPeriodStart:e.z.string().trim().min(1),currentPeriodEnd:e.z.string().trim().min(1)}).strict(),c=e.z.object({count:e.z.number().int().nonnegative(),expiresAt:e.z.string().trim().min(1).nullable()}).strict(),d=e.z.object({subscriptionTier:o,subscription:g.nullable(),liveSlots:c,paperSlots:c}).strict(),u=e.z.object({code:e.z.string().trim().min(1),discountType:a,discountValue:r,applicablePlanCode:i.nullable()}).strict(),m=e.z.enum(["purchase","complimentary_upgrade"]),y=e.z.object({fromPlanCode:i,toPlanCode:i,remainingMs:e.z.number().int().nonnegative(),convertedMs:e.z.number().int().positive(),currentPeriodEnd:e.z.string().trim().min(1),convertedPeriodEnd:e.z.string().trim().min(1)}).strict(),_=e.z.object({planCode:i,billingPeriod:n,currency:e.z.string().trim().min(1),originalAmount:r,discountAmount:r,paidAmount:r,coupon:u.nullable(),action:m.default("purchase"),upgrade:y.nullable().default(null)}).strict(),f=_.extend({id:e.z.string().trim().min(1),status:e.z.string().trim().min(1),entitlementStartedAt:e.z.string().trim().min(1),entitlementEndedAt:e.z.string().trim().min(1),walletLedgerEntryId:e.z.string().trim().min(1).nullable(),createdAt:e.z.string().trim().min(1)}).strict(),h=e.z.object({purchase:f,subscription:d}).strict(),p=e.z.enum(["already_claimed","subscription_active","telegram_binding_required"]),b=e.z.enum(["claimed","already_claimed","subscription_active","telegram_binding_required"]),v=e.z.object({code:e.z.literal("welcome_pro_3d"),planCode:e.z.literal("lite"),durationDays:e.z.literal(7),claimable:e.z.boolean(),reason:p.nullable(),subscription:d}).strict(),S=e.z.object({claimed:e.z.boolean(),reason:b,entitlementVersion:e.z.number().int().positive().optional(),entitlementEndedAt:e.z.string().trim().min(1).optional(),subscription:d}).strict(),w=e.z.enum(["already_granted","subscription_active"]),P=e.z.object({windowDays:e.z.number().int().positive(),granted:e.z.boolean(),claimable:e.z.boolean(),reason:w.nullable(),expiresAt:e.z.string().trim().min(1).nullable()}).strict(),k=P.extend({entitlementVersion:e.z.number().int().positive().nullable()}).strict();e.z.object({planCode:i,billingPeriod:n,couponCode:e.z.string().trim().min(1).optional()}).strict();let T=e.z.enum(["already_claimed","wallet_not_ready","deposit_below_threshold"]),A=e.z.enum(["claimed","already_claimed","wallet_not_ready","deposit_below_threshold"]),z=e.z.object({code:e.z.literal("managed_wallet_first_deposit_pro_7d"),planCode:e.z.literal("lite"),durationDays:e.z.literal(7),minDepositUsdc:e.z.literal("50"),creditedDepositUsdc:r,claimable:e.z.boolean(),reason:T.nullable(),subscription:d}).strict(),x=e.z.object({claimed:e.z.boolean(),reason:A,entitlementVersion:e.z.number().int().positive().optional(),entitlementEndedAt:e.z.string().trim().min(1).optional(),subscription:d}).strict();function L(t){return"pro"===t||"pro_max"===t}t.s(["SMART_ROTATION_FREE_TOP_N_LIMIT",0,10,"isProSubscriptionStatus",0,function(t,e=Date.now()){let r=t?.subscription;if(!r||!L(t.subscriptionTier))return!1;let i=Date.parse(r.currentPeriodEnd);return Number.isFinite(i)&&i>e},"isProSubscriptionTier",0,L,"isWelcomeTrialOfferPending",0,function(t){return!!t&&(t.claimable||"telegram_binding_required"===t.reason)},"managedWalletDepositBonusClaimResponseSchema",0,x,"managedWalletDepositBonusOfferSchema",0,z,"novicePaperWaiverGrantSchema",0,k,"novicePaperWaiverOfferQueryKey",0,function(t){return["subscriptions","novice-paper-waiver-offer",t?.trim()||"anonymous"]},"novicePaperWaiverOfferSchema",0,P,"smartRotationTopNLimit",0,function(t){return void 0===t||L(t)?20:10},"subscriptionPlanDisplayName",0,function(t){return"lite"===t?"VIP":"pro_max"===t?"Pro Max":"Pro"},"subscriptionPlansResponseSchema",0,l,"subscriptionPreviewSchema",0,_,"subscriptionPurchaseResponseSchema",0,h,"subscriptionStatusSchema",0,d,"subscriptionTierSchema",0,o,"welcomeTrialClaimResponseSchema",0,S,"welcomeTrialOfferQueryKey",0,function(t){return["subscriptions","welcome-trial-offer",t?.trim()||"anonymous"]},"welcomeTrialOfferSchema",0,v])},657703,242754,167606,360514,t=>{"use strict";var e=t.i(948960);let r=new Set(["text","textarea","number","integer","switch","select","radio","json","array-table","string-list","percent-sum-table","price-percent-ladder","symbol-picker"]);function i(t){var e=t.configSchema;if(!o(e))throw Error("Strategy definition is missing configSchema.");return e}function n(t,e){let r=i(t),n=r.properties?.[e];if(!n)throw Error(`Strategy definition ${t.id} is missing ${e} schema.`);return n}function a(t){let e=t.type;return Array.isArray(e)?e.find(t=>"null"!==t)??"string":"string"==typeof e?e:t.enum?"string":t.properties?"object":"string"}function o(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}function s(t,e){let r=t;for(let t of e){if(Array.isArray(r)){let e=g(t);if(null===e||e>=r.length)return;r=r[e];continue}if(!o(r))return;r=r[t]}return r}function l(t,e,r){if(0===e.length){if(!o(r))throw Error("Root config must be an object.");return r}return function t(e,r,i){if(0===r.length){if(void 0===i)throw Error("Cannot replace a config node with undefined.");return i}let[n,...a]=r;if(!n)throw Error("Config path segment must not be empty.");if(Array.isArray(e)){let r=g(n);if(null===r)throw Error(`Expected array index path segment, got "${n}".`);let o=e.slice();if(0===a.length){if(void 0===i)return r<o.length&&o.splice(r,1),o;for(;o.length<=r;)o.push(null);return o[r]=i,o}let s=c(o[r],a[0]);for(;o.length<=r;)o.push(null);return o[r]=t(s,a,i),o}if(!o(e))return t(c(void 0,n),r,i);let s={...e};return 0===a.length?void 0===i?delete s[n]:s[n]=i:s[n]=t(c(s[n],a[0]),a,i),s}(t,e,r)}function g(t){if(!/^\d+$/.test(t))return null;let e=Number(t);return Number.isInteger(e)&&e>=0?e:null}function c(t,e){return Array.isArray(t)||o(t)?t:null!==g(e??"")?[]:{}}t.s(["collectUnsupportedSchemaNodes",0,function t(e,r="config"){let i=a(e),n=new Set(["object","array","string","number","integer","boolean"]).has(i)?[]:[`${r} uses unsupported schema type "${i}"`];for(let[i,a]of Object.entries(e.properties??{}))n.push(...t(a,`${r}.${i}`));return e.items&&n.push(...t(e.items,`${r}[]`)),n},"collectUnsupportedUiWidgets",0,function t(e,i="uiSchema"){if(!o(e))return[];let n=[],a=e.widget;for(let[s,l]of("string"!=typeof a||r.has(a)||n.push(`${i}.widget uses unsupported widget "${a}"`),Object.entries(e)))(o(l)||Array.isArray(l))&&n.push(...t(l,`${i}.${s}`));return n},"getConfigValueAtPath",0,s,"isPlainRecord",0,o,"isRunningStrategyConfigKey",0,function(t){return!!(t&&("decisionLogic"===t||t.includes("DecisionLogic")))},"readConfigBranchSchema",0,n,"readSchemaAdditionalProperty",0,function(t,e){let r=t?.additionalProperties;if(!(!r||"object"!=typeof r||Array.isArray(r)))return r.properties?.[e]},"readSchemaArrayItemProperty",0,function(t,e){return t?.items?.properties?.[e]},"readSchemaProperty",0,function(t,e){return t?.properties?.[e]},"readStrategyConfigSchema",0,i,"resolveSchemaType",0,a,"setConfigValueAtPath",0,l],242754);var d=t.i(325680);let u=new Set(["smart_dca","smart_dca_grid","smart_future_combo","smart_split_combo","fast_move_tracker"]),m=new Set(["smart_future_combo","smart_split_combo"]),y=["strategy","rebate"],_=new Set(["better_limit","worse_market"]),f=["strategy","openCondition","indicator"],h="equityPnl",p=["strategy","selection","equityPnlTr
1igger"],b=new Set(["strategy.selection.startTime","strategy.selection.updateInterval"]),v=new Set(["strategy.entry.mode","strategy.entry.confirmationOrderType","strategy.stopLoss.mode","strategy.swing.detector"]);function S(t){return!!A(t)?.selection}function w(t){let e=A(t);return!!(e?.sideSelections&&!e.selectionGroups)}function P(t){let e=A(t);return!!(e?.longDecisionLogic&&e.shortDecisionLogic)}function k(t,e){return!(t.length<=e.length)&&e.every((e,r)=>t[r]===e)}function T(t,e){let r=s(t,e);return"string"==typeof r?r.trim():""}function A(t){if(t?.configSchema)try{return n(t,"strategy").properties}catch{return}}t.s(["applySubscriptionTierConstraints",0,function({definition:t,schema:e,path:r,config:i,subscriptionTier:n}){var a;return t&&u.has(t.id)&&("strategy.selection.topN"===(a=r).join(".")||4===a.length&&"strategy"===a[0]&&"sideSelections"===a[1]&&"topN"===a[3])?{...e,maximum:function({config:t,path:e,subscriptionTier:r}){let i=(0,d.smartRotationTopNLimit)(r);if("strategy.selection.topN"===e.join("."))return i;let n=function(t,e){let r=s(t,["strategy","sideSelections",e]);if(!o(r)||!1===r.enabled)return 0;let i=r.topN;return"number"==typeof i&&Number.isFinite(i)?Math.max(0,Math.trunc(i)):0}(t,"long"===e[2]?"short":"long");return 0===n?i:Math.max(1,Math.min(d.SMART_ROTATION_FREE_TOP_N_LIMIT,i-n))}({config:i,path:r,subscriptionTier:n})}:e},"hasDcaSideDecisionLogicPair",0,P,"hasNativeStrategySideSelections",0,w,"hasSmartDcaSelection",0,S,"isFibStrategyFieldHidden",0,function({definition:t,path:r,config:i}){if(!(0,e.isFibStrategyDefinitionId)(t?.id))return!1;let n=r.join(".");if("strategy.decisionLogic"===n||k(r,["strategy","decisionLogic"])||"strategy.profile"===n||v.has(n))return!0;let a="fib_extension_uniform"===T(i,["strategy","takeProfit","mode"])?"fib_extension_uniform":"multi_leg_r";if("strategy.takeProfit.legs"===n)return"multi_leg_r"!==a;if("strategy.takeProfit.extension"===n)return"fib_extension_uniform"!==a;if("strategy.directions.allowUngatedShort"===n){let t=!0===s(i,["strategy","directions","short"]),e=!0===s(i,["strategy","directions","shortBearGate"]);return!(t&&!e)}return"strategy.management.timeout.maxHoldBars"===n?!0!==s(i,["strategy","management","timeout","enabled"]):"strategy.management.trailing.atrLength"===n?!0!==s(i,["strategy","management","trailing","enabled"]):!!k(r,["strategy","circuitBreaker"])&&"enabled"!==r[r.length-1]&&!0!==s(i,["strategy","circuitBreaker","enabled"])},"isPassivbotStrategyFieldHidden",0,function({definition:t,path:r,config:i}){if(!(0,e.isPassivbotStrategyDefinitionId)(t?.id)||r.length<2||"strategy"!==r[0])return!1;if("symbol_selection"===r[1])return!0;let n=r[1];if("long"!==n&&"short"!==n)return!1;let a=s(i,["strategy",n,"n_positions"]);if(0===a||"0"===a)return!0;if(2===r.length)return!1;let o=r[2];if("risk_wel_enforcer_threshold"===o)return!0!==s(i,["strategy",n,"risk_wel_enforcer_enabled"]);if("risk_twel_enforcer_policy"===o)return!0!==s(i,["strategy",n,"risk_twel_enforcer_enabled"]);if("risk_twel_enforcer_threshold"===o){let t=s(i,["strategy",n,"risk_twel_enforcer_enabled"]),e=s(i,["strategy",n,"risk_twel_entry_gate_enabled"]);return!0!==t&&!0!==e}if("unstuck_close_pct"===o||"unstuck_loss_allowance_pct"===o||"unstuck_threshold"===o||"unstuck_ema_gating_enabled"===o||"unstuck_ema_dist"===o){if(!0!==s(i,["strategy",n,"unstuck_enabled"]))return!0;if("unstuck_ema_dist"===o)return!0!==s(i,["strategy",n,"unstuck_ema_gating_enabled"])}return r.length>=5&&"trailing_martingale"===r[2]&&"entry"===r[3]&&"initial_ema_dist"===r[4]&&"disabled"===s(i,["strategy",n,"trailing_martingale","entry","ema_gate_mode"])},"isRebateCopyTradingRebateFieldHidden",0,function({definition:t,path:r}){return t?.id===e.REBATE_COPY_TRADING_DEFINITION_ID&&(r.join(".")===y.join(".")||k(r,y))},"isSmartComboManualComboItemsPath",0,function(t,e){return!!(t&&m.has(t.id))&&2===e.length&&"strategy"===e[0]&&"comboItems"===e[1]},"isSmartDcaSymbolsPath",0,function(t,e){return 2===e.length&&"strategy"===e[0]&&"symbols"===e[1]&&P(t)&&S(t)},"isSmartRotationTriggerFieldHidden",0,function({definition:t,path:e,config:r}){if(!t||!u.has(t.id))return!1;let i=e.join("."),n=i===p.join(".")||k(e,p),a=b.has(i);if(!n&&!a)return!1;let o=(T(r,["strategy","selection","triggerMode"])===h?h:"time")===h;return n?!o:o},"isSnowballOpenConditionFieldHidden",0,function({path:t,config:e}){let r=t.join("."),i=T(e,["strategy","openCondition","mode"]);if("strategy.openCondition.price"===r)return!_.has(i);if("strategy.openCondition.indicator"===r)return"indicator"!==i;if(!k(t,f))return!1;let n=t[t.length-1],a=T(e,[...f,"type"]);return"type"!==n&&(!a||"rsi"===a&&("channelLength"===n||"averageLength"===n||"cross"===n)||"wave_trend"===a&&"rsiPeriod"===n)}],167606);
1let z={"strategy.profile":"default","strategy.timeframe":"4h","strategy.fibSourceTimeframe":"auto","strategy.decisionLogic.id":"atlas-v12","strategy.directions.long":!0,"strategy.directions.short":!1,"strategy.directions.shortBearGate":!0,"strategy.directions.allowUngatedShort":!1,"strategy.fib.levels":[.618,.66],"strategy.fib.force382WhenStrongTrend":!1,"strategy.entry.mode":"immediate","strategy.entry.confirmationOrderType":"market","strategy.entry.limitOrderTtlBars":100,"strategy.stopLoss.mode":"between_fib","strategy.stopLoss.slRatio":.4,"strategy.stopLoss.minRiskPct":.05,"strategy.stopLoss.maxDistancePct":15,"strategy.takeProfit.mode":"multi_leg_r","strategy.takeProfit.legs":[{r:1,reducePct:25},{r:1.618,reducePct:25},{r:2.618,reducePct:25},{r:4.236,reducePct:25}],"strategy.takeProfit.extension":1.618,"strategy.risk.riskPerTradePct":1,"strategy.risk.maxConcurrentLegsPerSymbol":2,"strategy.risk.maxSymbolRiskPct":2,"strategy.swing.detector":"atr_zigzag_v1","strategy.swing.atrLength":14,"strategy.swing.atrMultiplier":1.5,"strategy.swing.pivotLookback":2,"strategy.swing.maxSwingAgeBars":120,"strategy.filters.minScoreGate":0,"strategy.filters.useAutoScoreThreshold":!1,"strategy.filters.extremeVolAtrMultiple":3,"strategy.filters.trendFilter":!1,"strategy.filters.htfFilter":!1,"strategy.management.breakEven.enabled":!1,"strategy.management.trailing.enabled":!1,"strategy.management.trailing.atrLength":14,"strategy.management.earlyExit.enabled":!1,"strategy.management.timeout.enabled":!0,"strategy.management.timeout.maxHoldBars":100,"strategy.circuitBreaker.enabled":!0,"strategy.circuitBreaker.maxConsecutiveLosses":5,"strategy.circuitBreaker.consecutiveLossPauseBars":120,"strategy.circuitBreaker.maxDrawdownPct":10,"strategy.circuitBreaker.drawdownPauseBars":120},x={"strategy.long.n_positions":1,"strategy.long.wallet_exposure_limit":1,"strategy.long.total_wallet_exposure_limit":1,"strategy.long.risk_entry_cooldown_minutes":0,"strategy.long.risk_wel_enforcer_enabled":!1,"strategy.long.risk_wel_enforcer_threshold":1,"strategy.long.risk_twel_entry_gate_enabled":!1,"strategy.long.risk_twel_enforcer_enabled":!1,"strategy.long.risk_twel_enforcer_policy":"reduce_overweight","strategy.long.risk_twel_enforcer_threshold":1,"strategy.long.risk_we_excess_allowance_pct":0,"strategy.long.risk_we_excess_allowance_mode":"bounded","strategy.long.unstuck_enabled":!1,"strategy.long.unstuck_ema_gating_enabled":!1,"strategy.long.unstuck_close_pct":.05,"strategy.long.unstuck_ema_dist":0,"strategy.long.unstuck_loss_allowance_pct":.01,"strategy.long.unstuck_threshold":.5,"strategy.long.trailing_martingale.ema_span_0":34,"strategy.long.trailing_martingale.ema_span_1":72,"strategy.long.trailing_martingale.volatility_ema_span_1h":120,"strategy.long.trailing_martingale.volatility_ema_span_1m":60,"strategy.long.trailing_martingale.entry.double_down_factor":1,"strategy.long.trailing_martingale.entry.ema_gate_mode":"disabled","strategy.long.trailing_martingale.entry.initial_ema_dist":.005,"strategy.long.trailing_martingale.entry.initial_qty_pct":.05,"strategy.long.trailing_martingale.entry.retracement_base_pct":.005,"strategy.long.trailing_martingale.entry.retracement_volatility_1h_weight":0,"strategy.long.trailing_martingale.entry.retracement_volatility_1m_weight":0,"strategy.long.trailing_martingale.entry.retracement_we_weight":0,"strategy.long.trailing_martingale.entry.threshold_base_pct":.01,"strategy.long.trailing_martingale.entry.threshold_volatility_1h_weight":0,"strategy.long.trailing_martingale.entry.threshold_volatility_1m_weight":0,"strategy.long.trailing_martingale.entry.threshold_we_weight":0,"strategy.long.trailing_martingale.close.qty_pct":1,"strategy.long.trailing_martingale.close.retracement_base_pct":.005,"strategy.long.trailing_martingale.close.retracement_volatility_1h_weight":0,"strategy.long.trailing_martingale.close.retracement_volatility_1m_weight":0,"strategy.long.trailing_martingale.close.threshold_base_pct":.01,"strategy.long.trailing_martingale.close.threshold_volatility_1h_weight":0,"strategy.long.trailing_martingale.close.threshold_volatility_1m_weight":0,"strategy.long.trailing_martingale.close.threshold_we_weight":0,"strategy.short.n_positions":0,"strategy.short.wallet_exposure_limit":1,"strategy.short.total_wallet_exposure_limit":1,"strategy.short.risk_entry_cooldown_minutes":0,"strategy.short.risk_wel_enforcer_enabled":!1,"strategy.short.risk_wel_enforcer_threshold":1,"strategy.short.risk_twel_entry_gate_enabled":!1,"strategy.short.risk_twel_enforcer_enabled":!1,"strategy.short.risk_twel_enforcer_policy":"reduce_overweight","strategy.short.risk_twel_enforcer_threshold":1,"strategy.short.risk_we_excess_allowance_pct":0,"strategy.short.risk_we_excess_allowance_mode":"bounded","strategy.short.unstuck_enabled":!1,"strategy.short.unstuck_ema_gating_enabled":!1,"strategy.short.unstuck_close_pct":.05,"strategy.short.unstuck_ema_dist":0,"strategy.short.unstuck_loss_allowance_pct":.01,"strategy.short.unstuck_threshold":.5,"strategy.short.trailing_martingale.ema_span_0":34,"strategy.short.trailing_martingale.ema_span_1":72,"strategy.short.trailing_martingale.volatility_ema_span_1h":120,"strategy.short.trailing_martingale.volatility_ema_span_1m":60,"strategy.short.trailing_martingale.entry.double_down_factor":1,"strategy.short.trailing_martingale.entry.ema_gate_mode":"disabled","strategy.short.trailing_martingale.entry.initial_ema_dist":.005,"strategy.short.trailing_martingale.entry.initial_qty_pct":.05,"strategy.short.trailing_martingale.entry.retracement_base_pct":.005,"strategy.short.trailing_martingale.entry.retracement_volatility_1h_weight":0,"strategy.short.trailing_martingale.entry.retracement_volatility_1m_weight":0,"strategy.short.trailing_martingale.entry.retracement_we_weight":0,"strategy.short.trailing_martingale.entry.threshold_base_pct":.01,"strategy.short.trailing_martingale.entry.threshold_volatility_1h_weight":0,"strategy.short.trailing_martingale.entry.threshold_volatility_1m_weight":0,"strategy.short.trailing_martingale.entry.threshold_we_weight":0,"strategy.short.trailing_martingale.close.qty_pct":1,"strategy.short.trailing_martingale.close.retracement_base_pct":.005,"strategy.short.trailing_martingale.close.retracement_volatility_1h_weight":0,"strategy.short.trailing_martingale.close.retracement_volatility_1m_weight":0,"strategy.short.trailing_martingale.close.threshold_base_pct":.01,"strategy.short.trailing_martingale.close.threshold_volatility_1h_weight":0,"strategy.short.trailing_martingale.close.threshold_volatility_1m_weight":0,"strategy.short.trailing_martingale.close.threshold_we_weight":0},L=[["strategy","openCondition","mode"],["strategy","longDecisionLogic","timeframe"],["strategy","shortDecisionLogic","timeframe"],["strategy","selection","triggerMode"],["strategy","selection","updateInterval"],["strategy","selection","sortBy"],["strategy","selection","topN"],["strategy","sideSelections","long","enabled"],["strategy","sideSelections","long","sortBy"],["strategy","sideSelections","long","topN"],["strategy","sideSelections","short","enabled"],["strategy","sideSelections","short","sortBy"],["strategy","sideSelections","short","topN"],["strategy","maxPositions"],["strategy","disableStopLossBlacklist"],["strategy","profile"],["strategy","timeframe"],["strategy","fibSourceTimeframe"],["strategy","decisionLogic","id"],["strategy","directions","long"],["strategy","directions","short"],["strategy","directions","shortBearGate"],["strategy","directions","allowUngatedShort"],["strategy","fib","levels"],["strategy","fib","force382WhenStrongTrend"],["strategy","entry","mode"],["strategy","entry","confirmationOrderType"],["strategy","entry","limitOrderTtlBars"],["strategy","stopLoss","mode"],["strategy","stopLoss","slRatio"],["strategy","stopLoss","minRiskPct"],["strategy","stopLoss","maxDistancePct"],["strategy","takeProfit","mode"],["strategy","takeProfit","legs"],["strategy","takeProfit","extension"],["strategy","risk","riskPerTradePct"],["strategy","risk","maxConcurrentLegsPerSymbol"],["strategy","risk","maxSymbolRiskPct"],["strategy","swing","detector"],["strategy","swing","atrLength"],["strategy","swing","atrMultiplier"],["strategy","swing","pivotLookback"],["strategy","swing","maxSwingAgeBars"],["strategy","filters","minScoreGate"],["strategy","filters","useAutoScoreThreshold"],["strategy","filters","extremeVolAtrMultiple"],["strategy","filters","trendFilter"],["strategy","filters","htfFilter"],["strategy","management","breakEven","enabled"],["strategy","management","trailing","enabled"],["strategy","management","trailing","atrLength"],["strategy","management","earlyExit","enabled"],["strategy","management","timeout","enabled"],["strategy","management","timeout","maxHoldBars"],["strategy","circuitBreaker","enabled"],["strategy","circuitBreaker","maxConsecutiveLosses"],["strategy","circuitBreaker","consecutiveLossPauseBars"],["strategy","circuitBreaker","maxDrawdownPct"],["strategy","circuitBreaker","drawdownPauseBars"],...Object.keys(x).map(t=>t.split(".")),["common","execution","leverage"],["common","orderExecution","priceBufferPercent"]];function D(t){if(void 0!==t.default)return I(t.default);let e=a(t);return"object"===e?function(t){let e={};for(let[r,i]of Object.entries(t.properties??{}))(t.required?.includes(r)||void 0!==i.default)&&(e[r]=D(i));return e}(t):"array"===e?[]:"boolean"!==e&&""}function C({definition:t,schema:e,path:r}){if(void 0!==e.default)return e;let i=j(t,r);return void 0===i?e:{...e,default:i}}function O(t,e){let r=e;for(let e of L){if(!function({definition:t,config:e,path:r}){let i=s(e,r);return!(void 0!==i&&""!==i&&!(Array.isArray(i)&&0===i.length)||!R(t,r)||function(t,e){let r=e.join(".");return w(t)&&("strategy.selection.sortBy"===r||"strategy.selection.topN"===r)}(t,r))&&("strategy"!==r[0]||"longDecisionLogic"!==r[1]&&"shortDecisionLogic"!==r[1]||void 0!==s(e,r.slice(0,2)))}({definition:t,config:r,path:e}))continue;let i=j(t,e);void 0!==i&&(r=l(r,e,I(i)))}return r}function R(t,e){let r=i(t);for(let t of e)if(!(r=r?.properties?.[t]))return;return r}let N=["common.riskControl.position.trailingStopLoss","common.sltp.singlePositionTrailingSL"],F={mode:"price","activation.value":10,callbackPercent:1,maType:"sma",bollPeriod:20,bollStdDev:2,bollBand:"middle"};function j(t,r){let i=r.join(".");if((0,e.isFibStrategyDefinitionId)(t?.id)){let t=z[i];if(void 0!==t)return I(t)}if((0,e.isPassivbotStrategyDefinitionId)(t?.id)){let t=x[i];if(void 0!==t)return I(t)}if("strategy.openCondition.mode"===i&&B(t,r,"immediate"))return"immediate";if("strategy.openCondition.indicator.timeframe"===i&&B(t,r,"1m")||"strategy"===r[0]&&3===r.length&&("longDecisionLogic"===r[1]||"shortDecisionLogic"===r[1])&&"timeframe"===r[2])return"1m";if("strategy.selection.triggerMode"===i)return"time";if("strategy.selection.updateInterval"===i){var n=t,a=r;if(n){let t=R(n,a);if(t?.default!==void 0&&null!==t.default&&""!==String(t.default)&&(!t.enum||t.enum.some(e=>String(e)===String(t.default))))return String(t.default)}for(let t of E)if(B(n,a,t))return t;if(n){let t=R(n,a),e=t?.enum?.[0];if(null!=e&&""!==String(e))return String(e)}return"8h"}if("strategy.selection.sortBy"===i)return"losers";if("strategy.selection.topN"===i)return 10;
1if("strategy.sideSelections.long.enabled"===i)return!0;if("strategy.sideSelections.long.sortBy"===i)return"gainers";if("strategy.sideSelections.long.topN"===i)return 5;if("strategy.sideSelections.short.enabled"===i)return!0;if("strategy.sideSelections.short.sortBy"===i)return"losers";if("strategy.sideSelections.short.topN"===i)return 5;if("strategy.maxPositions"===i&&S(t))return 10;if("strategy.disableStopLossBlacklist"===i)return!0;if("common.execution.leverage"===i){if(t?.id==="moving_average_breakout")return;return 5}if("common.orderExecution.priceBufferPercent"===i)return .5;let o=function(t){for(let e of N)if(t.startsWith(`${e}.`))return F[t.slice(e.length+1)]}(i);if(void 0!==o)return I(o)}function B(t,e,r){if(!t)return!1;try{let i=R(t,e);return!!i?.enum?.some(t=>String(t)===r)}catch{return!1}}let E=["8h","1m","1h","10m","12h","24h"];function I(t){return"function"==typeof structuredClone?structuredClone(t):JSON.parse(JSON.stringify(t))}t.s(["PASSIVBOT_UI_DEFAULTS",0,x,"applyInitialUiDefaults",0,O,"applyUiDefaultValue",0,C,"createConfigSkeleton",0,D,"createTraderConfigSkeleton",0,function(t){let r=D(i(t));if(!o(r))throw Error(`Strategy definition ${t.id} config schema must produce an object.`);return O(t,function(t,r){let i=n(t,"strategy");if((0,e.isFibStrategyDefinitionId)(t.id)){let t=o(r.strategy)?{...r.strategy}:{},e=o(t.decisionLogic)?{...t.decisionLogic}:{};return(void 0===e.id||""===e.id)&&(e.id="atlas-v12"),t.decisionLogic=e,{...r,strategy:t}}if(!i.properties?.longDecisionLogic||!i.properties.shortDecisionLogic||i.properties.selection)return r;let a=o(r.strategy)?{...r.strategy}:{};return void 0===a.longDecisionLogic&&(a.longDecisionLogic={}),void 0===a.shortDecisionLogic&&(a.shortDecisionLogic={}),{...r,strategy:a}}(t,r))},"fillMissingConfigFromSchema",0,function t({definition:e,schema:r,path:i,value:n}){let s=C({definition:e,schema:r,path:i});if((void 0===n||""===n)&&void 0!==s.default)return I(s.default);if("object"!==a(s))return n;let l=o(n)?n:{},g={...l};for(let[r,n]of Object.entries(s.properties??{})){let a=t({definition:e,schema:n,path:[...i,r],value:l[r]});void 0===a?delete g[r]:g[r]=a}return g}],657703),t.s(["movingAverageAmountSchema",0,function(t){let{definition:e,schema:r,path:i,config:n}=t;if(e?.id!=="moving_average_breakout"||"strategy.amount"!==i.join("."))return r;let a="fixed_amount"===s(n,["strategy","amountType"]),o=s(n,["strategy","symbol"]),l="string"==typeof o?o.split("/")[1]?.split(":")[0]:void 0,g=l?`(${l})`:"";return{...r,display:{...r.display,label:{"zh-CN":a?`固定金额${g}`:"权益比例(%)","en-US":a?`Fixed notional${l?` (${l})`:""}`:"Account equity (%)"},description:{"zh-CN":a?"每次新开仓使用的名义金额,杠杆不再次放大金额。":"每次新开仓按账户实时权益计算,允许超过 100%;持仓期间不自动调仓。","en-US":a?"Entry notional; leverage does not multiply this amount.":"Entry size as a percentage of current equity. May exceed 100%; existing positions are not rebalanced."}}}}],360514)},338212,t=>{"use strict";t.s(["DCA_FIRST_ORDER_AMOUNT_TYPE_FIXED_AMOUNT",()=>i,"DEFAULT_DCA_FIRST_ORDER_EQUITY_PERCENT",()=>n,"normalizeDcaFirstOrderAmountConfig",()=>o,"readDcaFirstOrderAmountType",()=>s]),t.i(667561);var e=t.i(242754);let r="equityPercent",i="fixedAmount",n=2,a=["decisionLogic","longDecisionLogic","shortDecisionLogic"];function o(t){let o=t.strategy;if(!(0,e.isPlainRecord)(o))return t;let s=t;for(let t of a){let a=o[t];if(!(0,e.isPlainRecord)(a)||!(0,e.isPlainRecord)(a.params))continue;let c=function(t){let e=void 0!==t.firstOrderAmountType,a=void 0!==t.firstOrderAmount,o=void 0!==t.initialMarginPercent,s=void 0!==t.fixedInitialNotional,c={...t};if(delete c.initialMarginPercent,delete c.fixedInitialNotional,e||a){if(e||(c.firstOrderAmountType=r),!a){let e=function(t){let e=l(t.fixedInitialNotional);return void 0!==e?e:void 0!==t.initialMarginPercent?g(t.initialMarginPercent)??n:void 0}(t);void 0!==e&&(c.firstOrderAmount=e)}return c}if(!s&&!o)return c;let d=l(t.fixedInitialNotional);return void 0!==d?(c.firstOrderAmountType=i,c.firstOrderAmount=d):(c.firstOrderAmountType=r,c.firstOrderAmount=g(t.initialMarginPercent)??n),c}(a.params);s=(0,e.setConfigValueAtPath)(s,["strategy",t,"params"],c)}return s}function s(t,n){return(0,e.getConfigValueAtPath)(t,[...n,"firstOrderAmountType"])===i?i:r}function l(t){let e=g(t);return void 0!==e&&e>0?e:void 0}function g(t){return"number"==typeof t&&Number.isFinite(t)?t:void 0}},667561,360973,t=>{"use strict";t.s([],667561);var e=t.i(657703);t.s(["resolveStrategyConfigFieldSchema",()=>d],360973);var r=t.i(360514),i=t.i(338212),n=t.i(242754),a=t.i(167606);let o={type:"object",properties:{},hidden:!0},s=["firstOrderAmountType","firstOrderAmount","addDropPercent","addTriggerMode","addTriggerAtr","atrPeriod","addPriceGapMultiplier","addMultiplier","maxAdds","takeProfitPercent","trailingTakeProfitPercent","stopLossValue"],l={"basic-dual":s,"simple-long":s,"simple-short":s,"simple-rsi-dip":["rsiPeriod","rsiThreshold",...s],"rsi-long":["rsiPeriod","rsiThreshold",...s],"rsi-short":["rsiPeriod","rsiThreshold",...s],"rsi-both":["rsiPeriod","longRsiThreshold","shortRsiThreshold",...s],"rsi-one-shot":["rsiPeriod","longRsiThreshold","shortRsiThreshold","firstOrderAmountType","firstOrderAmount","takeProfitPercent","trailingTakeProfitPercent","stopLossValue","stopLossPercent"],"rsi-trend-filter":["rsiPeriod","lowerThreshold","upperThreshold",...s],"wave-trends-long":["channelLength","averageLength","osLevel1",...s],"wave-trends-short":["channelLength","averageLength","obLevel1",...s],"wave-trends-both":["channelLength","averageLength","osLevel1","obLevel1",...s]};function g(t){if(t.length<3||"strategy"!==t[0]||"params"!==t[t.length-1])return!1;let e=t[t.length-2];return!!(e&&("decisionLogic"===e||e.includes("DecisionLogic")))}function c(t,e){let[r,i]=e;if(!r||!i)return;let a=(0,n.getConfigValueAtPath)(t,[r,i,"id"]);return"string"==typeof a&&a.trim()?a.trim():void 0}function d({definition:t,schema:s,path:u,config:m,subscriptionTier:y}){if((0,a.isSmartComboManualComboItemsPath)(t,u)||(0,a.isSmartDcaSymbolsPath)(t,u)||(0,a.isRebateCopyTradingRebateFieldHidden)({definition:t,path:u})||2===u.length&&"strategy"===u[0]&&("fixedNotional"===u[1]&&"fixed_notional"!==(0,n.getConfigValueAtPath)(m,["strategy","positionFollowMode"])||"syncPositionsOnTrade"===u[1]&&"fixed_notional"===(0,n.getConfigValueAtPath)(m,["strategy","positionFollowMode"]))||2===u.length&&"strategy"===u[0]&&("fixedNotional"===u[1]&&"fixed_notional"!==(0,n.getConfigValueAtPath)(m,["strategy","positionFollowMode"])||"syncPositionsOnTrade"===u[1]&&"fixed_notional"===(0,n.getConfigValueAtPath)(m,["strategy","positionFollowMode"]))||
1(0,a.isFibStrategyFieldHidden)({definition:t,path:u,config:m})||(0,a.isPassivbotStrategyFieldHidden)({definition:t,path:u,config:m})||(0,a.isSnowballOpenConditionFieldHidden)({path:u,config:m})||(0,a.isSmartRotationTriggerFieldHidden)({definition:t,path:u,config:m}))return{...s,hidden:!0};if(3===u.length&&"strategy"===u[0]&&"params"===u[2]&&("longDecisionLogic"===u[1]||"shortDecisionLogic"===u[1])&&(0,a.hasDcaSideDecisionLogicPair)(t))return function({sourceSchema:t,decisionLogicId:e}){if(!e)return o;let r=l[e];if(!r)return t;let i=t.properties??{},a=t["x-alphafox-decisionLogicDefaults"]?.[e],s={};for(let t of r){let e=i[t];if(!e)continue;let r=(0,n.isPlainRecord)(a)?a[t]:void 0;s[t]=void 0===r?e:{...e,default:r}}return{...t,properties:s}}({sourceSchema:s,decisionLogicId:c(m,u)});if(g(u)&&!c(m,u)||g(u)&&0===Object.keys(s.properties??{}).length)return{...s,type:"object",properties:{},hidden:!0};let _=function({schema:t,path:e}){return"strategy.maxPositions"!==e.join(".")?t:{...t,minimum:1,maximum:20}}({schema:function({schema:t,path:e,config:r}){var a,o;if("strategy"===(a=e)[0]&&"firstOrderAmount"===a[a.length-1]&&(0,n.isRunningStrategyConfigKey)(a[a.length-3])){let n=(0,i.readDcaFirstOrderAmountType)(r,e.slice(0,-1))===i.DCA_FIRST_ORDER_AMOUNT_TYPE_FIXED_AMOUNT;return{...t,default:n?void 0:t.default,display:{...t.display,label:{"en-US":n?"First order size":"First order equity %","zh-CN":n?"首单固定金额":"首单权益%"},description:{"en-US":n?"Fixed notional used for the first entry.":"Percent of account equity used for the first entry.","zh-CN":n?"首单直接使用该固定金额。":"首单使用账户权益的该百分比。"}}}}return"strategy"===(o=e)[0]&&"addTriggerMode"===o[o.length-1]&&(0,n.isRunningStrategyConfigKey)(o[o.length-3])?{...t,display:{...t.display,options:{...t.display?.options,atr:{...t.display?.options?.atr,label:{...t.display?.options?.atr?.label,"en-US":"ATR","zh-CN":"ATR"}}}}}:"strategy.takeProfit.mode"===e.join(".")?{...t,display:{...t.display,options:{...t.display?.options,multi_leg_r:{...t.display?.options?.multi_leg_r,label:{...t.display?.options?.multi_leg_r?.label,"en-US":"Multi-leg R","zh-CN":"分批 R 止盈"}},fib_extension_uniform:{...t.display?.options?.fib_extension_uniform,label:{...t.display?.options?.fib_extension_uniform?.label,"en-US":"Fib extension","zh-CN":"统一 Fib 扩展"}}}}}:t}({schema:(0,r.movingAverageAmountSchema)({definition:t,schema:(0,e.applyUiDefaultValue)({definition:t,schema:s,path:u}),path:u,config:m}),path:u,config:m}),path:u});return(0,a.applySubscriptionTierConstraints)({definition:t,schema:_,path:u,config:m,subscriptionTier:y})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.