Difference between check and update - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html) +--- Thread: Difference between check and update (/thread-57297.html) |
Difference between check and update - NaN - 06-28-2018 Hello, can someone explain me what is the difference between check and update methods inside strategies code? This methods look pretty similar to me. Thanks. RE: Difference between check and update - askmike - 06-28-2018 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. RE: Difference between check and update - NaN - 06-29-2018 It's clear now |