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

PanagiotisCharalampous
03 Aug 2020, 15:04

Hi alexnikon,

I am not sure what is the indicator supposed to do but your indexing is definitely wrong. See below how to get the correct indices for your indicators


            double smaHigh = _smaHigh.Result[_bars.OpenTimes.GetIndexByTime(Bars.OpenTimes[index]) - 0];
            double smaHighPrev = _smaHigh.Result[_bars.OpenTimes.GetIndexByTime(Bars.OpenTimes[index]) - 1];
            double smaLow = _smaLow.Result[_bars.OpenTimes.GetIndexByTime(Bars.OpenTimes[index]) - 0];
            double smaLowPrev = _smaLow.Result[_bars.OpenTimes.GetIndexByTime(Bars.OpenTimes[index]) - 1];

Let me know if this helps

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 14:19

Hi Bjorn,

Your questions are not very clear unfortunately. If you are just trying to check the DataSeries values, you can use Last() method and check if the value is NaN or not.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 14:15

Hi puppiebullet1,

You can use Symbol.Bid in the HasCrossedAbove function to check this.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 14:12

Hi keyyuki,

This information is not available in historical data.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 12:56

Hi puppiebullet1,

See the documentation for both methods below

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 12:24

Hi Bjorn,

Try checking the B output value instead of using the SIGNAL variable. What you are doing is not a good programming practice.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 11:57

Hi Bjorn,

The cBot and indicator do exactly what you programmed them to do. You need to fix your logic. For example

 if (high > 0)
            {
                SIGNAL = 1;
                B[index] = Bars.HighPrices[index];
            }

            else
            {
                SIGNAL = 0;
            }

Here you set the B value when there is a signal but not when there isn't. Why? This will cause B having a value and displaying a point while SIGNAL is 0.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 11:18

Hi ricckytrading,

No, nobody has access to the source code.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 10:09 ( Updated at: 21 Dec 2023, 09:22 )

Hi Bjorn,

Also note that this line of code is meaningless so I had to comment it out

After that, the cBot places trades.

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 09:57

Hi ctid2151927,

 The copier didn't restart copy. Will the system charge 30% to the profit make before or not? 

 No. The fee will only be charged when the follower restarts following the strategy.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 09:52

Hi tomashfield0,

The issue can be resolved by your broker by changing some settings in their backend systems. We have informed them what needs to be done. If this has not been resolved yet, please contact them derectly.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 09:48

Hi Bjorn,

Try moving the print function before the if statement

            Print(S2.SIGNAL, "    ", S2.B);
            if (S2.SIGNAL == 1)
            {            
                ExecuteMarketOrder(TradeType.Buy, Symbol.Name, Volume, "buy1", 14, 80);
            }

Indicators implement a lazy loading logic, so the Calculate() function will be called only when an Output property is accessed, S2.B in this case.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 09:29 ( Updated at: 21 Dec 2023, 09:22 )

Hi KoKoy,

1) Copying capital displays only capital from live accounts.

2) Just press the Stop Providing Strategy button.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 09:26

Hi kostya.bartchenkov,

The request requires UNIX timestamps as input which are measured in milliseconds. You need to change your code accordingly.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 09:01

Hi nev.ped,

It is the broker's decision to offer the service or not. You need to contact Pepperstone regarding this.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 08:59

Hi Yuval,

Check Account.BrokerName.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 08:55

Hi Francis,

We have explained what happened in this thread.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 08:48

Dear all,

ctrader.com is just a user community and the scope is to provide technical answers regarding cTrader platform. Based on this, I have explained to you how the system is designed to work and how we will change it in the future to accommodate your feedback. Having said that, we do not offer direct support to traders and cTrader community is by no means a customer support channel, as we do not have a direct business relationship with traders neither do we have a direct access to your accounts. Traders are clients of their brokers, therefore for complaints and compensation requests, you should contact your brokers directly. 

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 08:29

Hi tgjobscv,

There is no broker list. You need to contact your brokers and ask them regarding this feature.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Aug 2020, 08:25

Hi alexnikon,

To give you an advice, you need to provide more information. It would be better to create a new thread, post your code and explain your issue in detail.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous