OrglobalFx SSL MultitimeFrame Display free

by orglobalng in category Trend at 18/03/2022
Description

  OrglobalFx SSL MultitimeFrame Indicator with Color.

Contact:
Telegram: @orglobalng

For customizations.
E.g Telegram Alerts etc

 

 

 

 

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
Language: C#
Trading Platform: cAlgocTrader
/*
OrglobalFx SSL MultitimeFrame Indicator with Color.

Contact:
Telegram: @orglobalng

For customizations.
E.g Telegram Alerts etc

*/


using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
using System.Net;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.EasternStandardTime, AccessRights = AccessRights.None)]
    public class _OFX_IND_111320210350_SSL_MTF : Indicator
    {
//Timeframe Selection Parameter
        [Parameter("Timeframe1", DefaultValue = "Monthly", Group = "TimeFrame")]
        public TimeFrame Time_frame1 { get; set; }
        [Parameter("Timeframe2", DefaultValue = "Weekly", Group = "TimeFrame")]
        public TimeFrame Time_frame2 { get; set; }
        [Parameter("Timeframe3", DefaultValue = "Daily", Group = "TimeFrame")]
        public TimeFrame Time_frame3 { get; set; }
        [Parameter("Timeframe4", DefaultValue = "Hour4", Group = "TimeFrame")]
        public TimeFrame Time_frame4 { get; set; }
        [Parameter("Timeframe5", DefaultValue = "Hourly", Group = "TimeFrame")]
        public TimeFrame Time_frame5 { get; set; }
        [Parameter("Timeframe6", DefaultValue = "Minute15", Group = "TimeFrame")]
        public TimeFrame Time_frame6 { get; set; }

//SSL Parameters
        [Parameter("Length", DefaultValue = 20, Group = "SSL")]
        public int _length { get; set; }
        [Parameter("MA Type", DefaultValue = MovingAverageType.Simple, Group = "SSL")]
        public MovingAverageType _MAType { get; set; }

//Declarations
        public SSLChannel _ssl2;
        public string lbal;

        protected override void Initialize()
        {
//Displays the Symbol name on the chart          
            Chart.DrawStaticText("symbol_label", SymbolName.ToString(), VerticalAlignment.Top, HorizontalAlignment.Left, Color.White);
        }

        public override void Calculate(int index)
        {
//Logic functions Usecase           
            logicfunction(Time_frame1);
            mycolor("a", "\n\n");

            logicfunction(Time_frame2);
            mycolor("b", "\n\n\n");

            logicfunction(Time_frame3);
            mycolor("c", "\n\n\n\n");

            logicfunction(Time_frame4);
            mycolor("d", "\n\n\n\n\n");

            logicfunction(Time_frame5);
            mycolor("e", "\n\n\n\n\n\n");

            logicfunction(Time_frame6);
            mycolor("f", "\n\n\n\n\n\n\n");
        }

//Bars function
        public Bars seriestf(TimeFrame _tf)
        {
            Bars series = MarketData.GetBars(_tf);
            return series;
        }

//The Logic Function
        public void logicfunction(TimeFrame _tf)
        {
//SSL Initialization
            _ssl2 = Indicators.GetIndicator<SSLChannel>(seriestf(_tf), _length, _MAType);

//Conditions for bullish
// Current Upper ssl is greater/above current lower ssl. And the current bar on the timeframe is greater than the ssl lines
            if (_ssl2._sslUp.Last(0) > _ssl2._sslDown.Last(0) && seriestf(_tf).ClosePrices.Last(0) > _ssl2._sslUp.Last(0) && seriestf(_tf).ClosePrices.Last(0) > _ssl2._sslDown.Last(0))
            {
                lbal = "    " + _tf.ToString() + "  BULLISH";
            }
//Bear Condition. Inverse of Bullish
            else if (_ssl2._sslUp.Last(0) < _ssl2._sslDown.Last(0) && seriestf(_tf).ClosePrices.Last(0) < _ssl2._sslUp.Last(0) && seriestf(_tf).ClosePrices.Last(0) < _ssl2._sslDown.Last(0))
            {
                lbal = "    " + _tf.ToString() + "  BEARISH";
            }
//            
            else
            {
                lbal = "    " + _tf.ToString() + "  NEUTRAL";
            }
        }

//Function to change the color depending on the signal
        public void mycolor(string tlabell, string llbl)
        {
            if (lbal.Contains("BULL"))
            {
                Chart.DrawStaticText(tlabell, llbl + lbal, VerticalAlignment.Top, HorizontalAlignment.Left, Color.Green);
            }
            else if (lbal.Contains("BEAR"))
            {
                Chart.DrawStaticText(tlabell, llbl + lbal, VerticalAlignment.Top, HorizontalAlignment.Left, Color.Red);
            }
            else if (lbal.Contains("NEU"))
            {
                Chart.DrawStaticText(tlabell, llbl + lbal, VerticalAlignment.Top, HorizontalAlignment.Left, Color.Yellow);
            }
        }
    }
}
Comments

hughescaroline498 - March 27, 2022 @ 13:29

Looks very interesting!

nighttopss - April 12, 2022 @ 07:00

Retro Bowl is an interactive arcade game app. It has many unique and amazing features. In this game you can play rugby like it’s 1987. The theme of this game is in retro style. You also have to perform the press duties and handle the fragile egos of players just like in real life. The more you play this game the more interesting you will find it. This is an addictive game, if you play this game once then you will play it again and again. It has a simple and interactive interface due to which anyone can effortlessly play this game. It also consumes very low battery power and storage. So you don’t have to worry about your phone’s battery power while playing. The reviews of this game are quite impressive as compared to other games. enyjoy~!

junkangh89 - April 25, 2022 @ 11:13

Thanks, this gives more options to use. Especially since I use it when I play games. I also play in online casinos, but more for fun. I'm not very lucky with the winnings yet. I found a review, and it helps me in choosing a casino and slots https://drfun.pl/10-euro-bez-depozytu/ I have found the best deals with no deposit bonuses and I want to try my luck with that.

davidkanedv - June 08, 2022 @ 12:14

I really enjoyed reading your article and look forward to reading more of it in the future. If you have any spare time, I just discovered a fantastic game called moto x3m that you are welcome to join and play with me if you do. 

koolhipo - June 21, 2022 @ 09:43

This is necessary, it totally helps paper minecraft

among012a - June 23, 2022 @ 10:55

The news you share is very interesting, I and many others are interested in the news you share.

dordle

junealexis001 - September 12, 2022 @ 12:12

Awesome  site i love it keep posting more!   storage sheds spokane

0