
Topics
Replies
PanagiotisCharalampous
25 Nov 2020, 07:42
Hi imrealfighter,
It would be easier for us to understand what you need if you shared some code with us. For example, why do you replicate the code on both event handlers if you need it to be executed once?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2020, 07:39
Hi capezanrares,
You can use a Timer to achieve this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 18:53
Hi Yuval,
We have plans for cTrader Copy on desktop but you should expect this any time soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 16:42
Hi dmackay41,
As I said above FTMO has set 1 pip to $1. In your screenshot you do not set 3.3 pips but 0.033 since the price difference is 3.3 cents.
Regarding the comparison between GBPUSD and WTI, I am not sure why you do it since the comparison is irrelevant. Each symbol has a different lot size and pip position.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 16:35
Hi imrealfighter,
The most appropriate way to use the method in another class is to pass the Robot object as an argument. Inheriting it will not work because the new class will not have a char object initialized if it is not added on a chart.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 16:31
Hi MXMTrader,
No this is not possible.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 11:09
Hi dmackay41,
FTMO has set 1 pip = $1. Hence what I see on the picture seems correct. Maybe you should contact FTMO regarding this,
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 08:37
Hi imrealfighter,
To add a horizontal line to the chart, you need to use Chart.DrawHorizontalLine() method.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 08:29
Hi john_7ko,
Yes this is correct. To achieve this you will need to code your own stop loss logic that will run in OnBar() method.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 08:25
Hi Yuval,
Copying process takes place on the server so there is nothing you need to worry about. Your pc does not need to run.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 08:23
Hi imrealfighter,
Pending orders are stored in PendingOrders property.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 08:14
Hi jayteasuk,
As per the documentation
Specified in 1/100'000 of a unit of the price
So for every one unit price of distance you need need to multiply by 100000 e.g. if you want to set a stop loss at 0.1 distance for XPDUSD, then SL = 0.1*100000. The rule is the same for all symbols.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2020, 08:05
Hi hyiper,
You can have a look at Trade Copier.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2020, 16:18
Hi emreymiranda,
We managed to reproduce the stochastic oscillator bug and we will fix it in an update. However, we could not reproduce the advanced protection problem. Is it possible to record a short video demonstrating this behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2020, 15:47
Hi Simon,
Is there a possibility to send us the source code of one of the cBots for which you experience this problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2020, 11:00
Hi xabbu,
Here is an approach
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 Onceaday : Robot
{
bool _allowTrading;
protected override void OnStart()
{
var _dailyBars = MarketData.GetBars(TimeFrame.Daily);
_dailyBars.BarOpened += _dailyBars_BarOpened;
_allowTrading = true;
}
private void _dailyBars_BarOpened(BarOpenedEventArgs obj)
{
_allowTrading = true;
}
protected override void OnTick()
{
if (_allowTrading && Time.Hour >= 12 && Time.Minute >= 37)
{
_allowTrading = false;
// Execute trading
}
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2020, 10:30
Hi xabbu,
No there is no such function within cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2020, 10:07
Hi abcdavid13,
Unfortunately this is not possible in cTrader Web.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2020, 09:58
Hi ed.centa,
There was maintenance taking place over the weekend. Everything should be fine now.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2020, 10:59
Hi Yuval,
Please be more specific. Give us specific examples which we can check.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous