Replies

Manuel_Meza
31 May 2016, 18:34

Thanks. I resolve the problem


@Manuel_Meza

Manuel_Meza
23 May 2016, 19:30 ( Updated at: 24 May 2016, 10:22 )

Please help me

This post was removed by moderator because it duplicates another post. /forum/calgo-support/9216?page=1#5


@Manuel_Meza

Manuel_Meza
23 May 2016, 19:29

I still have problem... 

 

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
using System.Linq;
namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class Mrm1AnalisisRetrocesos10 : Indicator
    {

        string[] Pairs = 
        {
            "AUDCAD",
            "AUDJPY",
            "USDMXN"
        };

        private MarketSeries[] h3MS = new MarketSeries[30];


        protected override void Initialize()
        {

            for (int i = 0; i < Pairs.Length; i++)
                h3MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Hour3);

        }

        public override void Calculate(int index)
        {
            ChartObjects.DrawText("1", "1: Hi", StaticPosition.TopLeft, Colors.Blue);
            ChartObjects.DrawText("2", "2: Hello", StaticPosition.TopRight, Colors.Blue);
            ChartObjects.DrawText("3", "3: Bye", StaticPosition.BottomLeft, Colors.Blue);
            ChartObjects.DrawText("4", "4: Usa", StaticPosition.TopLeft, Colors.Blue);
            ChartObjects.DrawText("5", "5: Mexico", StaticPosition.TopRight, Colors.Blue);
            ChartObjects.DrawText("6", "6: Tri", StaticPosition.BottomLeft, Colors.Blue);
        }
    }
}


@Manuel_Meza

Manuel_Meza
23 May 2016, 16:53

Ok Spotware

I have only a loop... dont finish...

One week ago, its working fine... but now, I have this problem... I will try to reinstall cAlgo...

 

this indicator, its working on vps and my computer...

 

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
using System.Linq;
using System.Text;
using System.Collections.Generic;
namespace cAlgo
{
    public class Listtype
    {
        public String Indice { get; set; }
        public String Par { get; set; }
        public String m10H1H4D1 { get; set; }
        public String RatioBeneficio { get; set; }
    }

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

        string[] Pairs = 
        {
            "AUDCAD",
            "AUDJPY",
            "USDMXN"
        };
        private MarketSeries[] m10MS = new MarketSeries[30];
        private MarketSeries[] m15MS = new MarketSeries[30];
        private MarketSeries[] m30MS = new MarketSeries[30];
        private MarketSeries[] h1MS = new MarketSeries[30];
        private MarketSeries[] h2MS = new MarketSeries[30];
        private MarketSeries[] h3MS = new MarketSeries[30];
        private MarketSeries[] h4MS = new MarketSeries[30];
        private MarketSeries[] h6MS = new MarketSeries[30];
        private MarketSeries[] h8MS = new MarketSeries[30];
        private MarketSeries[] h12MS = new MarketSeries[30];
        private MarketSeries[] D1MS = new MarketSeries[30];
        private MarketSeries[] D2MS = new MarketSeries[30];
        private MarketSeries[] D3MS = new MarketSeries[30];
        private MarketSeries[] W1MS = new MarketSeries[30];
        private MarketSeries[] M1MS = new MarketSeries[30];
        private Symbol[] symbol0 = new Symbol[30];


        protected override void Initialize()
        {

            for (int i = 0; i < Pairs.Length; i++)
            {
                m10MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Minute10);
                m15MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Minute15);
                m30MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Minute30);
                h1MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Hour);
                h2MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Hour2);
                h3MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Hour3);
                h4MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Hour4);
                h6MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Hour6);
                h8MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Hour8);
                h12MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Hour12);
                D1MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Daily);
                D2MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Day2);
                D3MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Day3);
                W1MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Weekly);
                M1MS[i] = MarketData.GetSeries(Pairs[i], TimeFrame.Monthly);

            }
            var Table1 = new StringBuilder();
            Table1.AppendLine("Bid\tTime\tMillion\t\tAsk\tTime\tMillion");
            Table1.AppendLine("(Buys)\tago\tUnits\t\t(Sells)\tago\tUnits");
            Table1.AppendLine("----------------------------------------------------------------------------------");
            ChartObjects.DrawText("Header1", Table1.ToString(), StaticPosition.TopLeft, (Colors)Enum.Parse(typeof(Colors), "White", true));
        }

        public override void Calculate(int index)
        {

        }



    }
}


@Manuel_Meza

Manuel_Meza
23 May 2016, 15:31 ( Updated at: 24 May 2016, 10:22 )

Ok... thanks

This post was removed by moderator because it duplicates another post. /forum/calgo-support/9216?page=1#5


@Manuel_Meza

Manuel_Meza
20 May 2016, 19:45 ( Updated at: 24 May 2016, 10:22 )

This post was removed by moderator because it duplicates another post. /forum/calgo-support/9216?page=1#5


@Manuel_Meza

Manuel_Meza
04 May 2016, 00:49

Sorry for my english...

on all Symbol... on timefrime month don't draw the past month (March...

 

Please help me.


@Manuel_Meza

Manuel_Meza
08 Oct 2015, 19:14

RE:

I have the same problem


@Manuel_Meza

Manuel_Meza
08 Apr 2015, 22:29

RE:

Yo podria ayudarte...

ya he realizado varios robots e indicadores.

cuchufletozopo said:

Alguien podría ayudarme a convertir un sencillo indicador de prorealtime a ctrader. únicamente son unas 8 líneas de programa.

muchas gracias

 


@Manuel_Meza

Manuel_Meza
03 Apr 2015, 22:43

Con un loop, que compare cada elemento del array con todos, si en la comparacion, el nuevo es el mas grande, toma ese valor... sino, el que tienes es el valor mas grande.


@Manuel_Meza

Manuel_Meza
03 Apr 2015, 22:39

RE:

Son Metodos, que tu creas... tu decides que quieres que hagan y que no... no son metodos que vienen con el programa. Espero te sirva...

 

JeremyG said:

Hi,

I'm new to C#/cAlgo and I'm trying to learn from some of the example cBots.

I noticed in the Sample RSI cBot that there are Open() and Close() methods in use:

private void Close(TradeType tradeType)

and:

if (rsi.Result.LastValue < 30)
{
Close(TradeType.Sell);
Open(TradeType.Buy);
}

 

However I can't find these methods in the documentation - can anyone explain what these are and how to use them (or point me to documentation)?

 

 

Thanks,

Jeremy

 

 

 

 


@Manuel_Meza