list of symbols
list of symbols
18 Aug 2015, 08:11
How to make a drop-down list of symbols in the parameters cBots?
Replies
ClickAlgo
18 Aug 2015, 11:09
[Parameter("Custom Timeframe")] public TimeFrame MyCustomTimeFrame { get; set; }
@ClickAlgo
ClickAlgo
18 Aug 2015, 11:46
When you create an instance it is the instance of the symbol, you cannot as far as I know dynamically change this, what what you can do as a workaround is this.
[Parameter("Custom Symbol Name", DefaultValue = "EURUSD")] public string CustomSymbolName{ get; set; }
Symbol symbol = MarketData.GetSymbol(CustomSymbolName);
@ClickAlgo
mfedora
18 Aug 2015, 12:04
RE:
track parameter change does not happen?
Some event occurs when you change a parameter?
Paul_Hayes said:
When you create an instance it is the instance of the symbol, you cannot as far as I know dynamically change this, what what you can do as a workaround is this.
[Parameter("Custom Symbol Name", DefaultValue = "EURUSD")] public string CustomSymbolName{ get; set; }Symbol symbol = MarketData.GetSymbol(CustomSymbolName);
@mfedora
mfedora
18 Aug 2015, 12:22
RE:
public enum mySymbols { AUDCAD, AUDCHF, AUDDKK, AUDJPY, AUDNZD, AUDUSD, CADCHF, CADJPY, CHFJPY, EURAUD, EURCAD, EURCHF, EURGBP, EURHUF, EURJPY, EURNOK, EURNZD, EURSEK, EURUSD, GBPAUD, GBPCAD, GBPCHF, GBPJPY, GBPNOK, GBPNZD, GBPSGD, GBPUSD, NZDCAD, NZDCHF, NZDJPY, NZDUSD, USDCAD, USDCHF, USDDKK, USDJPY, USDMXN, USDNOK, USDSEK, USDSGD, USDPLN } [Parameter("Symbol1", DefaultValue = mySymbols.EURUSD)] public mySymbols symbol1 { get; set; }
so ideally
but does not work.
Paul_Hayes said:
can you explain a bit further the problem please.
@mfedora
ClickAlgo
18 Aug 2015, 12:57
They do not support this :-(
I totally agree with you we should have this feature, it would make my life much easier, but I am afraid we must do hack jobs for the time being.
Unless someone else has come up with a better solution, I would be happy to hear it, but cAlgo will not allow complex datatypes, just primitive datatypes like int, float, string etc. and their own object model.
I am off to beach now, bye.
@ClickAlgo
ncel01
27 Jun 2024, 15:23
( Updated at: 28 Jun 2024, 01:30 )
Hello,
Is this not yet possible?
Forex symbols have consistent names across brokers, but other symbols don't.
Considering this and a multi-symbol cBot:
The possibility to add a drop-down list (to the parameters) containing all the available symbols for the current account would be very useful. As already available (by default) with every cBot instance.
Thanks.
@ncel01
PanagiotisCharalampous
28 Jun 2024, 07:04
RE: list of symbols
ncel01 said:
Hello,
Is this not yet possible?
Forex symbols have consistent names across brokers, but other symbols don't.
Considering this and a multi-symbol cBot:
The possibility to add a drop-down list (to the parameters) containing all the available symbols for the current account would be very useful. As already available (by default) with every cBot instance.
Thanks.
Hi ncel01,
It is possible to use an enum as a parameter now.
Best regards,
Panagiotis
@PanagiotisCharalampous
ncel01
28 Jun 2024, 09:19
( Updated at: 28 Jun 2024, 09:24 )
RE: RE: list of symbols
PanagiotisCharalampous said:
ncel01 said:
Hello,
Is this not yet possible?
Forex symbols have consistent names across brokers, but other symbols don't.
Considering this and a multi-symbol cBot:
The possibility to add a drop-down list (to the parameters) containing all the available symbols for the current account would be very useful. As already available (by default) with every cBot instance.
Thanks.
Hi ncel01,
It is possible to use an enum as a parameter now.
Best regards,
Panagiotis
Hi Panagiotis,
I mean a dynamic drop-down list, containing all the exact symbol names for the current account. Not a static list.
Is this possible?
@ncel01
PanagiotisCharalampous
28 Jun 2024, 10:27
RE: RE: RE: list of symbols
ncel01 said:
PanagiotisCharalampous said:
ncel01 said:
Hello,
Is this not yet possible?
Forex symbols have consistent names across brokers, but other symbols don't.
Considering this and a multi-symbol cBot:
The possibility to add a drop-down list (to the parameters) containing all the available symbols for the current account would be very useful. As already available (by default) with every cBot instance.
Thanks.
Hi ncel01,
It is possible to use an enum as a parameter now.
Best regards,
Panagiotis
Hi Panagiotis,
I mean a dynamic drop-down list, containing all the exact symbol names for the current account. Not a static list.
Is this possible?
No this is not possible
@PanagiotisCharalampous
ncel01
28 Jun 2024, 17:18
RE: RE: RE: RE: list of symbols
PanagiotisCharalampous said:
ncel01 said:
PanagiotisCharalampous said:
ncel01 said:
Hello,
Is this not yet possible?
Forex symbols have consistent names across brokers, but other symbols don't.
Considering this and a multi-symbol cBot:
The possibility to add a drop-down list (to the parameters) containing all the available symbols for the current account would be very useful. As already available (by default) with every cBot instance.
Thanks.
Hi ncel01,
It is possible to use an enum as a parameter now.
Best regards,
Panagiotis
Hi Panagiotis,
I mean a dynamic drop-down list, containing all the exact symbol names for the current account. Not a static list.
Is this possible?
No this is not possible
That's a pity.
It looks like Account.Symbols is also a missing/needed property for an account.
Are there any plans to add this information to the API?
Forex symbols have consistent names across brokers, but other symbols don't.
This makes a standard (static) enum list not the most convenient/effective solution for a multi-symbol cBot.
@ncel01
ncel01
14 Jul 2024, 18:44
RE: RE: RE: RE: RE: list of symbols
ncel01 said:
PanagiotisCharalampous said:
ncel01 said:
PanagiotisCharalampous said:
ncel01 said:
Hello,
Is this not yet possible?
Forex symbols have consistent names across brokers, but other symbols don't.
Considering this and a multi-symbol cBot:
The possibility to add a drop-down list (to the parameters) containing all the available symbols for the current account would be very useful. As already available (by default) with every cBot instance.
Thanks.
Hi ncel01,
It is possible to use an enum as a parameter now.
Best regards,
Panagiotis
Hi Panagiotis,
I mean a dynamic drop-down list, containing all the exact symbol names for the current account. Not a static list.
Is this possible?
No this is not possible
That's a pity.
It looks like Account.Symbols is also a missing/needed property for an account.
Are there any plans to add this information to the API?
Forex symbols have consistent names across brokers, but other symbols don't.
This makes a standard (static) enum list not the most convenient/effective solution for a multi-symbol cBot.
Are there any plans to add this information to the API?
@ncel01
mfedora
18 Aug 2015, 09:58
As well as how to make a drop-down list timeframes?
@mfedora