
Topics
Replies
PanagiotisCharalampous
22 Apr 2020, 11:17
Hi Luca,
It is probably the same issue as above. If you set wrong stop loss prices they will not be accepted. The stop loss needs to be lower than the entry price for buy positions and higher than the entry price for sell positions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Apr 2020, 09:20
Hi firemyst,
This information is not provided by the API. You will need to "invent" something yourself.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Apr 2020, 09:08
Hi Tj11,
Are you using the same workspace on all instances? If yes, then these changes will be synchronized. Chart configuration is saved in workspaces. If you wish to have a different configuration per instance then you need to use a different workspace as well
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Apr 2020, 08:27
Hi bodhisvaha.forex,
Yes this is correct. With this tag you can control slippage. It is the worst price you accept to take. If the order cannot be filled completely under this condition then your order will not be filled or filled partially.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Apr 2020, 08:24
Hi there,
I tried this but I cannot reproduce such an issue. Can you send us a screenshot with the error message and the relevant url address?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 16:43
Hi firemyst,
As far as I can remember, nobody ever requested this information. No, we do not have plans to add this at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 14:59
Hi firemyst,
It seems to work fine for me. This is what I get when I close partially a position
Please note that the History contains only closing deals. Hence if for example you are adding volume to a position, hence creating an opening deal. this will not be recorded. It will be recorded only when the deal closes.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 13:49
Hi Tj11,
Why do you thing your question is being ignored? It was just posted today. We need more information about the issue. Can you provide us with steps to reproduce this behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 12:44
Hi andresort28,
To fix the issue, please remove the static keyword from
[Parameter("Open")]
public static DataSeries Source_Open { get; set; }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 12:19
Hi firemyst,
I was wrong above. You can actually get the deal information even for open positions. See below an example on how to get all deals of an open position on modification.
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
namespace cAlgo.Robots
{
[Robot(TimeZone = TimeZones.CentralAsiaStandardTime, AccessRights = AccessRights.None)]
public class NewcBot : Robot
{
[Parameter(DefaultValue = 0.0)]
public double Parameter { get; set; }
protected override void OnStart()
{
Positions.Modified += Positions_Modified;
}
private void Positions_Modified(PositionModifiedEventArgs obj)
{
foreach (var trade in History.Where(x => x.PositionId == obj.Position.Id))
{
Print("Entry price: " + trade.EntryPrice);
Print("Closing price: " + trade.ClosingPrice);
}
}
protected override void OnTick()
{
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 11:46
Hi firemyst,
Indeed History provides the information of closed deals only and you need to filter by position id. Deals associated with open positions are not available in History.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 10:07
Hi Luca,
This is because you cannot set a stop loss below a sell position's entry price e.g. 0. Note that SL and TP in ModifyPosition are set as prices not as pips.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 09:57
Hi Luca,
What do you mean? Can you give us an example?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 09:42
Hi keltrem,
I am not sure how is this related to Open API. If your question is related to cTrader Automate API, you can check DrawText() method.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 09:39
Hi mizo.rakkii,
If you need to get tick data of a symbol you can use MarketData.GetTicks(Symbol) method.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 09:34
Hi fjimenezbaez,
To see Autochartist on cTrader, your broker needs to subscribe to the service.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 09:33
Hi rampurkar.amit,
cTrader Copy works on the sever side hence there is nothing you need to worry about. You do not need to have anything turned on.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 09:21
( Updated at: 21 Dec 2023, 09:22 )
Hi elenigna,
Can you please confirm that your sounds are on?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Apr 2020, 09:20
Hi firemyst,
Deal information is available through History. Each entry represents a deal.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Apr 2020, 11:29
Hi lutroderzi,
The lines are missing at the moment. They will be added in an upcoming update.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous