IsGreen, IsRed, BarColor Help please

Created at 02 Feb 2015, 16:25
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AM

Amine_Bachouti

Joined 02.02.2015

IsGreen, IsRed, BarColor Help please
02 Feb 2015, 16:25


 

Hi, I'm new to c# and cbots. I have a small question please !

 

Where to declare a function ? and do you think this code is correct ?

 


        public static bool IsGreen(this DataSeries series)
        {
            return series.Close[series.Count - 2] > series.Open[series.Count - 2];
        }

 

 

Thank you,


@Amine_Bachouti
Replies

Amine_Bachouti
02 Feb 2015, 18:58

And how can we say

 

if (any trade already open) {}

 


@Amine_Bachouti

Spotware
10 Feb 2015, 10:16

Dear Trader,

Currently we do not provide the Engage service. We can recommend you to check the following resources:


@Spotware