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:#0d47a1,stroke:#fff,color:#fff,font-size:20px,font-weight:bold;
class buy1 blue;
classDef red fill:#9B111E,stroke:#fff,color:#fff,font-size:20px,font-weight:bold;
class Stop,stop,stopRitel,lostCause red;
classDef violet fill:#4A0E4E,stroke:#fff,color:#fff,font-size:20px,font-weight:bold;
class volume,volumePriceUp,volumePriceDown violet;
classDef yellow fill:#A08000,stroke:#fff,color:#fff,font-size:20px,font-weight:bold;
class ritel,ritel2 yellow;
classDef deepKakhi fill:#1f2937,stroke:#fff,color:#fff,font-size:20px,font-weight:bold;
class checkBroksum,checkHistoryBroksum,ritelJual deepKakhi;
classDef forestGreen fill:#228B22,stroke:#fff,color:#fff,font-size:20px,font-weight:bold;
class day0,day1,day2 forestGreen;
classDef teal fill:#115e59,stroke:#fff,color:#fff,font-size:20px,font-weight:bold;
class price,watchList teal;