cTrader DiNapoli Stochastic Strategy

by Paul_Hayes in category Trend at 07/03/2018

The DiNapoli indicator which is used in this trading robot has a high probability of providing a signal to buy or sell due to any financial instrument being overbought or oversold. This is an advanced stochastic indicator based on techniques by Dinapoli. It gives good crossover signals.


 Advanced Risk Management Features

 Having an automated strategy that relies mostly on technical indicators will need some form of protection against high impact market events like news releases or even low liquidity when the spreads are so high that when new positions are opened they could be many pips down from the start.


  1. Max spread - you can set a limit so that a position will not open if the symbol spread is too high.
  2. Stop loss and take profit.
  3. Trailing stop with pip step - when the price gains a set amount of pips to stop loss is moved (x) pips behind the price and as the price increases, it is adjusted a set amount of pips (step).
  4. Trading hours - you can set the hours you want the robot to open new positions, there may be times when it is best avoided, open positions will still be managed.
  5. Pause trading for high impact news releases -  if you are using technical data analysis with your trading and reply on indicators then when a major news event occurs, the price can turn against you as much as 1% or 100 pips which can cause a large drawdown on your capital.


Watch a Video Demonstration

The video has been uploaded to 1080p High Quality, so do not forget to set your U-Tube video quality to 1080p HD. 

Duration: 25 minutes

Click Here To Watch a Video Demo using cTrader 3.0 Beta



Paul Hayes
Sales & Marketing
Phone: (44) 203 289 6573

How to install
Warning! Executing the following cBot may result in loss of funds. Use it at your own risk.
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: cAlgo
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
using System.Windows.Forms;
using System.Threading;

// To download the software please visit: https://clickalgo.com/ctrader-dinapoli-stochastic-strategy

namespace cAlgo
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
    public class ClickAlgoSoftware : Robot
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        private static Mutex dialogMutex = new Mutex();
        private static bool dialogIsShownOnce = false;

        protected override void OnStart()

        protected override void OnTick()
            // Put your core logic here

        protected override void OnStop()
            // Put your deinitialization logic here

        public static void ShowDialogBox()

            if (dialogIsShownOnce)

            var ret = MessageBox.Show("It is not possible to download the software from the cTDN website. Would you like to visit us at ClickAlgo.com where you can download it?", "Downloading...", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (ret == DialogResult.Yes)

            dialogIsShownOnce = true;