Description
This is a cBot which will automatically adjust your stop loss to trail behind the price using the standard cTrader Moving Average indicator, this will also lock in any profits as the moving average line moves past the entry price and at the same time if the price retraces it limits the losses.
Contact: instant chat group
Website: https://clickalgo.com
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/moving-average-trailing-stop
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/moving-average-trailing-stop");
}
dialogIsShownOnce = true;
dialogMutex.ReleaseMutex();
}
}
}
ClickAlgo
Joined on 05.02.2015
- Distribution: Paid
- Language: C#
- Trading platform: cTrader Automate
- File name: ClickAlgo Software.algo
- Rating: 5
- Installs: 935
- Modified: 13/10/2021 09:54
Warning! Running cBots downloaded from this section may lead to financial losses. Use them at your own risk.
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Hi! Does it work under Mac OS too?
Thanks for the feedback.