Topics
Replies
Spotware
03 Apr 2014, 14:07
RE: RE: How to split string
breakermind said:
Hi,
how to get current price for all available currency?
You can get current price for specific symbol by the following code:
var symbol = MarketData.GetSymbol("EURUSD"); Print("ask: " + symbol.Ask); Print("bid: " + symbol.Bid);
There is no list of all available symbols in cAlgo.API. If you want to enumerate some specific symbols you will need to hardcode list of them.
@Spotware
Spotware
02 Apr 2014, 10:26
Thank you for your ideas. We will consider it. Additionally, you can post your ideas to vote.spotware.com.
@Spotware
Spotware
02 Apr 2014, 10:17
As we can see newStopLossPrice doesn't depend on any position properties:
double newStopLossPrice = Math.Round(Symbol.Bid - TrailingStop * Symbol.PipSize, Symbol.Digits);
Therefore it is expected that all positions (with the same trade type and distance more than Trigger) will have the same value of stop loss.
Could you please be more specific?
@Spotware
Spotware
02 Apr 2014, 10:04
RE: RE:
AXPN said:
Spotware said:
This issue has not been fixed.
I know it hasn't been fixed. I can see that on my platform. I'm asking if it has been looked at? With a major problem like this how long does it take to get it fixed? cTrader is useless and unreliable with problems like this. This is not a requirement for an improvement. This is a BIG BIG PROBLEM that needs to be fixed ASAP! This puts a question mark on the reliability of cTrader!
This issue is under investigation.
@Spotware
Spotware
31 Mar 2014, 09:19
It is not currently possible. You can add your idea to vote.spotware.com
@Spotware
Spotware
28 Mar 2014, 10:20
Thank you for your idea, we will consider it. Additionally, you can post your idea to vote.spotware.com
@Spotware
Spotware
28 Mar 2014, 10:15
No, there is no such functionality in cAlgo.API. You can post your idea to vote.spotware.com
@Spotware
Spotware
28 Mar 2014, 10:14
There is no netting functionality in backtesting. Probably you have a mistake in code of your cBot.
Try to backtest the following cBot and you will see that positions are not merged:
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewcBot : Robot { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } protected override void OnStart() { ExecuteMarketOrder(TradeType.Buy, Symbol, 10000); ExecuteMarketOrder(TradeType.Sell, Symbol, 10000); } protected override void OnStop() { foreach (var p in Positions) ClosePosition(p); } } }
@Spotware
Spotware
28 Mar 2014, 10:06
Click take profit 1 , select the amount of pips of your take profit and the volume it will close
Click take profit 2 , select the amount of pips of your take profit and the volume it will close etc
You can check out this video for more information
http://youtu.be/v9rUd53B260
@Spotware
Spotware
03 Apr 2014, 14:40
We do not provide time frames through this channel. All I can say is that it's in our roadmap.
Thank you for your patience.
@Spotware