Topics
Replies
PanagiotisCharalampous
25 Jan 2021, 09:09
RE:
Hi PUdPUd,
Why did you write your logic in OnTick(). You can just subscribe to daily bars and execute the logic in BarOpened once per day. See below
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 NewcBot : Robot
{
[Parameter(DefaultValue = 0.0)]
public double Parameter { get; set; }
protected override void OnStart()
{
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
dailyBars.BarOpened += OnDailyBarsBarOpened;
}
void OnDailyBarsBarOpened(BarOpenedEventArgs obj)
{
// Put your order placement logic here
}
protected override void OnTick()
{
// Put your core logic here
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 09:02
Hi jmrony999,
We will need more information about your issue. Could you please provide some screenshots/videos of the issues you are facing?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 09:00
( Updated at: 21 Dec 2023, 09:22 )
RE:
ctid2514471 said:
Just to add to the chorus, I am trying to do something similar in 3.8, so any updates/information would be great!
In fact, some of the standard Indicators, like SwingIndex, simply don't seem to display in tick T1 view, in my cTrader 3.8 :
Is this normal / to be expected, or is something wrong?
Hi ctid2514471,
This seems to be irrelevant to the issue described in this post. Can you please create a new thread?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 08:58
RE:
dubmocio said:
Hi,
I have the exact same problem, very annoying.
I'm using cTrader 3.8.
Please, Might you give us any feedback ?
Hi dubmocio,
This is an old issue which I cannot reproduce at the moment. Can you please provide more information about your issue so that we can reproduce?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 08:50
Hi ctid2514471,
This happens only during visual backtesting to indicators added on the backtesting chart. This is by design to speed up the backtesting process. Indicators references by cBots and cBot execution should not be affected.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 08:36
Hi ctid2514471,
Print() method works only in the Automate tab for indicators. Check the Log tab.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 08:32
Hi jayteasuk,
is it done like this because markets open from 10pm Sundays
Yes this is correct.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 08:31
Hi JerryTrader,
As I explained above you will need to wait for the official cTrader update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 08:28
Hi progy85,
Minimum trading size is configured by brokers. You should contact your broker regarding this issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 08:26
Hi Roger,
If you have a specific question that you need answered to proceed with the development, please let us know and we will answer it. If you need somebody to develop the cBot for you, you can post a Job.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Jan 2021, 10:32
Hi tahseen147,
Symbols are provided by brokers, not by the platform. Please talk to your broker.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Jan 2021, 10:31
Hi cTKit,
There is no such option in the API at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Jan 2021, 10:29
Hi JerryTrader,
A workaround would be to just change your target framework in your cBot/Indicator project but you should understand that you do this at your own responsibility.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Jan 2021, 15:54
Hi cTKit,
You can use LastVisibleBarIndex.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Jan 2021, 15:49
Hi JerryTrader,
Unfortunately we cannot commit on an ETA hence the wording. Also we cannot suggest any hacks to the platform, neither support them.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Jan 2021, 14:46
Hi JerryTrader,
We are hoping to migrate cTrader Desktop to .Net Core by summer.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Jan 2021, 10:09
Hi steel.export,
If you need somebody to implement a new feature for your cBot, you can also consider posting a Job
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Jan 2021, 08:22
( Updated at: 21 Dec 2023, 09:22 )
Hi eleetsdrahcir,
TP and SL are orders and they are not relevant to deals, You can see this information in Position Info and Order Info
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Jan 2021, 08:04
Hi smoothgeek2016,
cTrader Desktop 4.0 will have the option to keep the trend line horizontal and create finite horizontal lines.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2021, 09:10
Hi fsanchezd57,
If you need somebody to write the cBot code for you, you can post a Job.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous