Topics
Replies
PanagiotisCharalampous
29 Jan 2018, 12:45
Hi Daniel,
Currently cAlgo does not offer any of the two functionalities. However, they are both in our backlog therefore you should expect them in a future release of cAlgo.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 12:38
Hi Daniel,
Thanks for posting in our forum. Can you please share your code so that we can check what is wrong?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 12:35
Hi Alexander,
The problem lies in the following line of code
var distance = _tradeType != TradeType.Sell ? Symbol.Bid - entryPrice : entryPrice - Symbol.Ask;
The _tradeType is always Sell even if the open position is Buy. Can you explain to us what are you trying to achieve here?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 11:46
Hi dordkash@gmail.com,
Can you share your code with us to check what could go wrong?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 11:11
Hi DelTrader,
This is not possible using cAlgo.API. You can do that using Connect API however this is not so simple therefore I cannot provide you with an example code. You will need advanced coding skills to achieve that.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jan 2018, 15:23
Hi hadikhalil86@gmail.com,
This needs to be troubleshooted by our support team. Please send an email to feedback@spotware.com with the following details.
- cTID
- Time of events that you would expect to get an email but you did not receive one.
After that our engineers with investigate if the emails are sent from our side.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jan 2018, 11:54
Dear Trader,
Thanks for posting in our forum. This value is used to add pips to the breakeven price. If, for example your break even price is 1.24566 and you add 1 pip to to the break even price, then when the trigger is fired it will move the stop loss to 1.24566 + 1 pip = 1.24576.
Let me know if my explanation is clear enough.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jan 2018, 11:39
Hi tradingu,
cTrader Copy can cater both types of clients. Are there any features you believe professional money managers should have?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jan 2018, 10:13
Hi DelTrader,
See below a correct way to write this function
protected override void OnTick() { var Symbol1MarketData = MarketData.GetSymbol("EURUSD"); var Symbol2MarketData = MarketData.GetSymbol("USDJPY"); var Symbol3MarketData = MarketData.GetSymbol("EURGBP"); var Symbol1Low = MarketSeries.Low.LastValue; var Symbol2Low = MarketSeries.Low.LastValue; var Symbol3Low = MarketSeries.Low.LastValue; var Symbol1Bid = Symbol1MarketData.Bid; var Symbol2Bid = Symbol2MarketData.Bid; var Symbol3Bid = Symbol3MarketData.Bid; var Symbol1Ask = Symbol1MarketData.Ask; var Symbol2Ask = Symbol2MarketData.Ask; var Symbol3Ask = Symbol3MarketData.Ask; var Symbol1Result = Symbol1Bid - Symbol1Ask; var Symbol2Result = Symbol2Bid - Symbol2Ask; var Symbol3Result = Symbol3Bid - Symbol3Ask; if (Symbol1Result > Symbol2Result && Symbol2Result > Symbol3Result) { ExecuteMarketOrder(TradeType.Buy, Symbol, 1000); } }
Let me know if this helps,
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jan 2018, 10:05
Hi tmc,
cAlgo issue is currently investigating this issue. We still don't know when this is going to be resolved.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2018, 15:50
Hi Piotr,
I am happy to hear that you have resolved your issue and thanks for the tip :) It will be useful in case other cTrader users encounter the same issue .
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2018, 12:24
Hi DelTrader,
See an example below
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() { // Put your initialization logic here } protected override void OnTick() { var USDJPY = MarketData.GetSymbol("USDJPY"); var name = "myObject"; var low = MarketSeries.Low.LastValue; var text = USDJPY.Ask.ToString(); var xPos = MarketSeries.Low.Count; var yPos = low; var vAlign = VerticalAlignment.Bottom; var hAlign = HorizontalAlignment.Right; ChartObjects.DrawText(name, text, xPos, yPos, vAlign, hAlign, Colors.Red); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2018, 12:17
Hi kutkin,
Thanks for posting in our forum. I assume that you are trading using cTrader FIX API. Regarding your questions
1) VWAP execution can be applied on demo accounts as well. So if there is not enough liquidity to cover your order, then you will get a partial execution on a demo account as well.
2) This behavior is by design. We do not send PartiallyFilled execution reports currently.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2018, 12:14
Hi Piotr,
From the report it seems that there is an issue with your .Net framework. I would recommend to repair your .net framework and check if this fixes your problem before proceeding with further troubleshooting.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2018, 12:02
Hi joshc1092,
Yes, I'm aware of that. Is it possible to code it using clago ?
It is possible but it will require some work to be implemented. So I am afraid that I cannot offer you a sample code. If you wand you can ask for a assistance of a Consultant or post a Job.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2018, 11:33
H Drummond360,
The above response in valid in the sense that we do not allow brokers to manipulate the platform in any way that would be harmful to traders. Regarding the response you got from FxPro, indeed cTrader has moved beyond the purely STP/ECN/NDD model. I quote below my reply when the same issue was raised about cTrader offering a dealing desk solution
"You all know that cTrader was introduced as a pure STP/ECN/NDD platform at times when trading technology was subject to limited control and brokers could manipulate most parts of a trading system. Therefore there was a need for a platform that would guarantee proper order execution without any sort of manipulation.
Throughout these years cTrader and Spotware have educated hundreds of thousands of traders regarding fair trading practices and we believe that we have raised awareness amongst traders while pushing brokers to adapt more transparent practices.
However, as time passes and cTrader transforms from a niche solution to a mainstream trading platform, we need to cover more and more of the needs of the industry. Therefore we are expanding our solution by adding a DD add-on. Nevertheless, what still makes us different is that we do not allow misuse of our product in any way. The platform is hosted and managed by us, interventions are not allowed and all execution information is provided to traders in a transparent manner. This means that you can still be sure that cTrader cannot be mistreated in any way. We have built a brand name and a business around “Traders First” and we are not willing to give up on it. We apply a rigorous approval process on who and how is using cTrader, we are constantly monitoring cTrader platforms for possible misuses and we investigate immediately any suspicion for malicious activity. You should rest assured that will be the case with DD enabled platforms as well."
Despite the fact that now cTrader can allow business models beyond a pure STP/ECN/NDD model, it is still a transparent platform and does not allow manipulation of trades. All execution information is recorded and available to traders.
The fact that traders are educated enough and can question their brokers themselves is something that satisfies us in the sense that we managed to educate people and "force" brokers to justify their decisions and actions. For example, FxPro provides a comprehensive explanation on how they execute their trades and it is up to you to decide if this fits your needs.
Regarding the two questions you raised
a) Brokers can add a markup on their feed. Practically this is a commission on the trade and it is one of the legitimate ways for brokers to charge for their service, especially ECN/STP brokers. Some brokers might advertise that they offer interbank spreads so you will need to clarify this with them if they add any mark up on their prices. You can also monitor their spread on the trading platform and judge yourself.
b) Since we cannot talk on behalf of brokers, you should contact them and ask them about their business model.
I hope the above clarifies the situation for you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Jan 2018, 12:38
Hi patrick.sifneos@gmail.com,
Yes it is going to happen. By the way the post is since Aug 2017 and not since 2013.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Jan 2018, 09:59
Hi joshc1092,
Thanks for posting in our forum. The build in MACD indicator does not have such a feature. However specifying periods is equivalent to specifying a time span e.g. 5 periods on a minute chart = 5 minutes timespan. Aren;t the available timeframes working for you?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Jan 2018, 09:28
Hi Drummond,
What does Spread > 1 means? Bigger than one pip? Because I don't think you mean it in absolute terms...
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 14:37
Hi,
In this case you should use something like the below
Let me know if this helps you,
Panagiotis
@PanagiotisCharalampous