
Topics
Replies
PanagiotisCharalampous
28 Feb 2019, 09:28
Hi Ton,
I just noticed that you set the expiry time 100 ms after the current time. That could be the source of the problem, since until is placed it might have already expired.
Regarding "if it can't get filled it's cancelled isn't it" the answer is no, it will be filled partially and the rest cancelled. FOK means either filling it completely or killing it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Feb 2019, 09:22
Hi lec0456,
To resolve the issue you can just check if the IndicatorArea is null before calling the DrawText() function
if (IndicatorArea != null) IndicatorArea.DrawText("Test", "Test", Server.Time, 1, Color.Green)
Best Regards,
Panagioits
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 15:24
Hi leohermoso,
You should have received an email from me.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 12:16
Hi Ton,
There is no way to simulate a FOK at the moment. All orders feature partial execution. IOC is available only for market orders so you can try a marker mrder with a market range.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 11:47
Hi Ton,
Try rounding the target price to the Symbol digits.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 11:18
Hi Vitore,
At the moment this is not possible. We might add this option in a future release.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 10:55
Hi Patrick,
As you have been informed by email, we have reproduced the issue and will be fixed in an upcoming update. In the meanwhile you can avoid using dashed lines on fiboniacci retracement tool which seems to cause the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 10:25
Hi Nick,
Many brokers have price feeds for cryptocurreny pairs. We even have some on cTrader Public Beta. You can check them to see if they suit you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 09:56
Hi lec0456,
Chart.DrawText() draws on the main chart. IndicatorArea.DrawText() draws on the separate indicator area only if this exists. If the indicator is an overlay then it is ignored.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 09:43
Hi lec0456,
Can you share a cBot that reproduces this message?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 09:41
Hi rooky06,
We will add this feature in cTrader Deskop v3.5. The beta version will be released any time now.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 09:40
Hi leohermoso,
Swaps are not available via FIX API but they are available in Open API.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 09:36
Hi Ton.
Please post your suggestions in the Suggestions section so that product managers can find them all in one place.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 09:32
Hi AndreaDev,
Remove the following line from your indicator and it should work fine
NewOpen = CreateDataSeries();
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2019, 09:19
Hi Ton,
As the message indicates, the issue is with the Take Profit. The Take Profit cannot be lower than the Symbol's decimal places. I guess that in this case Symbol.TickSize and Symbol.PipSize match therefore 0.1 pips is not a valid Take Profit value. Who is your broker?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2019, 13:42
RE:
pmedia said:
Great Paul,
I will research more,
The 2nd important thing to understand is if cTrader has access to BTC pricedata for proper backtesting? I tried asking this but it got ignored/misunderstood."Does cTrader have access to market data for tickers BTCUSD from Coinbase/BitStamp or XBTUSD via Bitmex so proper backtesting can be performed."
Regards
Nick
Hi Nick.
I answered this question in my first reply. See below
"Thanks for posting in our forum. cTrader is a CFD trading platform therefore it does not have direct access to crypto exchanges. However there are several cTrader brokers that offer cryptocurrency CFDs via cTrader."
Since cTrader doesn't have direct access to crypto exchanges then it cannot have price data from them as well. However some brokers offer cryptocurrency pairs for trading through their own liquidity sources, therefore you might use their price feeds for testing.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2019, 12:36
Hi lw3010996,
Here is an example
using System; using System.Linq; using System.Text; using System.IO; using System.Collections.Generic; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class TEST2 : Indicator { private bool showSMA; private int i; public int redPeriod = 12; [Output("Red SMA", LineColor = "Red", Thickness = 1)] public IndicatorDataSeries redSMA { get; set; } private MovingAverage _redSMA; protected override void Initialize() { Timer.TimerTick += OnTimerTick; Timer.Start(2); _redSMA = Indicators.MovingAverage(MarketSeries.Close, redPeriod, MovingAverageType.Simple); } public override void Calculate(int index) { redSMA[index] = _redSMA.Result[index]; } private void OnTimerTick() { showSMA = !showSMA; if (showSMA) { for (int i = 0; i < redSMA.Count; i++) { redSMA[i] = _redSMA.Result[i]; } } else { for (int i = 0; i < redSMA.Count; i++) { redSMA[i] = double.NaN; } } } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2019, 12:17
Hi jpwtrading,
You have a wrong bracket at line 65 and lots of missing brackets at the end.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2019, 11:27
Hi Adrian,
Thanks for posting in our forum. I am not sure what do you mean when you say start price. The target price is the price at which the pending order will be triggered. You can add a SL and TP on that order separately.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Feb 2019, 09:39
Hi wisegprs,
The RSI is calculated based on a single value i.e. the close value. This is why it cannot be represented as a candlestick but only as a line. The last value of the RSI is changing because the close price of the last candle is changing on every tick. As soon as the candle is finalized the RSI value will be finalized as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous