SA
    
        
            two RSI in the same robot
            
                 31 Jul 2020, 09:02
            
                    
Can someone tell me how to put two RSI in the same code. The idea is to place two RSI with different configurations,
Replies
                     firemyst
                     03 Aug 2020, 06:21
                                    
RE:
samuel.jus.cornelio said:
Can someone tell me how to put two RSI in the same code. The idea is to place two RSI with different configurations,
Declare two RSI objects and then create them with the specific parameters.
Example concept below using MovingAverages:
MovingAverage _ma1;
MovingAverage _ma2;
_ma1 = Indicators.MovingAverage(Bars.ClosePrices, MA1Period, MA1Type);
_ma2 = Indicators.MovingAverage(Bars.ClosePrices, MA2Period, MA2Type);
@firemyst

... Deleted by UFO ...