Replies

PanagiotisCharalampous
05 Feb 2019, 17:27

Hi quangson1511,

After investigating this issue, cMirror team concluded that this is a bug and will be fixed in an upcoming update. If you still have open positions, please close them manually.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 17:20

Hi cysecsbin.01,

Thanks, we managed to reproduce this. The problem is with the optimization results. The backtesting results are correct. We will fix in in an upcoming update.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 15:54

Hi Mikro,

Can you send me the indicator project at community@spotware.com?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 15:36

Hi again,

You can extend the condition. See an example below

var hasBuyOrders = PendingOrders.Count(x => x.TradeType == TradeType.Buy && x.SymbolCode == Symbol.Code && x.Label == "label") > 0;

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 14:47

Hi wisegprs,

Thanks for posting in our forum. You can use something like this

var hasBuyOrders = PendingOrders.Count(x => x.TradeType == TradeType.Buy) > 0;

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 11:44

Hi shrumr,

Also please tell us which broker you use or if it is Spotware Beta.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 10:40

Hi Ryan,

You do not seem to check this function somewhere though

        private void ClosePosition()
        {
            var OpenPosition = Positions.Find(InstanceName, this.Symbol);

            if (OpenPosition.Pips >= profit)
            {
                ClosePosition(OpenPosition);
            }
        }

OpenPosition could be null and crash your cBot

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 10:16

Hi shrumr,

Thanks for reporting the issues you found. Can you please semd us more information regarding point 2? Maybe a screenshot with the history missing?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 10:11

Hi FMogyi,

See below

            var lines = Chart.FindAllObjects(ChartObjectType.HorizontalLine);
            foreach (var line in lines)
            {
                Print((line as ChartHorizontalLine).Y);
            }

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 09:58

Hi Eliezer,

This is how it should work. The function checks if the curve is rising or failing at that moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 17:05

Hi all, 

This will be added to the next version of cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 15:41

Hi Eliezer,

Can you give us an example?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 15:31 ( Updated at: 21 Dec 2023, 09:21 )

Hi rgnfreeman,

Can you please tell me the exact steps you follow to get this message? See below two instances running side by side on different accounts and workspaces. The one is running a cBot and the other one is not.

 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 15:01

Hi Eliezer,

You can use a moving average and check of it is rising or falling. See below

            var sma = Indicators.SimpleMovingAverage(MarketSeries.Close, 8);
            if (sma.Result.IsRising())
            {
                // Open buy position
            }

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 14:43

Hi rgnfreeman,

If you start cTrader twice, two instance of cTrader will start.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 13:59

Hi rgnfreeman,

Yes this is possible. You can run miltiple instances of cTrader side by side.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 11:33

Hi to both,

We will consider separating free and paid indicators in the future. 

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 11:30

Hi cysecsbin.01,

Thanks I will have a look. However in the previous images timeframe is set to h1 while in the last one it is set to h4. Can you tell me which one is the correct?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 10:53 ( Updated at: 21 Dec 2023, 09:21 )

Hi El Antonio,

There is one. See below

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Feb 2019, 10:30

Hi pmcarvalho,

Why do you need to have the function inside an indicator?

Best Regards,

Panagiotis


@PanagiotisCharalampous