Topics
11 Dec 2024, 09:55
 112
 2
04 Nov 2024, 17:12
 271
 5
22 Oct 2024, 06:29
 0
 138
 0
20 Oct 2024, 04:36
 174
 1
11 Oct 2024, 06:30
 0
 150
 0
11 Oct 2024, 06:30
 0
 150
 0
10 Oct 2024, 12:37
 154
 2
13 Sep 2024, 07:14
 1
 179
 0
21 Aug 2024, 16:28
 0
 169
 0
12 Aug 2024, 08:14
 0
 225
 1
06 Aug 2024, 06:38
 257
 1
22 Jul 2024, 08:13
 0
 271
 0
22 Jul 2024, 08:13
 0
 209
 0
08 Jul 2024, 08:24
 0
 338
 1
Replies

eynt
28 Oct 2021, 10:04

RE: RE: RE: RE: RE: RE: RE:

My original single symbol cBot has dozens of private members (strings, integers, etc.). All those members were designed for a single symbol. Now that there are many symbols, each of them should have a different value per symbol. Is there an easy straight forward way to convert all the members from single to multi symbol?

 

Thanks

 


@eynt

eynt
26 Oct 2021, 00:06

RE: RE: RE: RE: RE:

What if I want to use OnTick for more than one symbol?

 

Thanks


@eynt

eynt
25 Oct 2021, 06:33

RE: RE: RE:

Hello

I have failed converting my code from a single to multi symbol. Perhaps you can attach a code sample of how you converted one of cTrader cBot samples (such as Sample Aligator, Sample Bears Power etc.) from single to multi symbol. An important note: The code must support running on a back test as well the same way (meaning one chart will run several symbols).

Thanks

 


@eynt

eynt
22 Oct 2021, 12:38

RE:

I will but what is the meaning of error  number 62086147?

 


@eynt

eynt
20 Oct 2021, 01:37

RE: RE: RE:

I have only 1 cBot but I cannot upload it.

This error number must mean something. What is the meaning of error  number 62086147?

 

Thanks

 


@eynt

eynt
18 Oct 2021, 14:04

RE:

I cannot upload the code because it's discret. What is the meaning of the error code?

 

Thanks

 


@eynt

eynt
15 Jul 2021, 10:37

RE: RE:

I have tried to reinstall the app and connecting the computer to another screen but it does not help

 

Thanks


@eynt

eynt
14 Jul 2021, 17:21 ( Updated at: 21 Dec 2023, 09:22 )

RE:

 


@eynt

eynt
14 Jul 2021, 14:51

RE:

I don't have a restore option. I am using windows 10

 

 

 


@eynt

eynt
13 Jul 2021, 11:43 ( Updated at: 21 Dec 2023, 09:22 )

RE:

As can be seen the cTrader is taking space of the entire screen and there's no way to change its size. The only option is to use alt+tab, but in this case when going back to cTrader it will go back for full screen

 

 

 


@eynt

eynt
02 Jul 2021, 10:56

RE:

Hello

 

The code is very large and complex. Are there any logs or dump files which might explain what happened?

 


@eynt

eynt
25 Jun 2021, 09:12

RE:

How can I submit a feature request?

 

Thanks

 


@eynt

eynt
25 Jun 2021, 08:57

RE:

Is there anything new regarding the option to call LoadMoreHistory on backtests?

 

Thanks

 


@eynt

eynt
16 Jun 2021, 09:29 ( Updated at: 21 Dec 2023, 09:22 )

RE:

 


@eynt

eynt
15 Jun 2021, 20:24

RE:

Many symbols, such as EURNZD, GBPCAD, GBPCHF, EURUSD etc.

 


@eynt

eynt
15 Jun 2021, 09:16

RE:

I've printed my leverage using the code below and got the following prints:

15/06/2021 09:09:06.933 | vol: 1000000000 lev: 50
15/06/2021 09:09:06.933 | vol: 250000000 lev: 100
15/06/2021 09:09:06.933 | vol: 200000000 lev: 500
 

Which is not what I expected to get. My Pepperstne account leverage is 1:500 regardless of volume.

 

 

foreach (LeverageTier a in Symbol.DynamicLeverage)
            {
                Print("vol: " + a.Volume + " lev: " + a.Leverage);
            }

 

Thanks

 


@eynt

eynt
15 Jun 2021, 08:42

RE:

Thank you

 

I was able to access the account leverage by this.Account.PreciseLeverage. How can I access the SymbolInfo.DynamicLeverage property?

 


@eynt

eynt
04 Jun 2021, 16:37

RE:

PanagiotisCharalampous said:

Hi yuval.ein,

No this should not affect it. Probably the broker has disabled cTrader Copy.

Best Regards,

Panagiotis 

Join us on Telegram

 

 

I understand it means I cannot copy others while using my Pepperstone account. Can others copy me while I'm using Pepperstone?

 

Thanks


@eynt

eynt
20 Apr 2021, 15:21

RE:

I've tried the following but when I change the text in one of the files in the directory but nothing happens (no prints):

 

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
using System.IO;

namespace cAlgo
{
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
   
    public class NewIndicator : Indicator
    {
        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }

        private FileSystemWatcher _watcher;

        protected override void Initialize()
        {
            _watcher = new FileSystemWatcher(@"d:\temp\");

            _watcher.NotifyFilter = NotifyFilters.Attributes
                                 | NotifyFilters.CreationTime
                                 | NotifyFilters.DirectoryName
                                 | NotifyFilters.FileName
                                 | NotifyFilters.LastAccess
                                 | NotifyFilters.LastWrite
                                 | NotifyFilters.Security
                                 | NotifyFilters.Size;

            _watcher.Changed += OnBlockFileChanged;
        }
        private void OnBlockFileChanged(object sender, FileSystemEventArgs e)
        {
            try
            {
                Print("OnBlockFileChanged " + e.ChangeType + "    " + e.Name);
            }
            catch (Exception ex)
            {
                Print("error OnBlockFileChanged " + ex);
            }
        }
        public override void Calculate(int index)
        {
            // Calculate value at specified index
            // Result[index] = ...
        }
    }
}
 

 


@eynt

eynt
18 Apr 2021, 12:06

RE:

Hi

There's a problem with this approach:

Once the LoadMoreHistory (which was called by the first indicator) is finished, the secondary immediately calls the Calculate method, BEFORE the first indicator had the time to change the value in the file. Therefor, the Calculate method will not be called although it should have.

 

Thanks

 


@eynt