Category Other  Published on 20/02/2023

RSI MACD STOCHASTIC CLOUD in 1

Description

Sorry if you down loaded this before . for some reason I uploaded the wrong indicator but this is the one with all three clouds in one.

Dont forget to adjust the MACD factor so that it makes sence.

This picture shows the same indicator used twice if you duplicate it and comment out the clouds to show only the lines...... eg; //

 


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo
{
     [Cloud ( "RSI", "RSI 50", Opacity = 0.8 , FirstColor = "RSI", SecondColor = "RSI 50")]

     [Cloud ( "Macd", "Signal", Opacity = 0.6 , FirstColor = "Macd", SecondColor = "Signal")]
      
     [Cloud ( "SCH", "SCH 50", Opacity = 0.6 , FirstColor = "SCH", SecondColor = "SCH 50")]
      
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class RSIMACDSCH : Indicator
    
    {    // EMA FFAA4400   SMA  FF88AA44 50 AA7733AA P 88554488//
    
    
        public DataSeries Source { get; set; }


        [Parameter("Long Cycle", DefaultValue = 26)]
        public int LongCycle { get; set; }

        [Parameter("Short Cycle", DefaultValue = 12)]
        public int ShortCycle { get; set; }

        [Parameter("Signal Periods", DefaultValue = 9)]
        public int Periods { get; set; }
        
        [Output("Macd", LineColor = "AA00AA00",Thickness =1, PlotType = PlotType.DiscontinuousLine)]
        public IndicatorDataSeries Macd {get;set;}
        
        [Output("Signal", LineColor = "CCAA0000",Thickness =1, PlotType = PlotType.DiscontinuousLine)]
        public IndicatorDataSeries Signal {get;set;}
   
        [Parameter("RP", DefaultValue = 14)]
        public int RPeriod { get; set; }
        
        [Parameter("MACD Adjuster   Adjust this for different charts and time frames \n eg EUR 5m set to 40000, and XAU 5m set to 10 \n hint add 0's to find MACD \n Also untik all the boxs for better viewing ", DefaultValue = 4)]
        public int Factor { get; set; }
        
        [Output("RSI 50", LineColor = "FF554488")]
        public IndicatorDataSeries RSI50 { get; set; }
        
        [Output("RSI", LineColor = "AAFFFF00")]
        public IndicatorDataSeries RSI { get; set; }
   
        [Parameter("K%", DefaultValue = 14)]
        public int KPeriod { get; set; } 
        
        [Parameter("Slowing", DefaultValue = 3)]
        public int KSlowing { get; set; }
    
        [Parameter("D%", DefaultValue = 3)]
        public int DPeriod { get; set; }   
      
        [Output("SCH", LineColor = "AA0000AA", PlotType = PlotType.DiscontinuousLine)]
        public IndicatorDataSeries SCH { get; set; }
      
        [Output("SCH 50", LineColor = "440000AA", PlotType = PlotType.DiscontinuousLine)]
        public IndicatorDataSeries SCH50 { get; set; }
        
        
        [Parameter("MA Type")]
        public MovingAverageType MAType { get; set; }
        
        
        
        
        private RelativeStrengthIndex rsi;
        private MacdCrossOver _macdCrossOver;
        private StochasticOscillator sch;
      

        protected override void Initialize()
        {
           rsi = Indicators.RelativeStrengthIndex(Source, RPeriod);
           
           _macdCrossOver = Indicators.MacdCrossOver(LongCycle, ShortCycle, Periods);
            
           sch = Indicators.StochasticOscillator(KPeriod, KSlowing, DPeriod, MAType);
        }
        

        public override void Calculate(int index)
        {
         RSI[index] = rsi.Result[index];
         RSI50[index] = (rsi.Result[index] + 50)-rsi.Result[index];
        Macd[index] = _macdCrossOver.MACD[index]*Factor+50;
        Signal[index] = _macdCrossOver.Signal[index]*Factor+50;
        
         SCH[index] = sch.PercentK[index];
         SCH50[index] = (sch.PercentK[index] + 50) -sch.PercentK[index];
        
        }
    }
}

VE
VEI5S6C4OUNT0

Joined on 06.12.2022

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: RSI MACD SCH Cloud.algo
  • Rating: 0
  • Installs: 735
Comments
Log in to add a comment.
LA
laichucjtpgihzyevtpc69 · 1 year ago

Many thanks for this sharing. Play geometry dash lite for a fun fast paced experience