
Topics
Replies
PanagiotisCharalampous
12 Dec 2019, 14:24
Hi dynamites,
Can you share the link to the indicator?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 14:15
Hi dynamites,
There is no bug here. The color used is the one defined in the LST toolbar
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 14:09
Hi jcr1818,
I am not sure I understood which click do you mean. Where did you click to maximize the window and how did this change in 3.7? Maybe you can share a screenshot as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 11:42
Hi kahsa,
If you need a more complete example using Open API, try our .Net Open API Sample. We will check the Playground section.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 11:00
Hi kahsa,
The Java example works fine, you just need to use the correct data.
It is
data.accountId
from "Trading Accounts" in Playground of your application".
Yes this is correct. You can also get all the trader's accounts using ProtoOATraderReq.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 10:09
Hi kahsa,
You can find the Open API documentation here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 09:37
RE: RE:
Hi kahsa,
I have written it above. It can be found in ProtoOATrader.ctidTraderAccountId.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 08:46
Hi kahsa,
This probably happens because you use the trading account number instead of the trading account id. You need to use the trading account id which can be found in ProtoOATrader.ctidTraderAccountId.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 08:44
Hi Leonardo,
See below
using System.Linq;
using cAlgo.API;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
namespace cAlgo
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FileSystem)]
public class MACD : Robot
{
[Parameter("Volume", DefaultValue = 1000)]
public int volume { get; set; }
[Parameter(DefaultValue = 50, MinValue = 1)]
public int StopLoss { get; set; }
[Parameter(DefaultValue = 50, MinValue = 1)]
public int TakeProfit { get; set; }
[Parameter("MACD LongCycle", DefaultValue = 26, MinValue = 1)]
public int LongCycle { get; set; }
[Parameter("MACD ShortCycle", DefaultValue = 12, MinValue = 1)]
public int ShortCycle { get; set; }
[Parameter("MACD Period", DefaultValue = 9, MinValue = 1)]
public int MACDPeriod { get; set; }
private MacdCrossOver _MACD;
protected override void OnBar()
{
var dailySeries = MarketData.GetSeries(TimeFrame.Daily);
_MACD = Indicators.MacdCrossOver(dailySeries.Close, LongCycle, ShortCycle, MACDPeriod);
if (Positions.Count(x => x.TradeType == TradeType.Buy) == 0 && _MACD.MACD.Last(1) < _MACD.Signal.Last(1) && _MACD.MACD.Last(0) > _MACD.Signal.Last(0) && _MACD.Signal.Last(0) < 0)
{
foreach (var position in Positions.Where(x => x.TradeType == TradeType.Sell))
position.Close();
ExecuteMarketOrder(TradeType.Buy, Symbol, volume, "korakodmy", StopLoss, TakeProfit, 5);
}
if (Positions.Count(x => x.TradeType == TradeType.Sell) == 0 && _MACD.MACD.Last(1) > _MACD.Signal.Last(1) && _MACD.MACD.Last(0) < _MACD.Signal.Last(0) && _MACD.Signal.Last(0) > 0)
{
foreach (var position in Positions.Where(x => x.TradeType == TradeType.Buy))
position.Close();
ExecuteMarketOrder(TradeType.Sell, Symbol, volume, "korakodmy", StopLoss, TakeProfit, 5);
}
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 16:21
Hi dynamites,
Thanks, we managed to reproduce this issue and we will fix it in an upcoming update. In the meanwhile, as a workaround, try disabling this setting.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 16:16
Hi khalid-the-soldier,
Make sure you are using FxPro cTrader. cTrader accounts are only available on the brokers platforms.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 15:25
RE: RE:
morassut.s said:
PanagiotisCharalampous said:
Hi dynamites,
Thanks for the clarification. This is not a bug, this is how it was working in previous versions. However we are planning to change this behavior in future versions.
Best Regards,
Panagiotis
Ok.
Future new beta versions will be downloaded and automatically installed as in metatrader? Or do i have to do it manually?
This is how it works currently. Updates are installed automatically.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 15:14
Hi dynamites,
If you cannot embed it here, send it to community@spotware.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 15:12
Hi dynamites,
Thanks for the clarification. This is not a bug, this is how it was working in previous versions. However we are planning to change this behavior in future versions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 14:42
Hi dynamites,
When you say
Then open NZDUSD which has very similar figures and values. You will find the horizontal line even on NZDUSD!!!!!
do you mean to open a new chart or just change the symbol on the current chart?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 14:39
Hi dynamites,
I could not reproduce this problem. Any chance you can send us a video demonstrating this issue?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 11:19
Hi Drummond360,
Sorry somehow missed this thread. I thought Paul was in control :) ExecuteMarketRangeOrder limits only negative slippage. It is equivalent to a limit order executed at the range price.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 08:26
RE: RE: RE:
Hi trend_meanreversion,
See here. If you still experience the issue, please send us the cBot code to check.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2019, 08:24
Hi rafaelizidorotrader,
There is no such option at the moment. We have this feature in our backlog though.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 14:32
Hi VFX Managing Trader,
To be able to help you, you need to provide us with more information about your issue. You need to tell us the strategy being followed, the details of the positions being copied and explain the issue. Please share screenshots as well that would help us understand the problem.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous