asdasd paid
Description
This cBot provides signals to pause your robots (x) minutes before, during and after a news release. If you automate your trading using technical indicators the
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
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: http://clickalgo.com/ctrader-news-release-manager 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.\nWould 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("http://clickalgo.com/ctrader-news-release-manager"); } dialogIsShownOnce = true; dialogMutex.ReleaseMutex(); } } }
Comments