
Topics
Replies
PanagiotisCharalampous
18 May 2020, 14:56
Hi John,
On a second thought, yes that would work too.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 14:41
Hi there,
I need exact links to the issues you think are the same to check if this is something we know about, if they have been resolved of if this is a new issue. We cannot reproduce such a behavior therefore we will need more information.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 14:04
Hi John,
No there isn't. You need to check if the change occurred on Bid or on Ask price.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 12:12
Hi Vamsi,
Here is the example you requested
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 BreakoutSample : Robot
{
SimpleMovingAverage _sma1;
SimpleMovingAverage _sma2;
int _singalCandleIndex;
bool _hasCrossedAbove;
int _breakoutCandleIndex;
protected override void OnStart()
{
_sma1 = Indicators.SimpleMovingAverage(Bars.ClosePrices, 5);
_sma2 = Indicators.SimpleMovingAverage(Bars.ClosePrices, 20);
}
protected override void OnBar()
{
if (_sma1.Result.HasCrossedAbove(_sma2.Result, 0))
{
// if sma 1 has crossed above sma 2, we record the index of the bar
_singalCandleIndex = Bars.ClosePrices.Count - 1;
_hasCrossedAbove = true;
}
if (_hasCrossedAbove && Bars.HighPrices.Last(1) > Bars.HighPrices[_singalCandleIndex])
{
// If last bar high is above the signal bar high, we record the breakout index
_breakoutCandleIndex = _singalCandleIndex = Bars.ClosePrices.Count - 2;
Print("Breakout Candle Index: " + _breakoutCandleIndex);
}
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 11:52
Hi there,
Thanks for reporting this behavior. Can you please provide us links to the older forum posts you are referring to so that we can check which issue is it about?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 10:43
Hi Yuval,
Calculate is a public function hence you can call it yourself from the cBot if you want.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 10:41
Hi sascha.dawe,
There seem to be a lot of issues with your code. A couple of points you should revisit
1) Try adding output attributes to your SampleSignalMultiSymbol indicator
2) Revisit your indexing. Doesn't seem to make much sense to me.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 09:50
Hi Yuval,
No there is no such option.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 09:48
Hi again,
Can you reproduce this behavior? Is there any chance you can send us a video so that we can see what is happening?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 09:13
Hi chinovicente312,
Can you try now?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 09:12
Hi lordyy,
Did you try GetIndexByTime()?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 08:58
Hi Vitali,
We do maintenance every weekend.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 08:47
Hi Abdul,
Can we arrange a TeamViewer session so that our QA team can inspect this issue on your computer? You can contact me at community@spotware.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 08:38
Hi genappsforex,
Can you provide us with a simple cBot that will allow us to reproduce such a behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 08:35
RE: RE:
ctid956028 said:
I wrote 2 different types of learning bots (single thread & threaded).
Also tried ML but the problems with core & framework killed that development line.
Maybe brainstorm a little about it?
Hi there,
What do you want to us to brainstorm about?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 08:31
Hi Nofomo,
Can you please try a clean installation and let me know if it resolves the problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2020, 16:39
Hi peetman23,
There are many issues in your code like the fact that the indicator needs be initialized in OnStart (Initialize is not used anywhere in the cBot), correct parameters are not passed to the indicator and volume seems really wrong. You need to fix all these issues and any others that might be there before the cBot starts working properly.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2020, 16:08
Hi peetman23,
You need to change
public Indicator pvto;
to
public PriceVolumeTrend_Optimized pvto;
and
// Put your core logic here
if (pvto(LastResult) < -9)
{
Close(TradeType.Sell);
Open(TradeType.Buy);
}
else if (pvto(LastResult) > 9)
{
Close(TradeType.Buy);
Open(TradeType.Sell);
}
to
// Put your core logic here
if (pvto.PVTO.LastValue < -9)
{
Close(TradeType.Sell);
Open(TradeType.Buy);
}
else if (pvto.PVTO.LastValue > 9)
{
Close(TradeType.Buy);
Open(TradeType.Sell);
}
for the cBot to build.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 May 2020, 14:14
Hi Tj11,
There is no such option at the moment. You can only disable all sounds in Settings > General > Sounds.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 May 2020, 15:23
Hi again,
When it happens again, just resend troubleshooting information but instead of a description just paste a link to this discussion. That should suffice.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous