flowchart TD
day0["H+0"] --> volume["Volume Spike"]
volume --> viral@{ shape: diamond, label: "Early days of Viral?" }
viral --> |Yes| checkBroksum["Check Broksum"]
viral -->|No, udah rame di bahas.| Stop["🚫Stop!"]
checkBroksum --> ritel@{ shape: diamond, label: "Ritel Buying?" }
ritel -->|Yes| Stop["Stop"]
ritel -->|No| checkHistoryBroksum["Check History Broksum"]
checkHistoryBroksum --> ritel2@{ shape: diamond, label: "Ritel Buying?" }
ritel2 -->|Yes| stop@{ shape: circle, label: "🚫Stop!" }
ritel2 -->|No| watchList["Watch List"]
%% H+1
watchList --> day1["H+1"]
day1 --> price@{ shape: diamond, label: "Harga Naik?" }
price -->|Yes| volumePriceUp@{ shape: diamond, label: "Volume Spike?" }
price -->|No| volumePriceDown@{ shape: diamond, label: "Volume Spike?" }
%% Price Up branch
volumePriceUp --> |Yes| lostCause@{ shape: circle, label: "🚫Stop! Lost Cause! Never buy on Green!" }
volumePriceUp --> |No| buy1["Buy! H+1: 1 lot. H+n: Max 20% of volume!"]
%% Price Down branch
volumePriceDown --> |Yes| ritelJual@{ shape: diamond, label: "Broksum: Ritel jual?" }
volumePriceDown --> |No| buy1
%% ritelJual branch
ritelJual --> |Yes| buy1
ritelJual --> |No| stopRitel@{ shape: circle, label: "🚫Stop! Ritel beli. Bandar distribusi! CL bila perlu!" }
%% H+2
buy1 --> day2["H+2"]
day2 --> |Repeat| day1["H+1"]
classDef blue fill:#2196f3,stroke:#ffffff,color:#e3f2fd,font-size:20px,font-weight:bold;
class buy1 blue;
classDef red fill:#ef4444,stroke:#ffffff,color:#fee2e2,font-size:20px,font-weight:bold;
class Stop,stop,stopRitel,lostCause red;
classDef violet fill:#8b5cf6,stroke:#ffffff,color:#f3e8ff,font-size:20px,font-weight:bold;
class volume,volumePriceUp,volumePriceDown violet;
classDef yellow fill:#facc15,stroke:#000,color:#1a1a1a,font-size:20px,font-weight:bold;
class ritel,ritel2 yellow;
classDef deepKakhi fill:#374151,stroke:#ffffff,color:#f3f4f6,font-size:20px,font-weight:bold;
class checkBroksum,checkHistoryBroksum,ritelJual deepKakhi;
classDef forestGreen fill:#22c55e,stroke:#ffffff,color:#e9fce6,font-size:20px,font-weight:bold;
class day0,day1,day2 forestGreen;
classDef teal fill:#14b8a6,stroke:#ffffff,color:#e0fdfb,font-size:20px,font-weight:bold;
class price,watchList teal;