79488473

Date: 2025-03-06 06:51:40
Score: 1.5
Natty:
Report link
  1. Is @param.context("ctx") a valid decorator in Indie v4**+**?

No, there is not

  1. If ctx doesn't need to be declared, how do I pass it correctly?

In Indie >= v4 you do not have to pass it directly. Instead you should use self.ctx, where self - is a reference to Main class (or any other Context).

  1. Is there another way to define context-based parameters in Indie?

No, and... you should not need this. A context is an abstraction of a trading instrument (a dataset of candles in other words). If you need additional instruments (i.e. Contexts) you should use Context.calc_on method.

Reasons:
  • Blacklisted phrase (1): how do I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Vitaly Volkov