PanagiotisCharalampous's avatar
PanagiotisCharalampous
26 follower(s) 0 following 1006 subscription(s)
Replies

PanagiotisCharalampous
05 Apr 2018, 14:35

Hi travkinsm1,

Thanks for posting in our forum. When you say it hangs, what do you mean? Does in throw an exception? Can you send us screenshots? Could you also provide us with parameters that we can use to reproduce your problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Apr 2018, 14:29

Hi yearn2012,

Your questions are very broad and cannot be answered in a single post.

1. how to add awidget,eg:A button or messageBox

You need to be more specific to this. In general, it is possble to launch external forms using a cBot.

 2.how to get the infos of current chart and all opened cha

What info of the chart do you need? Bars, spot prices, time?

 If i want to access it,is it have api support,which API is it

It is not clear what you want to access? The chart? Do you need to add information on the chart? Please be more specific.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
05 Apr 2018, 14:24

Hi megha,

Unfortunately FIX API does not support this currently.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 15:12

Hi megha,

Of course you can. You just need to send an order to the opposite direction and specify the position that you want to close in tag 721.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 15:03

Hi Dutch_Porto,

Renko and Range bars will be available in cTrader Web but not for version 3.01. They will be added in a future update.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 14:12

Hi Gwave,

The reason of the problem is described here. Replacing http to https seems to bypass the problem. In case you face this in the future again, have it in mind.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 12:42

Hi Dutch_Porto,

Thanks for posting in our forum. Both Renko and Range bars are planned for 3.01.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 11:35

Hi pozhy,

You can get real time Symbol prices in a cBot by reading Symbol Ask and Bid properties. Here is also some guidance on how to use Visual Studio for your cBot development.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 10:20

Hi lec0456,

Ok I think I understand your point. Maybe you could tweak a bit the indicator and replace the NaN values with 0 so that it behaves as you expected. See below

        public override void Calculate(int index)
        {
            if (index - 1 < 0)
                return;

            DateTime CurrentDate = MarketSeries.OpenTime[index].AddHours(2);
            DateTime PreviousDate = MarketSeries.OpenTime[index - 1].AddHours(2);
            int DateDifference = (int)(CurrentDate.Date - PreviousDate.Date).TotalDays;

            //**Dayend
            if (CurrentDate.DayOfWeek != PreviousDate.DayOfWeek && PreviousDate.DayOfWeek != DayOfWeek.Sunday)
            {
                if (!HideDayLabels)
                    ChartObjects.DrawText("DayLabel" + index, " " + Convert.ToString(CurrentDate.DayOfWeek), index, MarketSeries.Low.Minimum(PeriodsPerDay), VerticalAlignment.Bottom, HorizontalAlignment.Right);
                if (!HideDayDividers)
                    ChartObjects.DrawVerticalLine("Dayend" + index, index, Colors.Orange, 1, LineStyle.DotsRare);
                Dayend[index] = MarketSeries.Median[index];
                //Print(CurrentDate.Date+" "+DateDifference);
            }
            else
            {
                Dayend[index] = 0;
            }

            //** Weekend

            //if(DateDifference>1)
            if (CurrentDate.DayOfWeek < PreviousDate.DayOfWeek || DateDifference > 6)
            {
                if (!HideWeekDividers)
                    ChartObjects.DrawVerticalLine("Weekend" + index, index, Colors.Red, 1, LineStyle.DotsRare);
                Weekend[index] = MarketSeries.Median[index];
                //Print(CurrentDate.Date+" "+DateDifference);
            }
        }

With the above change, NaN values will be replaced with zeros and will not be skipped by last value functions.

Let me know if this works for you.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 09:56

Hi all,

This tool is in our plans but currently we are working on higher priority features. We hope that we will be able to start working on this as well in the near future.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 09:40

Hi Alexander,

Yes it is. You can read here how to do this.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 09:35

Hi pieroim,

Thanks for posting in our forum. Currently it is not possible to install cTrader on a custom folder of your choice.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Apr 2018, 09:30

Hi Gwave,

Can you try to download the application from this link and let me know if it works?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Apr 2018, 16:18

Hi dordkash@gmail.com,

That is my point. Spotware cTrader Beta might have a different price feed than your broker, therefore it would be better to test your cBot on your broker's cAlgo instead.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Apr 2018, 16:03

Hi dordkash@gmail.com,

There is no gap in the price. We just have a different price feed than the broker you posted. If you are backtesting a cBot, I would advise you to backtest it on the price feed of your broker, using that broker's cAlgo.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Apr 2018, 15:39

Dear dordkash@gmail.com,

Thanks for the screenshots. Indeed there are differences between the charts but such differences are expected between different price feeds and liquidity providers. I don't see anything suspicious. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Apr 2018, 15:15

Hi dordkash@gmail.com,

Could you please provide some screenshots of the issue? Please also have in mind that brokers are responsible for the price feed therefore you might need to contact your broker for such an issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Apr 2018, 15:06

Hi lec0456,

Dayend IndicatorDataSeries and Robots MarketSeries have different lengths. When you call

 div.Dayend[MarketSeries.Close.Count - 1]

you are requesting data out of the bound of Dayend series and that is why you receive NaN value. If you change it to 

div.Dayend[div.Dayend.Count - 1]

it should work same as Last(0) and LastValue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Apr 2018, 14:03

Hi OneMillionProfit,

The maximum length is 100 for both fields.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Apr 2018, 09:18

Hi all,

Could you please contact FXPIG for that? It seems to be a broker specific issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous