已更新
CryptonianEWRuntime

Library "CryptonianEWRuntime"
Cryptonian Elliott Wave Runtime /1. Owns adaptive MTF profile selection, compact context/bridge request expressions, lower-timeframe confirmation processing, MTF trade gates, bottom-up bootstrap assembly, Context EW forecast assembly, HTF trade-bridge request expressions, nested-pivot request expressions, production gates and final engine-state packing. Methodology is preserved from Elliott Wave Engine 11.8b2; this library is an architecture migration, not a rules rewrite.
autoContextTimeframe(chartSeconds)
Parameters:
chartSeconds (int)
autoConfirmationTimeframe(chartSeconds)
Parameters:
chartSeconds (int)
autoBridgeTimeframe(chartSeconds)
Parameters:
chartSeconds (int)
profileState(enabled, autoProfile, manualContextTimeframe, manualExecutionTimeframe, manualConfirmationTimeframe, chartTimeframe, chartSeconds)
Builds the timeframe/profile portion of Model.MtfState.
It deliberately does not perform any data request.
Parameters:
enabled (bool)
autoProfile (bool)
manualContextTimeframe (string)
manualExecutionTimeframe (string)
manualConfirmationTimeframe (string)
chartTimeframe (string)
chartSeconds (int)
bridgeTimeframe(autoProfile, manualConfirmationTimeframe, chartSeconds)
Returns the active lower bridge timeframe used by the existing
bottom-up Elliott bootstrap. This remains separate because Model /1 MtfState
intentionally stores only Context / Execution / Confirmation.
Parameters:
autoProfile (bool)
manualConfirmationTimeframe (string)
chartSeconds (int)
bridgeTimeframeValid(bridgeTf, chartSeconds)
Parameters:
bridgeTf (string)
chartSeconds (int)
contextPack(mtfPivotStrength, atrLength, mtfMinimumSwingAtr, allowDiagonals, allowTruncation, truncationMinimumPct, contextPivotStrength, contextMinimumSwingAtr, candidateStarts, minimumNewCandidateScore, extensionThreshold, diagonalTolerance, invalidationMode)
Exact 11.8b2 higher-timeframe context packet.
mtfConfirmedSnapshot() retains the old trade-context methodology while
contextConfirmedSnapshot() retains the separate Context-EW forecast geometry.
Parameters:
mtfPivotStrength (int)
atrLength (simple int)
mtfMinimumSwingAtr (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
contextPivotStrength (int)
contextMinimumSwingAtr (float)
candidateStarts (int)
minimumNewCandidateScore (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
mtfContextState(pack)
Converts ContextPack's MTF branch into the shared DegreeState contract.
Parameters:
pack (ContextPack)
contextForecastDegreeState(pack)
Converts ContextPack's full Context-EW branch into DegreeState.
Parameters:
pack (ContextPack)
bridgeDegreeState(pivotStrength, atrLength, minimumSwingAtr, candidateStarts, minimumNewScore, allowDiagonals, allowTruncation, truncationMinimumPct, extensionThreshold, diagonalTolerance, invalidationMode)
Exact lower-bridge structural expression, object form.
Parameters:
pivotStrength (int)
atrLength (simple int)
minimumSwingAtr (float)
candidateStarts (int)
minimumNewScore (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
ltfMomentumSignal(fastLength, slowLength)
Exact lower-timeframe momentum expression used by 11.8b2.
Parameters:
fastLength (simple int)
slowLength (simple int)
nestedPivotEvent(strength, atrLength)
Exact Part 9.2 lower-degree confirmed pivot event expression.
Parameters:
strength (int)
atrLength (simple int)
htfTradeBridgeState(enabled, degreeEngineOn, secondaryEnabled, subSecondaryEnabled, primaryPivotStrength, secondaryPivotStrength, subSecondaryPivotStrength, atrLength, primaryMinimumSwingAtr, secondaryMinimumSwingAtr, subSecondaryMinimumSwingAtr, candidateStarts, minimumNewScore, allowDiagonals, allowTruncation, truncationMinimumPct, extensionThreshold, diagonalTolerance, invalidationMode, minimumModelScore, stopBufferAtr)
Native HTF trade bridge request expression. Candidate discovery,
first-seen geometry freezing and W2/W3/W4/W5 classification remain in Trade /13.
Parameters:
enabled (bool)
degreeEngineOn (bool)
secondaryEnabled (bool)
subSecondaryEnabled (bool)
primaryPivotStrength (int)
secondaryPivotStrength (int)
subSecondaryPivotStrength (int)
atrLength (simple int)
primaryMinimumSwingAtr (float)
secondaryMinimumSwingAtr (float)
subSecondaryMinimumSwingAtr (float)
candidateStarts (int)
minimumNewScore (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
minimumModelScore (float)
stopBufferAtr (float)
updateMtfState(previous, enabled, autoProfile, manualContextTimeframe, manualExecutionTimeframe, manualConfirmationTimeframe, chartTimeframe, chartSeconds, gateMode, requireExecutionTimeframe, ltfConfirmationMaximumAge, realtimeBar, context, ltfSignalValues, ltfSignalTimes, primaryDirection, correctionDirection)
Updates one persistent Model.MtfState object from the current profile,
requested context packet and request.security_lower_tf() signal/time arrays.
Pass a persistent initialized object from the host, then assign the returned object
back to it on every bar. The function intentionally ignores the realtime chart
bar's final LTF intrabar, exactly as 11.8b2 did.
Parameters:
previous (MtfState type from AYEHAN/CryptonianEWModel/1)
enabled (bool)
autoProfile (bool)
manualContextTimeframe (string)
manualExecutionTimeframe (string)
manualConfirmationTimeframe (string)
chartTimeframe (string)
chartSeconds (int)
gateMode (string)
requireExecutionTimeframe (bool)
ltfConfirmationMaximumAge (int)
realtimeBar (bool)
context (ContextPack)
ltfSignalValues (array<int>)
ltfSignalTimes (array<int>)
primaryDirection (int)
correctionDirection (int)
runtimeEvents(current, previous, primaryDirection, correctionDirection)
Small event helper that replaces host history expressions with object
history applied correctly by the caller: pass current and previous Runtime states.
Parameters:
current (MtfState type from AYEHAN/CryptonianEWModel/1)
previous (MtfState type from AYEHAN/CryptonianEWModel/1)
primaryDirection (int)
correctionDirection (int)
bootstrapState(chartPrimaryMissing, bridge, context, chartClose, chartAtr)
Parameters:
chartPrimaryMissing (bool)
bridge (DegreeState type from AYEHAN/CryptonianEWModel/1)
context (DegreeState type from AYEHAN/CryptonianEWModel/1)
chartClose (float)
chartAtr (float)
contextForecastState(enabled, contextTimeframeValid, context, armScore)
Parameters:
enabled (bool)
contextTimeframeValid (bool)
context (ContextPack)
armScore (float)
processNested(eventTypes, eventPrices, eventTimes, eventAtrs, barTimes, pivotPrices, pivotTimes, pendingType, pendingPrice, pendingTime, pendingAtr, lastEventTime, coverageStartTime, coverageEndTime, minimumSwingAtr, enabled)
Parameters:
eventTypes (array<int>)
eventPrices (array<float>)
eventTimes (array<int>)
eventAtrs (array<float>)
barTimes (array<int>)
pivotPrices (array<float>)
pivotTimes (array<int>)
pendingType (int)
pendingPrice (float)
pendingTime (int)
pendingAtr (float)
lastEventTime (int)
coverageStartTime (int)
coverageEndTime (int)
minimumSwingAtr (float)
enabled (bool)
nestedLeg(pivotPrices, pivotTimes, coverageStartTime, coverageEndTime, engineOn, timeframeValid, t0, y0, t1, y1, direction, motive, diagonal, confirmed)
Parameters:
pivotPrices (array<float>)
pivotTimes (array<int>)
coverageStartTime (int)
coverageEndTime (int)
engineOn (bool)
timeframeValid (bool)
t0 (int)
y0 (float)
t1 (int)
y1 (float)
direction (int)
motive (bool)
diagonal (bool)
confirmed (bool)
structuralProductionGate(productionMode, confirmOnClose, barConfirmed)
Parameters:
productionMode (bool)
confirmOnClose (bool)
barConfirmed (bool)
tradeActivationProductionGate(productionMode, confirmOnClose, barConfirmed)
Parameters:
productionMode (bool)
confirmOnClose (bool)
barConfirmed (bool)
packEngineState(primary, secondary, subSecondary, correction, bootstrap, parent, degreeResolution, forecast, contextForecast, mtf, htfTrade, events)
Parameters:
primary (DegreeState type from AYEHAN/CryptonianEWModel/1)
secondary (DegreeState type from AYEHAN/CryptonianEWModel/1)
subSecondary (DegreeState type from AYEHAN/CryptonianEWModel/1)
correction (CorrectionState type from AYEHAN/CryptonianEWModel/1)
bootstrap (BootstrapState type from AYEHAN/CryptonianEWModel/1)
parent (ParentHypothesis type from AYEHAN/CryptonianEWModel/1)
degreeResolution (DegreeResolutionState type from AYEHAN/CryptonianEWModel/1)
forecast (ForecastState type from AYEHAN/CryptonianEWModel/1)
contextForecast (ContextForecastState type from AYEHAN/CryptonianEWModel/1)
mtf (MtfState type from AYEHAN/CryptonianEWModel/1)
htfTrade (TradeBridgePack type from AYEHAN/CryptonianEWModel/1)
events (EventState type from AYEHAN/CryptonianEWModel/1)
ContextPack
One request-safe higher-timeframe packet containing both legacy MTF
Fields:
mtfDirection (series int)
mtfStage (series int)
mtfQuality (series float)
mtfInvalidation (series float)
mtfDiagonal (series bool)
forecastDirection (series int)
forecastStage (series int)
forecastScore (series float)
forecastInvalidation (series float)
forecastDiagonal (series bool)
p0 (series float)
p1 (series float)
p2 (series float)
p3 (series float)
p4 (series float)
p5 (series float)
confirmedClose (series float)
RuntimeEvents
Small host-facing diagnostic packet for runtime transitions.
Fields:
contextChanged (series bool)
motiveGateReady (series bool)
correctionGateReady (series bool)
Cryptonian Elliott Wave Runtime /1. Owns adaptive MTF profile selection, compact context/bridge request expressions, lower-timeframe confirmation processing, MTF trade gates, bottom-up bootstrap assembly, Context EW forecast assembly, HTF trade-bridge request expressions, nested-pivot request expressions, production gates and final engine-state packing. Methodology is preserved from Elliott Wave Engine 11.8b2; this library is an architecture migration, not a rules rewrite.
autoContextTimeframe(chartSeconds)
Parameters:
chartSeconds (int)
autoConfirmationTimeframe(chartSeconds)
Parameters:
chartSeconds (int)
autoBridgeTimeframe(chartSeconds)
Parameters:
chartSeconds (int)
profileState(enabled, autoProfile, manualContextTimeframe, manualExecutionTimeframe, manualConfirmationTimeframe, chartTimeframe, chartSeconds)
Builds the timeframe/profile portion of Model.MtfState.
It deliberately does not perform any data request.
Parameters:
enabled (bool)
autoProfile (bool)
manualContextTimeframe (string)
manualExecutionTimeframe (string)
manualConfirmationTimeframe (string)
chartTimeframe (string)
chartSeconds (int)
bridgeTimeframe(autoProfile, manualConfirmationTimeframe, chartSeconds)
Returns the active lower bridge timeframe used by the existing
bottom-up Elliott bootstrap. This remains separate because Model /1 MtfState
intentionally stores only Context / Execution / Confirmation.
Parameters:
autoProfile (bool)
manualConfirmationTimeframe (string)
chartSeconds (int)
bridgeTimeframeValid(bridgeTf, chartSeconds)
Parameters:
bridgeTf (string)
chartSeconds (int)
contextPack(mtfPivotStrength, atrLength, mtfMinimumSwingAtr, allowDiagonals, allowTruncation, truncationMinimumPct, contextPivotStrength, contextMinimumSwingAtr, candidateStarts, minimumNewCandidateScore, extensionThreshold, diagonalTolerance, invalidationMode)
Exact 11.8b2 higher-timeframe context packet.
mtfConfirmedSnapshot() retains the old trade-context methodology while
contextConfirmedSnapshot() retains the separate Context-EW forecast geometry.
Parameters:
mtfPivotStrength (int)
atrLength (simple int)
mtfMinimumSwingAtr (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
contextPivotStrength (int)
contextMinimumSwingAtr (float)
candidateStarts (int)
minimumNewCandidateScore (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
mtfContextState(pack)
Converts ContextPack's MTF branch into the shared DegreeState contract.
Parameters:
pack (ContextPack)
contextForecastDegreeState(pack)
Converts ContextPack's full Context-EW branch into DegreeState.
Parameters:
pack (ContextPack)
bridgeDegreeState(pivotStrength, atrLength, minimumSwingAtr, candidateStarts, minimumNewScore, allowDiagonals, allowTruncation, truncationMinimumPct, extensionThreshold, diagonalTolerance, invalidationMode)
Exact lower-bridge structural expression, object form.
Parameters:
pivotStrength (int)
atrLength (simple int)
minimumSwingAtr (float)
candidateStarts (int)
minimumNewScore (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
ltfMomentumSignal(fastLength, slowLength)
Exact lower-timeframe momentum expression used by 11.8b2.
Parameters:
fastLength (simple int)
slowLength (simple int)
nestedPivotEvent(strength, atrLength)
Exact Part 9.2 lower-degree confirmed pivot event expression.
Parameters:
strength (int)
atrLength (simple int)
htfTradeBridgeState(enabled, degreeEngineOn, secondaryEnabled, subSecondaryEnabled, primaryPivotStrength, secondaryPivotStrength, subSecondaryPivotStrength, atrLength, primaryMinimumSwingAtr, secondaryMinimumSwingAtr, subSecondaryMinimumSwingAtr, candidateStarts, minimumNewScore, allowDiagonals, allowTruncation, truncationMinimumPct, extensionThreshold, diagonalTolerance, invalidationMode, minimumModelScore, stopBufferAtr)
Native HTF trade bridge request expression. Candidate discovery,
first-seen geometry freezing and W2/W3/W4/W5 classification remain in Trade /13.
Parameters:
enabled (bool)
degreeEngineOn (bool)
secondaryEnabled (bool)
subSecondaryEnabled (bool)
primaryPivotStrength (int)
secondaryPivotStrength (int)
subSecondaryPivotStrength (int)
atrLength (simple int)
primaryMinimumSwingAtr (float)
secondaryMinimumSwingAtr (float)
subSecondaryMinimumSwingAtr (float)
candidateStarts (int)
minimumNewScore (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
minimumModelScore (float)
stopBufferAtr (float)
updateMtfState(previous, enabled, autoProfile, manualContextTimeframe, manualExecutionTimeframe, manualConfirmationTimeframe, chartTimeframe, chartSeconds, gateMode, requireExecutionTimeframe, ltfConfirmationMaximumAge, realtimeBar, context, ltfSignalValues, ltfSignalTimes, primaryDirection, correctionDirection)
Updates one persistent Model.MtfState object from the current profile,
requested context packet and request.security_lower_tf() signal/time arrays.
Pass a persistent initialized object from the host, then assign the returned object
back to it on every bar. The function intentionally ignores the realtime chart
bar's final LTF intrabar, exactly as 11.8b2 did.
Parameters:
previous (MtfState type from AYEHAN/CryptonianEWModel/1)
enabled (bool)
autoProfile (bool)
manualContextTimeframe (string)
manualExecutionTimeframe (string)
manualConfirmationTimeframe (string)
chartTimeframe (string)
chartSeconds (int)
gateMode (string)
requireExecutionTimeframe (bool)
ltfConfirmationMaximumAge (int)
realtimeBar (bool)
context (ContextPack)
ltfSignalValues (array<int>)
ltfSignalTimes (array<int>)
primaryDirection (int)
correctionDirection (int)
runtimeEvents(current, previous, primaryDirection, correctionDirection)
Small event helper that replaces host history expressions with object
history applied correctly by the caller: pass current and previous Runtime states.
Parameters:
current (MtfState type from AYEHAN/CryptonianEWModel/1)
previous (MtfState type from AYEHAN/CryptonianEWModel/1)
primaryDirection (int)
correctionDirection (int)
bootstrapState(chartPrimaryMissing, bridge, context, chartClose, chartAtr)
Parameters:
chartPrimaryMissing (bool)
bridge (DegreeState type from AYEHAN/CryptonianEWModel/1)
context (DegreeState type from AYEHAN/CryptonianEWModel/1)
chartClose (float)
chartAtr (float)
contextForecastState(enabled, contextTimeframeValid, context, armScore)
Parameters:
enabled (bool)
contextTimeframeValid (bool)
context (ContextPack)
armScore (float)
processNested(eventTypes, eventPrices, eventTimes, eventAtrs, barTimes, pivotPrices, pivotTimes, pendingType, pendingPrice, pendingTime, pendingAtr, lastEventTime, coverageStartTime, coverageEndTime, minimumSwingAtr, enabled)
Parameters:
eventTypes (array<int>)
eventPrices (array<float>)
eventTimes (array<int>)
eventAtrs (array<float>)
barTimes (array<int>)
pivotPrices (array<float>)
pivotTimes (array<int>)
pendingType (int)
pendingPrice (float)
pendingTime (int)
pendingAtr (float)
lastEventTime (int)
coverageStartTime (int)
coverageEndTime (int)
minimumSwingAtr (float)
enabled (bool)
nestedLeg(pivotPrices, pivotTimes, coverageStartTime, coverageEndTime, engineOn, timeframeValid, t0, y0, t1, y1, direction, motive, diagonal, confirmed)
Parameters:
pivotPrices (array<float>)
pivotTimes (array<int>)
coverageStartTime (int)
coverageEndTime (int)
engineOn (bool)
timeframeValid (bool)
t0 (int)
y0 (float)
t1 (int)
y1 (float)
direction (int)
motive (bool)
diagonal (bool)
confirmed (bool)
structuralProductionGate(productionMode, confirmOnClose, barConfirmed)
Parameters:
productionMode (bool)
confirmOnClose (bool)
barConfirmed (bool)
tradeActivationProductionGate(productionMode, confirmOnClose, barConfirmed)
Parameters:
productionMode (bool)
confirmOnClose (bool)
barConfirmed (bool)
packEngineState(primary, secondary, subSecondary, correction, bootstrap, parent, degreeResolution, forecast, contextForecast, mtf, htfTrade, events)
Parameters:
primary (DegreeState type from AYEHAN/CryptonianEWModel/1)
secondary (DegreeState type from AYEHAN/CryptonianEWModel/1)
subSecondary (DegreeState type from AYEHAN/CryptonianEWModel/1)
correction (CorrectionState type from AYEHAN/CryptonianEWModel/1)
bootstrap (BootstrapState type from AYEHAN/CryptonianEWModel/1)
parent (ParentHypothesis type from AYEHAN/CryptonianEWModel/1)
degreeResolution (DegreeResolutionState type from AYEHAN/CryptonianEWModel/1)
forecast (ForecastState type from AYEHAN/CryptonianEWModel/1)
contextForecast (ContextForecastState type from AYEHAN/CryptonianEWModel/1)
mtf (MtfState type from AYEHAN/CryptonianEWModel/1)
htfTrade (TradeBridgePack type from AYEHAN/CryptonianEWModel/1)
events (EventState type from AYEHAN/CryptonianEWModel/1)
ContextPack
One request-safe higher-timeframe packet containing both legacy MTF
Fields:
mtfDirection (series int)
mtfStage (series int)
mtfQuality (series float)
mtfInvalidation (series float)
mtfDiagonal (series bool)
forecastDirection (series int)
forecastStage (series int)
forecastScore (series float)
forecastInvalidation (series float)
forecastDiagonal (series bool)
p0 (series float)
p1 (series float)
p2 (series float)
p3 (series float)
p4 (series float)
p5 (series float)
confirmedClose (series float)
RuntimeEvents
Small host-facing diagnostic packet for runtime transitions.
Fields:
contextChanged (series bool)
motiveGateReady (series bool)
correctionGateReady (series bool)
版本注释
v2Updated:
htfTradeBridgeState(enabled, degreeEngineOn, secondaryEnabled, subSecondaryEnabled, primaryPivotStrength, secondaryPivotStrength, subSecondaryPivotStrength, atrLength, primaryMinimumSwingAtr, secondaryMinimumSwingAtr, subSecondaryMinimumSwingAtr, candidateStarts, minimumNewScore, allowDiagonals, allowTruncation, truncationMinimumPct, extensionThreshold, diagonalTolerance, invalidationMode, minimumModelScore, stopBufferAtr)
Native HTF trade bridge request expression. Candidate discovery,
first-seen geometry freezing and W2/W3/W4/W5 classification remain in Trade /14.
Parameters:
enabled (bool)
degreeEngineOn (bool)
secondaryEnabled (bool)
subSecondaryEnabled (bool)
primaryPivotStrength (int)
secondaryPivotStrength (int)
subSecondaryPivotStrength (int)
atrLength (simple int)
primaryMinimumSwingAtr (float)
secondaryMinimumSwingAtr (float)
subSecondaryMinimumSwingAtr (float)
candidateStarts (int)
minimumNewScore (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
minimumModelScore (float)
stopBufferAtr (float)
版本注释
v3Updated:
htfTradeBridgeState(enabled, degreeEngineOn, secondaryEnabled, subSecondaryEnabled, primaryPivotStrength, secondaryPivotStrength, subSecondaryPivotStrength, atrLength, primaryMinimumSwingAtr, secondaryMinimumSwingAtr, subSecondaryMinimumSwingAtr, candidateStarts, minimumNewScore, allowDiagonals, allowTruncation, truncationMinimumPct, extensionThreshold, diagonalTolerance, invalidationMode, minimumModelScore, stopBufferAtr)
Native HTF trade bridge request expression. Candidate discovery,
first-seen geometry freezing and W2/W3/W4/W5 classification remain in Trade /15.
Parameters:
enabled (bool)
degreeEngineOn (bool)
secondaryEnabled (bool)
subSecondaryEnabled (bool)
primaryPivotStrength (int)
secondaryPivotStrength (int)
subSecondaryPivotStrength (int)
atrLength (simple int)
primaryMinimumSwingAtr (float)
secondaryMinimumSwingAtr (float)
subSecondaryMinimumSwingAtr (float)
candidateStarts (int)
minimumNewScore (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
minimumModelScore (float)
stopBufferAtr (float)
版本注释
v4Added:
findPivotIndex(pivotIds, wantedId)
Parameters:
pivotIds (array<int>)
wantedId (int)
findString(values, wanted)
Parameters:
values (array<string>)
wanted (string)
validatePrimary(primaryKey, primaryBaseId0, deadKeys, pivotIds, pivotPrices, pivotBars, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode)
Parameters:
primaryKey (string)
primaryBaseId0 (int)
deadKeys (array<string>)
pivotIds (array<int>)
pivotPrices (array<float>)
pivotBars (array<int>)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
shouldClearAlternate(alternateKey, alternateBaseId0, deadKeys, pivotIds, pivotPrices, pivotBars, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode)
Parameters:
alternateKey (string)
alternateBaseId0 (int)
deadKeys (array<string>)
pivotIds (array<int>)
pivotPrices (array<float>)
pivotBars (array<int>)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
buildCandidates(candidateKeys, candidateBaseId0, candidateBaseId1, candidateDirections, candidateLockedCounts, candidateScores, candidateW2Depths, candidateW3Extensions, candidateW4Depths, candidateW5Ratios, candidateInvalidations, candidateInvalidationTypes, candidateMotiveTypes, candidateExtensionTypes, candidateDiagonalShapes, candidateRule3Applicability, candidateTruncations, deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode)
Parameters:
candidateKeys (array<string>)
candidateBaseId0 (array<int>)
candidateBaseId1 (array<int>)
candidateDirections (array<int>)
candidateLockedCounts (array<int>)
candidateScores (array<float>)
candidateW2Depths (array<float>)
candidateW3Extensions (array<float>)
candidateW4Depths (array<float>)
candidateW5Ratios (array<float>)
candidateInvalidations (array<float>)
candidateInvalidationTypes (array<string>)
candidateMotiveTypes (array<string>)
candidateExtensionTypes (array<string>)
candidateDiagonalShapes (array<string>)
candidateRule3Applicability (array<bool>)
candidateTruncations (array<bool>)
deadKeys (array<string>)
pivotPrices (array<float>)
pivotBars (array<int>)
pivotIds (array<int>)
candidateStarts (int)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
selectCounts(candidateKeys, candidateBaseId0, candidateBaseId1, candidateDirections, candidateScores, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Parameters:
candidateKeys (array<string>)
candidateBaseId0 (array<int>)
candidateBaseId1 (array<int>)
candidateDirections (array<int>)
candidateScores (array<float>)
currentPrimaryKey (string)
currentPrimaryBaseId0 (int)
currentPrimaryBaseId1 (int)
currentPrimaryDirection (int)
currentScoreAtSelection (float)
switchMargin (float)
minimumNewScore (float)
PrimaryValidation
Fields:
status (series int)
lockedCount (series int)
invalidation (series float)
failure (series string)
SelectionResult
Fields:
primaryIndex (series int)
alternateIndex (series int)
primaryKey (series string)
primaryBaseId0 (series int)
primaryBaseId1 (series int)
primaryDirection (series int)
alternateKey (series string)
alternateBaseId0 (series int)
alternateBaseId1 (series int)
alternateDirection (series int)
primaryStarted (series bool)
primaryRevised (series bool)
primaryChanged (series bool)
unsupportedPrevious (series bool)
previousPrimaryKey (series string)
eventMessage (series string)
scoreAtSelection (series float)
Updated:
htfTradeBridgeState(enabled, degreeEngineOn, secondaryEnabled, subSecondaryEnabled, primaryPivotStrength, secondaryPivotStrength, subSecondaryPivotStrength, atrLength, primaryMinimumSwingAtr, secondaryMinimumSwingAtr, subSecondaryMinimumSwingAtr, candidateStarts, minimumNewScore, allowDiagonals, allowTruncation, truncationMinimumPct, extensionThreshold, diagonalTolerance, invalidationMode, minimumModelScore, stopBufferAtr)
Native HTF trade bridge request expression. Candidate discovery,
first-seen geometry freezing and W2/W3/W4/W5 classification remain in Trade /14.
Parameters:
enabled (bool)
degreeEngineOn (bool)
secondaryEnabled (bool)
subSecondaryEnabled (bool)
primaryPivotStrength (int)
secondaryPivotStrength (int)
subSecondaryPivotStrength (int)
atrLength (simple int)
primaryMinimumSwingAtr (float)
secondaryMinimumSwingAtr (float)
subSecondaryMinimumSwingAtr (float)
candidateStarts (int)
minimumNewScore (float)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinimumPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
minimumModelScore (float)
stopBufferAtr (float)
版本注释
v5版本注释
v6Added:
newCandidateArray()
candidateAt(candidates, index)
Parameters:
candidates (array<Candidate>)
index (int)
Candidate
Fields:
key (series string)
baseId0 (series int)
baseId1 (series int)
direction (series int)
lockedCount (series int)
score (series float)
w2Depth (series float)
w3Extension (series float)
w4Depth (series float)
w5Ratio (series float)
invalidation (series float)
invalidationType (series string)
motiveType (series string)
extensionType (series string)
diagonalShape (series string)
rule3Applicable (series bool)
truncated (series bool)
Updated:
buildCandidates(candidates, deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode)
Parameters:
candidates (array<Candidate>)
deadKeys (array<string>)
pivotPrices (array<float>)
pivotBars (array<int>)
pivotIds (array<int>)
candidateStarts (int)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
selectCounts(candidates, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Parameters:
candidates (array<Candidate>)
currentPrimaryKey (string)
currentPrimaryBaseId0 (int)
currentPrimaryBaseId1 (int)
currentPrimaryDirection (int)
currentScoreAtSelection (float)
switchMargin (float)
minimumNewScore (float)
版本注释
v7Added:
processCandidates(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Builds and selects candidates entirely inside Runtime.
The array<Candidate> never crosses the library boundary.
Returns selected state plus the selected Primary/Alternate Candidate objects.
Parameters:
deadKeys (array<string>)
pivotPrices (array<float>)
pivotBars (array<int>)
pivotIds (array<int>)
candidateStarts (int)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
currentPrimaryKey (string)
currentPrimaryBaseId0 (int)
currentPrimaryBaseId1 (int)
currentPrimaryDirection (int)
currentScoreAtSelection (float)
switchMargin (float)
minimumNewScore (float)
版本注释
v8Added:
processCandidateBook(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Builds, evaluates and selects Elliott candidates entirely inside Runtime.
Returns one CandidateBookResult object. No array<Candidate> crosses the import boundary.
Parameters:
deadKeys (array<string>)
pivotPrices (array<float>)
pivotBars (array<int>)
pivotIds (array<int>)
candidateStarts (int)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
currentPrimaryKey (string)
currentPrimaryBaseId0 (int)
currentPrimaryBaseId1 (int)
currentPrimaryDirection (int)
currentScoreAtSelection (float)
switchMargin (float)
minimumNewScore (float)
CandidateBookResult
Fields:
selection (SelectionResult)
primary (Candidate)
alternate (Candidate)
Removed:
processCandidates(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Builds and selects candidates entirely inside Runtime.
The array<Candidate> never crosses the library boundary.
Returns selected state plus the selected Primary/Alternate Candidate objects.
版本注释
v9Updated:
processCandidateBook(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Builds, evaluates and selects Elliott candidates entirely inside Runtime.
Returns one flat CandidateBookResult. No custom Candidate object or Candidate array
crosses the imported-library boundary.
Parameters:
deadKeys (array<string>)
pivotPrices (array<float>)
pivotBars (array<int>)
pivotIds (array<int>)
candidateStarts (int)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
currentPrimaryKey (string)
currentPrimaryBaseId0 (int)
currentPrimaryBaseId1 (int)
currentPrimaryDirection (int)
currentScoreAtSelection (float)
switchMargin (float)
minimumNewScore (float)
CandidateBookResult
Fields:
primaryIndex (series int)
alternateIndex (series int)
primaryKey (series string)
primaryBaseId0 (series int)
primaryBaseId1 (series int)
primaryDirection (series int)
primaryStarted (series bool)
primaryRevised (series bool)
primaryChanged (series bool)
unsupportedPrevious (series bool)
eventMessage (series string)
scoreAtSelection (series float)
primaryLockedCount (series int)
primaryScore (series float)
primaryW2Depth (series float)
primaryW3Extension (series float)
primaryW4Depth (series float)
primaryW5Ratio (series float)
primaryInvalidation (series float)
primaryInvalidationType (series string)
primaryMotiveType (series string)
primaryExtensionType (series string)
primaryDiagonalShape (series string)
primaryRule3Applicable (series bool)
primaryTruncated (series bool)
alternateKey (series string)
alternateBaseId0 (series int)
alternateBaseId1 (series int)
alternateDirection (series int)
alternateLockedCount (series int)
alternateScore (series float)
alternateDiagonalShape (series string)
alternateRule3Applicable (series bool)
alternateMotiveType (series string)
alternateExtensionType (series string)
Removed:
newCandidateArray()
candidateAt(candidates, index)
buildCandidates(candidates, deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode)
selectCounts(candidates, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Candidate
SelectionResult
版本注释
v10Added:
processCandidateTuple(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Parameters:
deadKeys (array<string>)
pivotPrices (array<float>)
pivotBars (array<int>)
pivotIds (array<int>)
candidateStarts (int)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
currentPrimaryKey (string)
currentPrimaryBaseId0 (int)
currentPrimaryBaseId1 (int)
currentPrimaryDirection (int)
currentScoreAtSelection (float)
switchMargin (float)
minimumNewScore (float)
Removed:
processCandidateBook(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Builds, evaluates and selects Elliott candidates entirely inside Runtime.
Returns one flat CandidateBookResult. No custom Candidate object or Candidate array
crosses the imported-library boundary.
CandidateBookResult
版本注释
v11Added:
processCandidateArrays(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Builds, evaluates and selects Elliott candidates entirely inside Runtime.
Candidate/SelectionResult UDTs remain private. The public boundary contains only
four arrays of built-in primitive types.
Parameters:
deadKeys (array<string>)
pivotPrices (array<float>)
pivotBars (array<int>)
pivotIds (array<int>)
candidateStarts (int)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
currentPrimaryKey (string)
currentPrimaryBaseId0 (int)
currentPrimaryBaseId1 (int)
currentPrimaryDirection (int)
currentScoreAtSelection (float)
switchMargin (float)
minimumNewScore (float)
Removed:
processCandidateTuple(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
版本注释
v12Added:
buildCandidates(candidateKeys, candidateBaseId0, candidateBaseId1, candidateDirections, candidateLockedCounts, candidateScores, candidateW2Depths, candidateW3Extensions, candidateW4Depths, candidateW5Ratios, candidateInvalidations, candidateInvalidationTypes, candidateMotiveTypes, candidateExtensionTypes, candidateDiagonalShapes, candidateRule3Applicability, candidateTruncations, deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode)
Parameters:
candidateKeys (array<string>)
candidateBaseId0 (array<int>)
candidateBaseId1 (array<int>)
candidateDirections (array<int>)
candidateLockedCounts (array<int>)
candidateScores (array<float>)
candidateW2Depths (array<float>)
candidateW3Extensions (array<float>)
candidateW4Depths (array<float>)
candidateW5Ratios (array<float>)
candidateInvalidations (array<float>)
candidateInvalidationTypes (array<string>)
candidateMotiveTypes (array<string>)
candidateExtensionTypes (array<string>)
candidateDiagonalShapes (array<string>)
candidateRule3Applicability (array<bool>)
candidateTruncations (array<bool>)
deadKeys (array<string>)
pivotPrices (array<float>)
pivotBars (array<int>)
pivotIds (array<int>)
candidateStarts (int)
hasPendingPivot (bool)
pendingPrice (float)
pendingBar (int)
allowDiagonals (bool)
allowTruncation (bool)
truncationMinPct (float)
extensionThreshold (float)
diagonalTolerance (float)
invalidationMode (string)
selectCounts(candidateKeys, candidateBaseId0, candidateBaseId1, candidateDirections, candidateScores, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Parameters:
candidateKeys (array<string>)
candidateBaseId0 (array<int>)
candidateBaseId1 (array<int>)
candidateDirections (array<int>)
candidateScores (array<float>)
currentPrimaryKey (string)
currentPrimaryBaseId0 (int)
currentPrimaryBaseId1 (int)
currentPrimaryDirection (int)
currentScoreAtSelection (float)
switchMargin (float)
minimumNewScore (float)
SelectionResult
Fields:
primaryIndex (series int)
alternateIndex (series int)
primaryKey (series string)
primaryBaseId0 (series int)
primaryBaseId1 (series int)
primaryDirection (series int)
alternateKey (series string)
alternateBaseId0 (series int)
alternateBaseId1 (series int)
alternateDirection (series int)
primaryStarted (series bool)
primaryRevised (series bool)
primaryChanged (series bool)
unsupportedPrevious (series bool)
previousPrimaryKey (series string)
eventMessage (series string)
scoreAtSelection (series float)
Removed:
processCandidateArrays(deadKeys, pivotPrices, pivotBars, pivotIds, candidateStarts, hasPendingPivot, pendingPrice, pendingBar, allowDiagonals, allowTruncation, truncationMinPct, extensionThreshold, diagonalTolerance, invalidationMode, currentPrimaryKey, currentPrimaryBaseId0, currentPrimaryBaseId1, currentPrimaryDirection, currentScoreAtSelection, switchMargin, minimumNewScore)
Builds, evaluates and selects Elliott candidates entirely inside Runtime.
Candidate/SelectionResult UDTs remain private. The public boundary contains only
four arrays of built-in primitive types.
版本注释
v13I Am LOVE But You Can Call Me AYEHAN
ayehan.com
discord.gg/nX3DGCyCJV
ayehan.com
discord.gg/nX3DGCyCJV
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
I Am LOVE But You Can Call Me AYEHAN
ayehan.com
discord.gg/nX3DGCyCJV
ayehan.com
discord.gg/nX3DGCyCJV
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。