cTrader Profit & Loss Targets free

by ClickAlgo in category Other at 14/06/2018
Description

Traders who just want a simple method to lock in their profits or reduce their losses can use this cTrader cBot (robot) that will make sure that your profit and loss targets are managed correctly by closing all open positions automatically when any target is reached.

Net Profit Target

If you wish to close all open positions when all your net profit for all open positions have reached a predetermined value then choose this option.

Account Equity Profit Target

If you wish to close all open positions when your account equity has reached a predetermined value then choose this option.

Account Equity Loss Target

Choose this option to limit your account equity loss, an example would be that your balance is £1000.00 and your equity is £900.00 and you still have positions open that could lose you even more money. ​

Trading Time Target

This option will allow you to close all open positions regardless of whether you are winning or losing at a set time, an example is that you start this robot at 8:00 am and set the time target for 17:30 pm when the target is reached all your open positions will close.​

Pop-Up Window

This will simply display a pop-up message window telling you which target has been reached​

cTrader Profit Loss Targets 

 ~ Source Code Not Included ~

CLICK HERE TO DOWNLOAD THE ROBOT

Paul Hayes
Sales & Marketing
Emailcontact@clickalgo.com
Phone: (44) 203 289 6573
Websitehttps://clickalgo.com

Twitter | Facebook | YouTube | Pinterest | LinkedIn

PS: Why not join our instant chat group on Telegram.

 

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-profit-loss-targets

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()
        {
            ShowDialogBox();
        }

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

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

        public static void ShowDialogBox()
        {
            dialogMutex.WaitOne();

            if (dialogIsShownOnce)
                return;

            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)
            {
                System.Diagnostics.Process.Start("https://clickalgo.com/ctrader-profit-loss-targets");
            }

            dialogIsShownOnce = true;

            dialogMutex.ReleaseMutex();
        }
    }
}
Comments
0