Topics
Replies
PanagiotisCharalampous
14 Jul 2020, 15:16
Hi wddy0206,
Dark mode is available in Spotware Beta for iOS. It will be available for brokers soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 12:46
Hi mark.lite,
You might find this cBot useful
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.UTC, AccessRights = AccessRights.None)]
public class ScrollTo : Robot
{
[Parameter(DefaultValue = 2014)]
public int Year { get; set; }
[Parameter(DefaultValue = 1)]
public int Month { get; set; }
[Parameter(DefaultValue = 1)]
public int Day { get; set; }
protected override void OnStart()
{
var date = new DateTime(Year, Month, Day);
while (Bars.OpenTimes[0] > date)
Bars.LoadMoreHistory();
Chart.ScrollXTo(date);
}
protected override void OnTick()
{
// Put your core logic here
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 12:23
Hi koktos632,
I was asking about the chart more. Is it Multi-Chart mode, Free-Chart mode or Single-Chart mode?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 10:27
Hi koktos632,
Which chart mode do you use?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 09:58
Hi MATRIXTRADER,
Please post the complete cBot code that is generating these errors.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 08:37
Hi benpaulsharpe,
Can you provide a code sample demonstrating what you are doing?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 08:35
Hi MATRIXTRADER,
Try
MACD = Indicators.MacdHistogram(MarketData.GetBars(AnotherTimeFrame2), LongCycle, ShortCycle, MACDPeriod);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 08:32
Hi malas7malas,
Your cTrader timezone is set to UTC+1. Your cBot is set to Greenwich Mean Time. As mentioned above, Greenwich Mean Time is the same as UTC time. The time is correct.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 08:29
Hi there,
Symbols are added by brokers, not by cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 08:28
Hi tothpal,
There is no ETA for this feature yet.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jul 2020, 08:27
Hi ricckytrading,
Check here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 16:25
Hi Eliezer,
You can get the current spot prices using Symbol.Bid and Symbol.Ask properties.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 14:42
Hi Vadivelan,
The condition below checks if there is a pending order in a distance less than 10 pips from the bid price before executing the code
if (PendingOrders.Min(x => Math.Abs(x.TargetPrice - Symbol.Bid) / Symbol.PipSize) > 10)
{
// do something
}
You can use it as a starting point in implementing your logic.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 14:24
Hi nhatitp,
Your question is not written in very good English therefore I cannot understand what is the problem. Can you please try explaining better and provide some more information e.g. screenshots?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 14:22
Hi MZen,
You are right, my response above was not correct. When the hasMore flag is set to true, it means that the number of records by filter is larger that the ones returned by the message. Therefore you will need to manually request for the rest or break your queries into requests with smaller sizes.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 11:53
Hi renereiner,
Check here to find out how to reference a custom indicator in your cBot.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 10:53
Hi Paolo,
There is no hotkey at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 10:51
Hi Sam,
Here is an example
var ma = Indicators.SimpleMovingAverage(Bars.ClosePrices, 14);
Positions[0].ModifyStopLossPrice(ma.Result.Last(1));
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:48
Hi koktos632,
You can check the Timeframe property.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Jul 2020, 09:44
Hi duongphuongtrinh92,
Can you please provide more information about this issue e.g. screenshots?
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous