CryptonianFibTypes

Library "CryptonianFibTypes"
[Cryptonian] Fibonacci shared types and lifecycle contracts. Part 0 / v0.1.0.
PUBLICATION NOTE: Pine libraries must be published to import them. Do not store secrets here.
Swing
An immutable-by-contract *confirmed* price swing. All timestamps are chart exchange milliseconds.
Fields:
id (series int): Sequential in-chart identity; never reuse within a calculation run.
fromBar (series int): Actual bar index of the older confirmed pivot, NOT the discovery bar.
toBar (series int): Actual bar index of the newer confirmed pivot, NOT the discovery bar.
confirmationBar (series int): Bar index where the newer pivot became known.
fromTime (series int): Actual timestamp of the older pivot.
toTime (series int): Actual timestamp of the newer pivot.
confirmationTime (series int): Timestamp when the structure first became confirmed.
fromPrice (series float): Price of the older pivot.
toPrice (series float): Price of the newer pivot.
direction (series Direction): Bullish low->high or bearish high->low.
status (series StructureState): State of this interpretation.
symbol (series string): Chart symbol used for its construction.
timeframe (series string): Chart timeframe used for its construction.
Zone
Persistent candidate Fibonacci region, to be populated by later modules.
Fields:
id (series int)
swingId (series int)
lowerPrice (series float)
upperPrice (series float)
leadRatio (series float)
publishedBar (series int)
publishedTime (series int)
direction (series Direction)
status (series StructureState)
Scenario
Immutable-by-contract scenario plan; modifications require a NEW scenario identity.
Fields:
id (series int)
swingId (series int)
zoneId (series int)
publishedBar (series int)
publishedTime (series int)
invalidation (series float)
target1 (series float)
target2 (series float)
direction (series Direction)
status (series ScenarioState)
Trade
Trade plan. Original levels never change; managed stop is a separate field.
Fields:
id (series int)
scenarioId (series int)
signalBar (series int)
signalTime (series int)
originalEntry (series float)
originalStop (series float)
originalTarget1 (series float)
originalTarget2 (series float)
managedStop (series float)
direction (series Direction)
status (series TradeState)
Event
Historical event record; append new events, never edit the fact of an old one.
Fields:
id (series int)
parentId (series int)
occurredBar (series int)
occurredTime (series int)
recordedPrice (series float)
kind (series EventKind)
note (series string)
[Cryptonian] Fibonacci shared types and lifecycle contracts. Part 0 / v0.1.0.
PUBLICATION NOTE: Pine libraries must be published to import them. Do not store secrets here.
Swing
An immutable-by-contract *confirmed* price swing. All timestamps are chart exchange milliseconds.
Fields:
id (series int): Sequential in-chart identity; never reuse within a calculation run.
fromBar (series int): Actual bar index of the older confirmed pivot, NOT the discovery bar.
toBar (series int): Actual bar index of the newer confirmed pivot, NOT the discovery bar.
confirmationBar (series int): Bar index where the newer pivot became known.
fromTime (series int): Actual timestamp of the older pivot.
toTime (series int): Actual timestamp of the newer pivot.
confirmationTime (series int): Timestamp when the structure first became confirmed.
fromPrice (series float): Price of the older pivot.
toPrice (series float): Price of the newer pivot.
direction (series Direction): Bullish low->high or bearish high->low.
status (series StructureState): State of this interpretation.
symbol (series string): Chart symbol used for its construction.
timeframe (series string): Chart timeframe used for its construction.
Zone
Persistent candidate Fibonacci region, to be populated by later modules.
Fields:
id (series int)
swingId (series int)
lowerPrice (series float)
upperPrice (series float)
leadRatio (series float)
publishedBar (series int)
publishedTime (series int)
direction (series Direction)
status (series StructureState)
Scenario
Immutable-by-contract scenario plan; modifications require a NEW scenario identity.
Fields:
id (series int)
swingId (series int)
zoneId (series int)
publishedBar (series int)
publishedTime (series int)
invalidation (series float)
target1 (series float)
target2 (series float)
direction (series Direction)
status (series ScenarioState)
Trade
Trade plan. Original levels never change; managed stop is a separate field.
Fields:
id (series int)
scenarioId (series int)
signalBar (series int)
signalTime (series int)
originalEntry (series float)
originalStop (series float)
originalTarget1 (series float)
originalTarget2 (series float)
managedStop (series float)
direction (series Direction)
status (series TradeState)
Event
Historical event record; append new events, never edit the fact of an old one.
Fields:
id (series int)
parentId (series int)
occurredBar (series int)
occurredTime (series int)
recordedPrice (series float)
kind (series EventKind)
note (series string)
I 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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。