TobbeLino, thnks again for sharing. Very cool.
I'm playing around with the source (will create a pull request if it becomes useful). Just wondering about MaxTradingIntervalMinutes and MaxSamplesToKeep.
What does MaxTradingIntervalMinutes represent?
Is it fine to change MaxSamplesToKeep to anything? Any reason why it's 144? (12x12)?
MaxTradingIntervalMinutes is simply the largest sample interval that can be selected in the settings (180 min). This constant is used then cleaning the cache (to determine if a cached sample can be useful, or if it's old enough to remove)
I advice you against changing MaxSamplesToKeep. The value 144 is from the original bot, and I'm not quite sure why that exact number was picked. But I have read that the original bot used a lower value from the start, but it was criticised that the EMA-calculations needed more values to be accurate, so it was increased to 144... (each new calculated EMA-value takes the previous samples into account, so I think it needs a history of values longer than the actual "EMA-length" to be accurate)