06-28-2018, 04:21 PM
They are both quite similar as they are both ran when a new candle is calculated. However:
- The check function is only ran if your strategy is NOT in warmup, it is meant to check variables (like indicator results or other values). <- this is where you should check values and trigger advice.
- The update function is always ran, regardless of your strategy is warming up. It is meant for your strategy to run logic on every candle. <- most strategies don't need an update function.
- The check function is only ran if your strategy is NOT in warmup, it is meant to check variables (like indicator results or other values). <- this is where you should check values and trigger advice.
- The update function is always ran, regardless of your strategy is warming up. It is meant for your strategy to run logic on every candle. <- most strategies don't need an update function.