Interface Layer1StrategyAddInterface


public interface Layer1StrategyAddInterface
  • Method Summary

    Modifier and Type Method Description
    void onStrategyAdd()
    Called immediately after constructor if strategy was added (as opposed to being loaded from settings); that's usually a result of user manually adding the strategy and is a good time to display initial notifications or perform initial set up process.
  • Method Details

    • onStrategyAdd

      void onStrategyAdd()
      Called immediately after constructor if strategy was added (as opposed to being loaded from settings); that's usually a result of user manually adding the strategy and is a good time to display initial notifications or perform initial set up process. E.g. if you develop automatic trading strategy it can reset settings to "safe" to avoid user being affected before he has a chance to change anything.