Topics
Forum Topics not found
Replies
amusleh
02 Aug 2021, 07:55
Hi,
Please check the code example on API references for the Chart trend line.
@amusleh
amusleh
02 Aug 2021, 07:53
RE: Heartbeat documentation
opusensemble said:
Hi,
Where can the heartbeat documentation or a usage example be found?
Looking forward to hearing back from you,
Best Regards,
Hi,
You can find all details on the documentation.
@amusleh
amusleh
02 Aug 2021, 07:53
RE: RE:
opusensemble said:
Hi amusleh,
Where can the heartbeat documentation or a usage example for Open API be found?
Looking forward to hearing back from you,
Best Regards,
Hi,
Please read the documentation connection tutorial.
@amusleh
amusleh
02 Aug 2021, 07:52
Hi,
You have to use ExecutionEvent, whenever a trader executes a trading operation you will receive an execution event with the trading operation details.
Regarding connection status, you have to use your socket and check if you can send/receive a message or not, there is also a client disconnected proto message that you can use.
Please check our OpenAPI.NET WPF and ASP web app samples.
For more please check the Open API documentation.
@amusleh
amusleh
01 Aug 2021, 10:12
RE:
volvefx2 said:
Is anyone using cMAM to mirror trades between cTrader and Metatrader accounts? or do you use any other software for that purpose? Thanks!
Hi,
cMAM is not a product of Spotware, it's a 3rd party product.
Please contact the developers and ask them your question.
@amusleh
amusleh
31 Jul 2021, 08:22
Hi,
The code you pasted iterates over all available trend lines on your chart, and then you save each trend line reference to _chartTrendLine variable, at the end of the loop it will have a reference to the latest iterated trend line.
Then you get the latest bar index Y (Price) value by using the trend line CalculateY method.
I'm not sure what exactly you are trying to do, but that's what your code does.
@amusleh
amusleh
30 Jul 2021, 17:21
Hi,
All chart objects are inside Chart.Objects collection and you can iterate over it to find specific object by using Linq or a foreach loop:
using System;
using cAlgo.API;
using System.Linq;
namespace cAlgo
{
[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class Test : Indicator
{
protected override void Initialize()
{
// GetTrendLine can return null if there was no matching trend line
var myTrendLine = GetTrendLine("MyTrendLine");
}
private ChartTrendLine GetTrendLine(string name)
{
var chartObjects = Chart.Objects.ToArray();
return chartObjects.FirstOrDefault(chartObject => chartObject.Name.Equals(name, StringComparison.OrdinalIgnoreCase) && chartObject.ObjectType == ChartObjectType.TrendLine) as ChartTrendLine;
}
public override void Calculate(int index)
{
}
}
}
@amusleh
amusleh
30 Jul 2021, 09:47
Hi,
There are plenty of Volume/market profile indicators for cTrader developed by the community, you can develop one based on your own specific needs if the available ones don't have the features you are after.
You can try this one from AlgoDeveloper: https://www.algodeveloper.com/product/volume-profile/
@amusleh
amusleh
05 Aug 2021, 10:24
Hi,
Try this:
@amusleh