hiba7rain
hiba7rain's avatar

Info

Username:hiba7rain
Name:hiba7rain
Member since: 20 Jul 2014

About

None

Signature

None

Last Algorithm Comments

@Free Volume Profile:  11 Oct 2022, 23:51


@srlcarlg Yes, something like this on right side of the chart, see the below links  https://images.app.goo.gl/YwA6eDZNAk4mW5qp7 https://images.app.goo.gl/gLSJMoEjA79vsXoT6 Thanks will be great if you can code it 

@Free Volume Profile:  11 Oct 2022, 21:57


@srlcarlg thank you for your response, yes I can see that on Order flow ticks  but if it is on the volume profile it will be great because we will be able to see the aggregate for the period wanted say for example for the day  

@Free Volume Profile:  11 Oct 2022, 21:22


is it possible to see the delta values at each bar? i.e. the value to be plotted next to each bar in real time 

@Fourier Transform:  23 Jul 2019, 14:27


Hi , just wondering if you have created any indicator that might help spotting impuls moves and alert users

@Lines Trader:  02 Aug 2018, 10:57


Great thing, most of ctrader users waiting for it long time  so when the new update will be relesed 

@Starfield Market Status Dashboard:  30 Jul 2018, 21:59


Hi How to test this indicator

@Value Chart:  27 Jun 2018, 10:47


Great indicator If you can add divergences and email alert to it would be nice thing    

@Solid Horizon:  25 Jun 2018, 08:21


Good day to you and thank you for your kind response Again I would say yes it is a great tool you have built here But I will keep pushing on you to have a multi time frame info on your great indicator :)   I totally agree with you on risk control/management and I believe part of it is also to take decision to not take a trade and not only how much we stand to loss :) and on other hand why not use the indicator to make money :$ Back to multi time info : ) take example of GBPJPY on H4 Trend UP and on M30 Trend Down here some traders might decide to wait  so to save time no need to switch between time frames to find about trend status it will be great to have it on same time frame you looking at   I have another Idea to add it to have this great indicator more powerful and more risk control useful tool : )

@Solid Horizon:  24 Jun 2018, 10:37


Hi,  Thanks for the great Indicator  Very useful, if I may add suggestion to improve the usefulness of the indicator for the users, is if possible for you to add option to show the trend status on two more time frames in addition to current So for example current time frame is H1 and say to show in addition to it the trend for H4 and daily trend details And one more question do you have the same for MT4 :)

@SMA Slope Indicator:  21 Jun 2017, 14:20


how it is possible to use your indicator on Cbot ?

Last Forum Posts

@Excel sheets and Ctrader:  14 Mar 2022, 13:40


Hi all, 

Anyone have indicator that is integrated with excel sheet i.e. to retrieve data from sheet and for example draw horizontal lines based on sheet column which has the numbers color the lines based on price position above or below the lines value 

Thanks 

@Need support on Rectangles:  02 May 2019, 14:38


Hi 

Need to know how to code indicator to draw a rectangle on ex. from high and low of a specific bar if some condition meet and the rectangle to move along with the price/new bars 

thanks 

@how to get the distance between two MA in (pips) and current price distance from MA:  08 Aug 2018, 10:01


it would be appreciated if someone can add the draw. Text code to this so that it presents the value of differences on the chart 

@Need support on Email alerts:  25 Jul 2018, 07:35


hiba7rain said:

Panagiotis Charalampous said:

Hi hiba7rain,

It is not. You did not put the brackets.

oops yes i forgot the brackets :)

thanks alot for the correction 

ill give it a try and see how it works 

its still with this code having issue of not sending emails and if i remove it the indicator keeps sending multiple times 

ill try to put the same indicator logic in Cbot and see how it works althought that the purpose should be indicator and not cBot 

maybe you cank share different code with us for indicators to send email only once other than the provided above ?

thanks 

@Need support on Email alerts:  24 Jul 2018, 10:41


Panagiotis Charalampous said:

Hi hiba7rain,

It is not. You did not put the brackets.

oops yes i forgot the brackets :)

thanks alot for the correction 

ill give it a try and see how it works 

@Need support on Email alerts:  24 Jul 2018, 10:36


Panagiotis Charalampous said:

This is because you set _emailSent to true even if no email was sent. Change it to the following

                if ( !_emailSent)
                 {
                     Notifications.SendEmail("XXX@XX.com", "XXX@XX.com", Symbol.Code + "Signal", "XXXXX");
                     _emailSent = true;
                 }

sorry i didnt get you, its the same code I did 

do you mean to set it to false?

@Need support on Email alerts:  24 Jul 2018, 10:18


Panagiotis Charalampous said:

Hi hiba7rain,

What do you mean what you say it is not working? Is the email not sent? Is it sent multiple times? Alos note that I use a cBot and not an indicator,

Best Regards,

Panagiotis

Hi 

yes i noticed that you using Cbot coding 

my first issue was emails alerts are sent multiple times, so I added the code as i showed to you above (as to flag the emails sent out and stop sending multiple times) but it did not work at all no emails sent   

@Need support on Email alerts:  24 Jul 2018, 10:10


Panagiotis Charalampous said:

Hi hiba7rain,

You could raise a flag as soon as you send a notification and check the flag in order not to send it again. See below an example

using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        private bool _notificationSent;
        protected override void OnStart()
        {

        }

        protected override void OnTick()
        {
            var sendNotification = false;
            //  Make all your checks here and update sendNotification variable accordingly
            //   .
            //   .
            //   .
            if (sendNotification && !_notificationSent)
            {
                Notifications.SendEmail("email", "email", "Subject", "Text");
                _notificationSent = true;
            }
        }
        protected override void OnBar()
        {
            _notificationSent = false;
        }
        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}

Best Regards,

Panagiotis

Thanks Panagiotis,

I will try to fix it as you mentioned but need your advise as I have tried to do the same logic as below but did not work with me so what was missing or mistake I made on below code 

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class SignalINdi : Indicator
    {


        private bool _emailSent;

protected override void Initialize()
        {
           

            //

         
        }

public override void Calculate(int index)
        {
            
        


            
            if ((close2 < JV4) && (close1 > JV3))
            {
                
                SSig[index - 1] = MarketSeries.Median[index] - Symbol.TickSize * 20;
                
                
                if ( !_emailSent)
                    Notifications.SendEmail("XXX@XX.com", "XXX@XX.com", Symbol.Code + "Signal", "XXXXX");
                
                _emailSent = true;
                

            }

@Need support on Email alerts:  24 Jul 2018, 08:18


Hi, 

How to code the email alerts to have only one email if conditions are true and avoid issue of sending several emails?

Thanks for support 

@Need support to get value of last running trade open price:  30 Aug 2017, 17:02


Thanks for your support I'll check it
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.

No uploaded.

Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.

No uploaded.