// Downloaded From https://www.WiseStockTrader.com function DetrendedPriceOsc( Periods ) { return C - Ref( MA( C, Periods ), -( 1 + Periods/2 ) ); } Plot( DetrendedPriceOsc( Param("Periods", 20, 1, 100 ) ), _DEFAULT_NAME(), ParamColor("Color", ColorCycle ) ); Buy= ADX(14)<40 AND PDI(14) > MDI(14) AND CCI(14)>(DetrendedPriceOsc( 20 )) AND CCI(14)> MACD(12,26) AND StochK(15,3) > StochD(15,3,3) AND RSI(14)RSI (25) ;