Difference between check and update
#1
Question 
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.
  Reply
#2
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.
  Reply
#3
Thumbs Up 
It's clear now
  Reply


Forum Jump:


Users browsing this thread: