Topics
Replies
PanagiotisCharalampous
11 Nov 2020, 09:17
Hi xiao-linlong,
Your post does not seem to be related with Open API. Can you please use the correct forum section for your post?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Nov 2020, 09:12
Hi samuel.jus.cornelio,
I am sorry but I am not sure what do you need. I provided an example above. Here it is again
var tradingStarts = TimeSpan.ParseExact("17:00", "hh\\:mm", null);
var tradingStops = TimeSpan.ParseExact("18:00", "hh\\:mm", null);
if (Server.Time.TimeOfDay >= tradingStarts && Server.Time.TimeOfDay < tradingStops)
{
// trade
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 16:08
Hi tradermatrix,
Here you go
SL = Math.Round(ATR.Result.LastValue * ATRfactor / Symbol.PipSize, 1);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 16:03
Hi Sergey,
Here is their website https://www.theunitedtrading.com/en/
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 14:18
Hi Sergey,
You need to ask your broker to delete your cTrader ID and accounts.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 14:15
Hi mgpublic,
You can use conditions in your Count() method like below
if (Positions.Count(x => x.SymbolName == "AUDUSD") < 5)
{
// Do something
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 14:13
Hi tradermatrix,
You should round the stop loss value to one decimal place before using it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 08:25
Hi lym1609,
Please use the Suggestions section for your suggestions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 08:22
Hi SmartArtsStudio,
Check this indicator.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 08:19
Hi lec0456,
What I meant is to have a boolean parameter and use it to determine if these data series will be assigned values
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class NewIndicator : Indicator
{
[Parameter(DefaultValue = true)]
public bool ShowResult { get; set; }
[Output("Main")]
public IndicatorDataSeries Result { get; set; }
protected override void Initialize()
{
// Initialize and create nested indicators
}
public override void Calculate(int index)
{
// Calculate value at specified index
if (ShowResult)
Result[index] = 1;
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 08:14
Hi shpendbaftiu,
Please let us know the broker and the symbol.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 08:12
Hi samuel.jus.cornelio,
The message clearly describes the problem
Error CS0029: It is not possible to implicitly convert the type 'System.TimeSpan' to 'double'
Your variable should be of type TimeSpan and not double.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Nov 2020, 08:10
Hi pistrituadrian16,
There are lots of volatility indicators available for cTrader. What exactly do you want to detect?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Nov 2020, 15:06
Hi samuel.jus.cornelio,
You can try something like the below
var tradingStarts = TimeSpan.ParseExact("17:00", "hh\\:mm", null);
var tradingStops = TimeSpan.ParseExact("18:00", "hh\\:mm", null);
if (Server.Time.TimeOfDay >= tradingStarts && Server.Time.TimeOfDay < tradingStops)
{
// trade
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Nov 2020, 14:11
Hi imrealfighter,
There is no built in feature for this but you can use a cBot to achieve this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Nov 2020, 14:10
Hi Christian,
If the previous OnBar event has not been processed yet, then the new one is ignored.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Nov 2020, 14:08
Hi there,
I am not sure what is the issue. Spotware cTrader Beta is just a demonstration platform to get familiar with the platform's features. If you want realistic a demo account, create a demo account on your broker's platform.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Nov 2020, 14:05
Hi Ben,
No this is not possible. For other ways to interact with the indicator, please talk to the developer.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Nov 2020, 14:02
Hi mcm187,
There is no such thing as enabling an account for NinjaTrader. As far as I know, NinjaTrader supports only netting accounts. If you have a netting account but you cannot see it in NinjaTrader, then you need to talk with NinjaTrader. There is nothing we can do on our side.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Nov 2020, 09:18
Hi lamaramohamedramdane,
The strategy cannot accept more followers from your broker.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous