Topics
Replies
onyiaegwu.nduka
06 Sep 2018, 11:26
( Updated at: 21 Dec 2023, 09:20 )
RE:
Thanks for your reply but part of the candlestick is touching the outer Bollinger band. I want an alart(email) that will indicate when the whole candlestick is outside and not touching the outer Bollinger band.
Danis said:
Starfield.MarketStatus indicator created by starfield and selling from ClickAlgo contain this visual indication of candlestick that is outside of BollingerBand
@onyiaegwu.nduka
onyiaegwu.nduka
22 Jan 2018, 20:08
RE:
Paul_Hayes said:
Hi onyiaegwu.nduka,
You can also use this tool and choose from 7 different types of moving average which will send alerts when:
Alert Conditions
- Moving Average rises above the symbol price.
- Moving Average falls below the symbol price.
- Symbol price rises above the moving average.
- Symbol price falls below the moving average
- Moving Average rises above a pre-defined symbol price.
- Moving Average falls below a pre-defined symbol price.
Types of Alert
- Popup Window
- SMS
- Telegram Message
Paul Hayes
Sales & Marketing
Email: contact@clickalgo.com
Phone: (44) 203 289 6573
Website: https://clickalgo.com
Can i use this indicator in manual trading (C trader's platform)
@onyiaegwu.nduka
onyiaegwu.nduka
22 Jan 2018, 20:06
RE:
Panagiotis Charalampous said:
Hi onyiaegwu.nduka,
You can use the Notifications class to send email alerts.
Let me know if this information helps.
Best Regards,
Panagiotis
How can I use Notification to achieve my aim.
@onyiaegwu.nduka


onyiaegwu.nduka
31 Jul 2020, 14:35
RE:
PanagiotisCharalampous said:
Below is the code:
usingSystem;usingcAlgo.API;usingcAlgo.API.Internals;usingcAlgo.API.Indicators;usingcAlgo.Indicators;usingSystem.Collections.Generic;usingSystem.Net;namespacecAlgo{[Indicator(IsOverlay =true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.Internet)]publicclassAlertForIndicator : Indicator{[Parameter("Fast Line", Group ="Source")]publicDataSeries Fast {get;set; }[Parameter("Slow Line", Group ="Source")]publicDataSeries Slow {get;set; }[Parameter("Long Signal", Group ="Signal", DefaultValue =false)]publicboolLong {get;set; }[Parameter("Short Signal", Group ="Signal", DefaultValue =false)]publicboolShort {get;set; }[Parameter("Arrow on Chart", Group ="Signal", DefaultValue =true)]publicboolArrow {get;set; }[Parameter("Backtest", Group ="Signal", DefaultValue =false)]publicboolBckt {get;set; }[Parameter("Email", Group ="Notification", DefaultValue =false)]publicboolSendEmail {get;set; }[Parameter("Telegram", Group ="Notification")]publicboolSendTelegram {get;set; }[Parameter("Sound ON", Group ="Notification", DefaultValue =true)]publicboolPlaySound {get;set; }[Parameter("Media File Location", Group ="Notification", DefaultValue ="c:\\windows\\media\\Alarm01.Wav")]publicstringMediaFile {get;set; }[Parameter("From", Group ="Email", DefaultValue ="from@example.com")]publicstringSender {get;set; }[Parameter("To", Group ="Email", DefaultValue ="to@example.com")]publicstringReceiver {get;set; }[Parameter("Subject", Group ="Email", DefaultValue ="my subject")]publicstringSubject {get;set; }[Parameter("Message", Group ="Email", DefaultValue ="")]publicstringEmailBody {get;set; }[Parameter("ChatId", Group ="Telegram", DefaultValue ="")]publicstringChatId {get;set; }[Parameter("Token", Group ="Telegram", DefaultValue ="")]publicstringBotToken {get;set; }[Parameter("Cross Up Color", Group ="Colors", DefaultValue ="Lime")]publicstringColorArrowUP {get;set; }[Parameter("Cross Down Color", Group ="Colors", DefaultValue ="Orange")]publicstringColorArrowDW {get;set; }stringTelgramURL;protectedoverridevoidInitialize(){System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;TelgramURL =string.Format("https://api.telegram.org/bot{0}/sendMessage?chat_id={1}&text=", BotToken, ChatId);}intLastBar = 0;publicoverridevoidCalculate(intindex){if(index <= LastBar)return;LastBar = index;stringmessage = Symbol.Name +"\n"+ Symbol.Bid +"\n"+ TimeFrame;if(Long && Fast.HasCrossedAbove(Slow, 0)){if(PlaySound)Notifications.PlaySound(MediaFile);if(SendEmail)Notifications.SendEmail(Sender, Receiver, Subject, EmailBody +" "+ message +" "+"Cross Long Signal");if(Arrow)Chart.DrawIcon(Bckt ?"Up"+ index :"Up", ChartIconType.UpArrow, index, Bars[LastBar - 5].Low, Color.FromName(ColorArrowUP));if(SendTelegram)SendMessage(message +"\n"+"Cross Long Signal"+"\n"+ EmailBody);}elseif(Short && Fast.HasCrossedBelow(Slow, 0)){if(PlaySound)Notifications.PlaySound(MediaFile);if(SendEmail)Notifications.SendEmail(Sender, Receiver, Subject, EmailBody +" "+ message +" "+"Cross Short Signal");if(Arrow)Chart.DrawIcon(Bckt ?"Down"+ index :"Down", ChartIconType.DownArrow, index, Bars[LastBar - 5].High, Color.FromName(ColorArrowDW));if(SendTelegram)SendMessage(message +"\n"+"Cross Short Signal"+"\n"+ EmailBody);}}voidSendMessage(strings){var request = WebRequest.Create(TelgramURL + s);request.ContentType ="application/x-www-form-urlencoded";request.Method ="POST";var response = request.GetResponse();}}}@onyiaegwu.nduka