
Topics
Replies
PanagiotisCharalampous
17 Oct 2017, 09:39
Dear if.mihai@gmail.com,
We do not have an ETA yet but I can say that the development team is already working on it. It should be included in one of our next releases.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Oct 2017, 09:37
Hi sartsartsart,
Are you talking about cTrader or cAlgo? In cTrader you can see prices under the mouse by using the market snapshot tool found in Line Studies. You can read about it here http://help.spotware.com/charts/line-studies. In cAlgo, MouseClick and MouseOver events are not available yet but will be sometime in the future.
Best Regards,
@PanagiotisCharalampous
PanagiotisCharalampous
16 Oct 2017, 14:58
Hi ycomp.
OA_POSITION_STATUS_CREATED is the status of the position when an order is accepted. You will get OA_POSITION_STATUS_OPEN status when the order is filled and the position is opened.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Oct 2017, 14:16
Hi goracioo,
Pip value is displayed in quote currency.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Oct 2017, 11:47
Hi goracioo,
Yes this is a normal behavior. It is the way the genetic algorithm works. The genetic algorithm starts searching at a random point i.e. by selecting a random set of parameters, and looks for local maximum. If there is no improvement in new population (new sets of parameters), it will be stopped assuming that it reached a local maximum. In contrast, the grid method tries to find the global maximum by checking all possible parameters combinations. So the grid method is an exhaustive search and will always reach to the same conclusion while the genetic algorithm might give different results each time.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Oct 2017, 09:18
Hi,
Please send us an the access token and the userID you are using at community@spotware.com and we will investigate further.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Oct 2017, 09:04
Hi ycomp,
Yes you can. You need to subscribe to trading events.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Oct 2017, 08:56
Hi ctid331981,
Thanks for posting in our forum. You should use the userID found in the Profile request e.g. https://sandbox-api.spotware.com/connect/profile?oauth_token=test002_access_token
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Oct 2017, 15:55
Hi ycomp,
You need to contact your broker to add more funds to your demo account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Oct 2017, 15:48
Hi ycomp.
TIMEOUT_ERROR is sent in the exceptional case our server does not respond within a specified time period.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Oct 2017, 15:34
Hi EmperorCy,
Thanks for posting in our forum. It is not clear what you mean when you say " i must make a source with apis?". However, from what I understand from your description, what you want to do is possible in a cBot. 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() { } protected override void OnBar() { if ( MarketSeries.Close.Last(1) < 1.09) ExecuteMarketOrder(TradeType.Buy, Symbol, 1000); } protected override void OnStop() { // Put your deinitialization logic here } } }
This example executes a market order when the close value of the previous candle is lower than 1.09.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Oct 2017, 15:18
Hi hungtonydang,
Did you locate which variable becomes null and you get a NullReferenceException? If yes, just use and if statement and check if the variable is null before accessing it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Oct 2017, 15:07
Hi hungtonydang,
How about the following?
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; } private DateTime _date; protected override void OnStart() { _date = new DateTime(2017, 10, 9, 11, 30, 0); } protected override void OnBar() { if (_date.Day != DateTime.Now.Day) _date = _date.AddDays(1); var close = MarketSeries.Close[MarketSeries.OpenTime.GetIndexByExactTime(_date)]; } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiots
@PanagiotisCharalampous
PanagiotisCharalampous
13 Oct 2017, 09:19
Hi mariuszpawel33,
Indeed TP and SL are not available through FIX API. See the following discussion. It might be helpful for you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Oct 2017, 09:15
( Updated at: 21 Dec 2023, 09:20 )
Hi share.axp,
You can view you selected account in the top left of cTrader. See below
Let me know if this is what you are looking for.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2017, 17:51
No that should not be the reason. How many positions do you have open and how many are getting closed in a tick?
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2017, 17:30
Hi ycomp,
You can find this information in the ProtoOAOrder message of the ProtoOAExecutionEvent. Check the executionPrice field.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2017, 17:09
Hi David,
Why do you believe the execution is slow?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2017, 16:59
Hi David,
Use the code 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 SamplecBot: Robot { [Parameter("Min TP")] public double MinTP { get; set; } [Parameter("Max TP")] public double MaxTP { get; set; } protected override void OnTick() { foreach (var position in Positions) { if (position.Pips > MinTP && position.Pips < MaxTP) { ClosePosition(position); } } } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Oct 2017, 09:40
Hi hamidreza.taali@gmail.com,
This feature is not available in cAlgo.API.
Best Regards,
Panagiotis
@PanagiotisCharalampous