manoj.clsd.kumar@gmail.com
manoj.clsd.kumar@gmail.com's avatar

Info

Username:manoj.clsd.kumar@gmail.com
Name:manoj.clsd.kumar@gmail.com
Member since: 04 Dec 2019

About

None

Signature

None

Last Forum Posts

@Selling an Indicator?:  24 Nov 2022, 10:14


I've coded a nice indicator that I think others would find useful, and would like to sell it.

Is there some kind of official process/marketplace for this, or am I responsible to create my own website and sell it independently?

@How to get Dataseries from Bars?:  08 Nov 2022, 09:33


I have a situation where I have a list of symbols, and I want to get the RSI of each symbol.

I can get the RSI of one symbol easily, but to get the RSI for other symbols, I need that symbol's Dataseries.

I used marketData.getBars(), and I can get bars, and high or low. No problem. But i cannot cast this to Dataseries.

How do I convert result of marketData.getBars() to dataseries, so I can pass into first parameter of RSI.



EDIT:

Found.

getBars().ClosePrices returns a dataseries.

@Running algo not specific to any chart:  22 Oct 2022, 15:44


I've created an algo that will monitor all positions across all pairs, and close breakeven etc, with a bit more logic.

But I realize I want to run 1 copy of this algo as part of ctrader altogether.

I don't neccesarily want to attach it to any one chart.

Is there a way to run the algorithm, in a way that's non-specific to a symbol?

@Calculating maximum loss on a position:  17 Oct 2022, 12:18


I'm trying to calculate the maximum loss on a position (including commissions and swaps) and am having trouble figuring out how to calculate it:

I'm trying:

Is this the correct way?
How can I get swaps?

Are these values in the base currency of my account or the currency of the trade?

@BUG! Missing Monthly bar data:  17 Oct 2022, 09:51


Spotware said:

Dear trader,

The M1 data is missing. Please contact the broker.

Best Regards,

cTrader Team


Ahh each timeframe is it's own dataseries of bars, that makes sense!

Thank you for investigating, I will contact the broker.

@BUG! Missing Monthly bar data:  14 Oct 2022, 17:16


Spotware said:

Hi there,

Can you provide a small source code example that reproduces the problem so that we can check?

Best regards,

cTrader Team

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo
{
    [Indicator(AccessRights = AccessRights.None)]
    public class SampleUSDZAR : Indicator
    {
        [Parameter(DefaultValue = "Hello world!")]
        public string Message { get; set; }

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }

        protected override void Initialize()
        {
            Bars monthBars = MarketData.GetBars(TimeFrame.Monthly);
                          monthBars.ToList().GetRange(monthBars.Count()-5,5).ForEach((el)=>{
                Print($"{el.OpenTime.ToLongDateString()} -- {el.Low}");
              });
                Print("---");

        }

        public override void Calculate(int index)
        {
            // Calculate value at specified index
            // Result[index] = 
        }
    }
}

@BUG! Missing Monthly bar data:  14 Oct 2022, 08:19


Spotware said:

Dear trader,

Did you check the charts? Is the monthly bar missing from the chart as well? If yes, then this is a problem of the data and not of the method.

Best Regards,

cTrader Team

The data IS visible in the chart, the candles are visible in the chart.

Just getBars(), does not return that bar.

Please see if this can be reproduced. The pair is USDZAR.
Broker is ICMarket.

@BUG! Missing Monthly bar data:  13 Oct 2022, 18:42


Hi, It seems MarketData.GetBars() sometimes misses entire bars, it becomes a problem, especially if you're getting monthly data because it is very easy to notice an enitre month of missing data:

See:



As can be seen it is completely missing the bar that starts on August 31st, and ends September 1st!

I noticed this as I tried to calculate pivots for each month, and ended up with a central pivot nowhere near the candlesticks in the previous period, and realised it was using data from one period before (ie; there is a missing bar).

Please advise any work arounds to this.

@Self-hosting CALGO VPS?:  14 Sep 2022, 05:47


amusleh said:

Hi,

We are developing a lightweight console version of cTrader automate that you will be able to use on Mac, Windows, and Linux, you can install it on a docker container.

It's not released yet, right now it's in development phase.

Hi,


Is there any update on this?

@Editing with visual studio on 4.2 not working?:  14 Apr 2022, 05:09


I've decided to just move to using Visual Studio to edit algorithms, and installed Visual Studio 2022, I tried using it with 4.1 and found it wasn't supported.
So I moved to using 4.2, and when I click "edit with visual studio" in calgo. Nothing happens. Absolutely nothing. Nothing opens, nothing throws an error. The dropdown  menu just closes and it doesn't do anything.

Even if visual studio is open in the background, nothing happens.

Any ideas?

EDIT: I've got it working now. Apparently, it only works if you create a new bot in 4.2, If you try to open an existing bot that was created in 4.1, it will fail silently.

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.