// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN("buysell1"); CallBuySell1(); _SECTION_END(); _SECTION_BEGIN("DEMA"); P = ParamField("Price field",-1); Periods = Param("Periods", 15, 2, 300, 1, 10 ); Plot( DEMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); _SECTION_END(); _SECTION_BEGIN("DEMA1"); P = ParamField("Price field",-1); Periods = Param("Periods", 15, 2, 300, 1, 10 ); Plot( DEMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); _SECTION_END(); AlertIf( Buy, "", "BUY @ " + C, 1 ); AlertIf( Sell, "", "SELL @ " + C, 2 ); //////////////////////////////////////////////////////////////////////// // ec=WriteIf(EMA(C,5)>EMA(C,13) OR EMA(C,5)EMA(C,13) AND EMA(C,5)>EMA(C,20),"On","x"); ec3=WriteIf(EMA(C,5)e5x13 OR e5x5e5x13 AND e5x5>e5x20,"On","x"); e5c3=WriteIf(e5x5e15x13 OR e15x5e15x13 AND e15x5>e15x20,"On","x"); e15c3=WriteIf(e15x5ehx13 OR ehx5ehx13 AND ehx5>ehx20,"On","x"); ehc3=WriteIf(ehx5eh4x13 OR eh4x5eh4x13 AND eh4x5>eh4x20,"On","x"); e4hc3=WriteIf(eh4x5edx13 OR edx5edx13 AND edx5>edx20,"On","x"); edc3=WriteIf(edx5ewx13 OR ewx5ewx13 AND ewx5>ewx20,"On","x"); ewc3=WriteIf(ewx5Ref(HHV(High,Buyperiods),-1) ; Sell= C