Information

Username: Symposium
Member since: 16 Jul 2018
Last login: 05 Jun 2023
Status: Active

Activity

Where Created Comments
Algorithms 0 6
Forum Topics 13 37
Jobs 0 0

Last Algorithm Comments

Symposium's avatar
Symposium · 3 years ago

Just an update to Bart's SSL Indicator which allows you to access variable types of Moving Averages.

Cheers

Symposium's avatar
Symposium · 3 years ago

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class SSLIndicator : Indicator
    {
        [Parameter(DefaultValue = 10, MinValue = 1)]
        public int Period { get; set; }

        [Parameter("Fast MA Type")]
        public MovingAverageType MAType { get; set; }

        [Output("SSL High", LineColor = "#3BB3E4")]
        public IndicatorDataSeries High { get; set; }

        [Output("SSL Low", LineColor = "#FF006E")]
        public IndicatorDataSeries Low { get; set; }

        private MovingAverage MAHigh;
        private MovingAverage MALow;

        public SSLIndicator()
        {
        }

        protected override void Initialize()
        {
            MAHigh = Indicators.MovingAverage(Bars.HighPrices, Period, MAType);
            MALow = Indicators.MovingAverage(Bars.LowPrices, Period, MAType);
        }

        public int GetDirectionAt(int index)
        {
            var p = High[index];
            var m = Low[index];
            return double.IsNaN(p) || double.IsNaN(m) ? 0 : p >= m ? +1 : -1;
        }

        public override void Calculate(int index)
        {
            var h = MAHigh.Result[index];
            var l = MALow.Result[index];
            var c = Bars.ClosePrices[index];
            var prevDir = index > 0 ? GetDirectionAt(index - 1) : 0;
            var r = c > h ? +1 : c < l ? -1 : prevDir;
            High[index] = r > 0 ? h : r < 0 ? l : double.NaN;
            Low[index] = r > 0 ? l : r < 0 ? h : double.NaN;
        }
    }
}

Symposium's avatar
Symposium · 3 years ago

Hi Winsonet, nice bit of coding for a very popular and successful strategy. Is there a possibility you could add a parameter (and logic) to define the amount of "room to the left" (in candles) prior to a Bullish or Bearish signal.

Most Pin Bar/Price Action strategies similar to yours define a clearance (no tail - no body) of somewhere between 4-7 candles prior to signal.... I hope this makes sense? See a link to the description below.

https://www.youtube.com/watch?v=zlYvfZ3XSiA&t=245s

Cheers

Symposium's avatar
Symposium · 4 years ago

This is a great utility for Ctrader, I can display a column of 28 crosses plus oil and metals on a 43" Monitor which requires me to only have 1 or 2 Charts open..... Very creative utility.

Symposium's avatar
Symposium · 5 years ago

Wow.. thanks for coding this, much appreciated... I have joined your Discord Server... 

Cysecsbin, your recent indicators include some fantastic ideas.... Hope you have the time to keep them coming.

Symposium's avatar
Symposium · 5 years ago

"Experts in cbots, rack your brains and inform if this cbot is a miracle or a fake one !!!

For investment of 10K, net profit is 75,168 with zero loss  !!!"

Not quite on Expert... But this cBot works perfectly... just check your drawdown and leveage amounts while the bot is running...... these will both be very high....

If you let the cBot run long enough in a ranging market it will more than cover the drawdown.... in tests I have run, 24 hours appears to be sufficent ( USDCAD T5 Chart)

Its software like this that has the FX industry pushing the regulators to cut leverage ratios and outlaw hedging.

Brokers cannot protect themselves against their own system if you use against them....