Topics
11 Sep 2013, 01:45
 2701
 2
01 Aug 2013, 01:21
 3272
 2
04 Jun 2013, 11:20
 3042
 3
03 Jun 2013, 23:08
 5121
 9
Replies

DomnikInvest
23 Nov 2014, 22:24

I am trading on 233 tick chart...


@DomnikInvest

DomnikInvest
30 May 2014, 01:40

RE:

Spotware said:

We don't have such functionality at the moment. You need to create a list of symbols manually.

When you plan to integrate this function?


@DomnikInvest

DomnikInvest
19 Aug 2013, 09:52

look here....

/api/marketdepth


@DomnikInvest

DomnikInvest
01 Aug 2013, 18:28

RE:
cAlgo_Fanatic said:

Hello,

The cBot has been uploaded here: /algos/robots/show/271

This link don't work!?


@DomnikInvest

DomnikInvest
07 Jun 2013, 12:20

Thank you. When you plan to relase the updates for this.


@DomnikInvest

DomnikInvest
06 Jun 2013, 16:21

Other currency data

And also how to get other currency data?

EXAMPLE:

Robot is trading on EURUSD and want to cheek GBPUSD data and others and also on diferent timeframes


@DomnikInvest

DomnikInvest
05 Jun 2013, 15:40

right code!!!
 //#reference: C:\Users\ToTo\Documents\cAlgo\Sources\Indicators\AverageTrueRange.algo
    // -------------------------------------------------------------------------------
    //
    //    This is a Template used as a guideline to build your own Robot.
    //    Please use the “Feedback” tab to provide us with your suggestions about cAlgo’s API.
    //
    // -------------------------------------------------------------------------------

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

    namespace cAlgo.Indicators
    {
        [Indicator(IsOverlay = false)]
        public class TMASlope_11 : Indicator
        {
          private AverageTrueRange _averageTrueRange;
          private WeightedMovingAverage _weightedMovingAverage;
          
            [Parameter(DefaultValue = 0.0)]
            public double Parameter { get; set; }

            [Output("Main", Color = Colors.Turquoise, PlotType = PlotType.Histogram)]
            public IndicatorDataSeries Result { get; set; }


            protected override void Initialize()
            {
                _weightedMovingAverage = Indicators.WeightedMovingAverage(MarketSeries.Close, 21);
                _averageTrueRange = Indicators.GetIndicator<AverageTrueRange>(100);
            }
           
          double calcPrevTrue( int index )
          {
             double dblSum  = MarketSeries.Close[ index - 1] * 21;
                double dblSumw = 21;
                int jnx, knx;
       
                dblSum  += MarketSeries.Close[ index ] * 20;
                dblSumw += 20;

                for ( jnx = 1, knx = 20; jnx <= 20; jnx++, knx-- )
                {
                   dblSum  += MarketSeries.Close[index - 1 - jnx ] * knx;
                   dblSumw += knx;
                }
             return ( dblSum / dblSumw );
          }


            public override void Calculate(int index)
            {
                double dblTma, dblPrev;
                double atr =_averageTrueRange.Result[index - 10] / 10;
                double gadblSlope = 0.0;

                if ( atr != 0 )
                {
                   dblTma =_weightedMovingAverage.Result[index];
                   dblPrev = calcPrevTrue( index );
                   gadblSlope = ( dblTma-dblPrev ) / atr;
                }
                Result[index] = gadblSlope ;
            }
        }
    }

 


@DomnikInvest

DomnikInvest
05 Jun 2013, 15:38

Add levels

Hi,

how can I add 2 levels 0.5 and -0.5, 0.8 and -0.8 for example?

 //#reference: C:\Users\ToTo\Documents\cAlgo\Sources\Indicators\AverageTrueRange.algo
    // -------------------------------------------------------------------------------
    //
    //    This is a Template used as a guideline to build your own Robot.
    //    Please use the “Feedback” tab to provide us with your suggestions about cAlgo’s API.
    //
    // -------------------------------------------------------------------------------

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

    namespace cAlgo.Indicators
    {
        [Indicator(IsOverlay = false)]
        public class TMASlope : Indicator
        {
          private AverageTrueRange _averageTrueRange;
          private TriangularMovingAverage _triangularMovingAverage;
          
            [Parameter(DefaultValue = 0.0)]
            public double Parameter { get; set; }

            [Output("Main", Color = Colors.Turquoise, PlotType = PlotType.Histogram)]
            public IndicatorDataSeries Result { get; set; }


            protected override void Initialize()
            {
                _triangularMovingAverage = Indicators.TriangularMovingAverage(MarketSeries.Close, 21);
                _averageTrueRange = Indicators.GetIndicator<AverageTrueRange>(100);
            }
           
          double calcPrevTrue( int index )
          {
             double dblSum  = MarketSeries.Close[ index - 1] * 21;
                double dblSumw = 21;
                int jnx, knx;
       
                dblSum  -= MarketSeries.Close[ index ] * 20;
                dblSumw -= 20;

                for ( jnx = 1, knx = 20; jnx <= 20; jnx++, knx-- )
                {
                   dblSum  -= MarketSeries.Close[index - 1 - jnx ] * knx;
                   dblSumw -= knx;
                }
             return ( dblSum / dblSumw );
          }


            public override void Calculate(int index)
            {
                double dblTma, dblPrev;
                double atr =_averageTrueRange.Result[index - 10] / 10;
                double gadblSlope = 0.0;

                if ( atr != 0 )
                {
                   dblTma = _triangularMovingAverage.Result[index];
                   dblPrev = calcPrevTrue( index );
                   gadblSlope = ( dblPrev - dblTma ) / atr;
                }
                Result[index] = gadblSlope ;
            }
        }
    }




