Topics
Replies
Spotware
27 Mar 2014, 09:21
No, cAlgo.API doesn't provide such functionality. You can add your idea to vote.spotware.com
@Spotware
Spotware
27 Mar 2014, 09:09
RE: RE:
Forex19 said:
Spotware said:
Please look at the following example:
var eurUsdPositionsCount = Positions.Count(p => p.SymbolCode == "EURUSD");
Why gives me this error?:
Error CS1955: Non-invocable member 'cAlgo.API.Positions.Count' cannot be used like a method.
You need to add using System.Linq;
@Spotware
Spotware
26 Mar 2014, 16:56
( Updated at: 21 Dec 2023, 09:20 )
No, it is not possible.
For such semi-automated system you can add several cBots with OnStart handlers to the same chart and start them by clicking start buttons whenever you want.
In such case you will have one button per one cBot.
@Spotware
Spotware
26 Mar 2014, 11:47
RE: RE:
Forex19 said:
Spotware said:
Please look at the following example:
var eurUsdPositionsCount = Positions.Count(p => p.SymbolCode == "EURUSD");
So if I want to have separate count for two Symbol, should I use:
var eurUsdPositionsCount = Positions.Count(p => p.SymbolCode == "EURUSD");and
var eurGbpPositionsCount = Positions.Count(p => p.SymbolCode == "EURGBP");is correct?
Yes, it is correct.
@Spotware
Spotware
26 Mar 2014, 10:35
public override void Calculate(int index) { spread1[index] = Math.Round(symbol1.Spread / symbol1.PipValue, 1);
Such expression is not correct, because Symbol.Spread is a current value of Spread. You can not match historical index with current value of spread. Probably you will see line with the same value in every point.
@Spotware
Spotware
26 Mar 2014, 10:31
It is currently not possible.
We can recommend you to post your idea to vote.spotware.com.
@Spotware
Spotware
24 Mar 2014, 09:45
Please read Referencing Custom Indicators.
If you prefer shift-style indexes, you will like method Last of DataSeries class.
@Spotware
Spotware
21 Mar 2014, 17:25
Thank you for your idea. You can post it to vote.spotware.com.
@Spotware
Spotware
21 Mar 2014, 17:25
Thank you for your idea. You can post it to vote.spotware.com.
@Spotware
Spotware
21 Mar 2014, 08:42
RE:
emelenium said:
And how can we change positions.Comment? (in cAlgo)
There is no such functionality in cAlgo.API. You can post your idea to vote.spotware.com
@Spotware
Spotware
27 Mar 2014, 12:08
Yes, you can:
Another way to calculate positions with specific label:
@Spotware