class RiskManagement(RiskManagementModel):
  def __init__(self,stop_loss=2, tp=2) -> None:
    self.stop_loss = stop_loss
    self.tp = tp

  def manage_risk(self, algorithm: QCAlgorithm, targets: List[IPortfolioTarget]) -> IEnumerable[IPortfolioTarget]:
    
    for kvp in algorithm.securities:
      security = kvp.value

      if not security.invested:
        continue
      
      targets = []
      # pnl = security.holdings.total_unrealised_profit
      avg_price = security.holdings.average_price
      atr = algorithm.atr_ind.Current.Value

      

Basically, It is my RiskManagemnet class, I want to access atr_ind(ATR indicator initialize in QCAlgorithm). but I can Not access here it show an error “AttributeError: 'QCAlgorithm' object has no attribute atr_ind”

But I can access this value via QCAlgorithm(mean main.py file) but can not to Risk management.

now Let me explain what I need. 
Once alpha is generated then I will check if Stop_loss or TP is triggered or not if triggered then liquidate position and cancel insight. and also I want to analyze is it a UP or Down insight

Please suggest me if I have to do via another method. 

P.S Alpha Model is working fine.