@DomnikInvest

DomnikInvest
05 Jun 2013, 14:17

Thanks I already see where was the problem.... THX anyway


@DomnikInvest

DomnikInvest
04 Jun 2013, 18:42

Please can you help me to fix the code its my first time with C# and I am stil confused  - If you can show me how to fix I can learn from this for the future....THX


@DomnikInvest

DomnikInvest
04 Jun 2013, 17:39

Now I add reference and now is withaut errors but dont work 

//#reference: C:\Users\ToTo\Documents\cAlgo\Sources\Indicators\AverageTrueRange.algo
// -------------------------------------------------------------------------------
//
//    This is a Template used as a guideline to build your own Robot. 
//    Please use the “Feedback” tab to provide us with your suggestions about cAlgo’s API.
//
// -------------------------------------------------------------------------------

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

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = false)]
    public class TMASlope : Indicator
    {
		private AverageTrueRange _averageTrueRange;
		private TriangularMovingAverage _triangularMovingAverage;
		
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        [Output("Main", Color = Colors.Turquoise, PlotType = PlotType.Histogram)]
        public IndicatorDataSeries Result { get; set; }


        protected override void Initialize()
        {
            _triangularMovingAverage = Indicators.TriangularMovingAverage(MarketSeries.Close, 21);
            _averageTrueRange = Indicators.GetIndicator<AverageTrueRange>(100);
        }
        
		double calcPrevTrue( int index )
		{
			double dblSum  = MarketSeries.Close[ index + 1] * 21;
   			double dblSumw = 21;
   			int jnx, knx;
   
   			dblSum  += MarketSeries.Close[ index ] * 20;
   			dblSumw += 20;

   			for ( jnx = 1, knx = 20; jnx <= 20; jnx++, knx-- )
   			{
      			dblSum  += MarketSeries.Close[index + 1 + jnx ] * knx;
      			dblSumw += knx;
   			}
   		return ( dblSum / dblSumw );
		}


        public override void Calculate(int index)
        {
   			double dblTma, dblPrev;
   			double atr =_averageTrueRange.Result[index + 10] / 10;
   			double gadblSlope = 0.0;

   			if ( atr != 0 )
   			{
      			dblTma = _triangularMovingAverage.Result[index];
      			dblPrev = calcPrevTrue( index );
      			gadblSlope = ( dblTma - dblPrev ) / atr;
   			}
   			Result[index] = gadblSlope ;
        }
    }
}




@DomnikInvest

DomnikInvest
04 Jun 2013, 16:51

This is my first time diling with C# so be patience...hehe ... pleas help me ... I get error... And I dont know if I am going right way...

// -------------------------------------------------------------------------------
//
//    This is a Template used as a guideline to build your own Robot. 
//    Please use the “Feedback” tab to provide us with your suggestions about cAlgo’s API.
//
// -------------------------------------------------------------------------------

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

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = false)]
    public class TMASlope : Indicator
    {
        private AverageTrueRange _averageTrueRange;
        private TriangularMovingAverage _triangularMovingAverage;
        
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        [Output("Main", Color = Colors.Turquoise, PlotType = PlotType.Histogram)]
        public IndicatorDataSeries Result { get; set; }


        protected override void Initialize()
        {
            _triangularMovingAverage = Indicators.TriangularMovingAverage(MarketSeries.Close, 21);
            _averageTrueRange = Indicators.GetIndicator<AverageTrueRange>(100);
        }
        
        double calcPrevTrue( int index )
        {
            double dblSum  = MarketSeries.Close[ index + 1] * 21;
               double dblSumw = 21;
               int jnx, knx;
   
               dblSum  += MarketSeries.Close[ index ] * 20;
               dblSumw += 20;

               for ( jnx = 1, knx = 20; jnx <= 20; jnx++, knx-- )
               {
                  dblSum  += MarketSeries.Close[index + 1 + jnx ] * knx;
                  dblSumw += knx;
               }
           return ( dblSum / dblSumw );
        }


        public override void Calculate(int index)
        {
               double dblTma, dblPrev;
               double atr = _averageTrueRange.Result[index + 10] / 10;
               double gadblSlope = 0.0;

               if ( atr != 0 )
               {
                  dblTma = _triangularMovingAverage.Result[index];
                  dblPrev = calcPrevTrue( index );
                  gadblSlope = ( dblTma - dblPrev ) / atr;
               }
               Result[index] = gadblSlope ;
        }
    }
}


@DomnikInvest

DomnikInvest
04 Jun 2013, 11:31

1 pip = ?$


@DomnikInvest

DomnikInvest
18 Apr 2013, 12:47

hi,

I also recently discovered cAlgo and cTrader and is realy great platform and I loved it. I come here with the same suggestion for MQ4 converter, becaus traders wan't shift to a new platform like cTrader/cAlgo, no matter how superior it si, until the indicators/EAs are aviable or are easily portable.If you make free tool that reliably transletes MQ4 to cAlgo that'd be a huge step forward.

 

@DomnikInvest