exception 18187810
exception 18187810
03 Jul 2019, 18:57
Hi.
I obtain the exception 18187810 when i tried to use the code with Timeframe.Daily in Germany30 and NASDAQ100.
SO = Indicators.StochasticOscillator(MarketData.GetSeries(Symbol.Name, TimeFrame.Daily)
The code works in Euro50, Spain35, France40, USSPX500, XAUEUR, WTI,...
Thank you.
Replies
jasito
04 Jul 2019, 15:02
( Updated at: 21 Dec 2023, 09:21 )
RE:
Panagiotis Charalampous said:
Hi jasito,
Thanks for posting in our forum. Could you please post the complete cBot code that causes this exception?
Best Regards,
Panagiotis
Code:
After 2, it crash in Germany30. It crash for TimeFrame.Daily or Weekly
protected override void OnStart()
{
Label = Label + Symbol.Name + MarketSeries.TimeFrame;
Valores = MarketData.GetSeries(Symbol.Name, TimeFrame.Minute30);
// Semana = MarketData.GetSeries(Symbol.Name, TimeFrame.Weekly);
Cinco = MarketData.GetSeries(Symbol.Name, TimeFrame.Minute5);
Print("1");
Hull = Indicators.GetIndicator<HMASignals>(MarketData.GetSeries(Symbol.Name, TimeFrame.Hour4), Periodo, true, true, 3, true, 24);
Print("2");
HullD = Indicators.GetIndicator<HMASignals>(MarketData.GetSeries(Symbol.Name, TimeFrame.Daily), 8, true, true, 3, true, 24);
Print("3");
Zig = Indicators.GetIndicator<ZigZagAndFiboLevels>(MarketData.GetSeries(Symbol.Name, TimeFrame.Minute5), Desv, false, false, false);
Print("4");
so = Indicators.GetIndicator<CycleInd>(MarketData.GetSeries(Symbol.Name, TimeFrame.Daily), Alpha, length, 3, MovingAverageType.Weighted, 0.75, 0.01);
Print("5");
rsi30 = Indicators.RelativeStrengthIndex(MarketData.GetSeries(Symbol.Name, TimeFrame.Minute30).Close, 14);
Print("6");
rsiD = Indicators.RelativeStrengthIndex(MarketData.GetSeries(Symbol.Name, TimeFrame.Hour4).Close, 14);
Print("7");
atr = Indicators.AverageTrueRange(MarketData.GetSeries(Symbol.Name, TimeFrame.Hour4), 20, MovingAverageType.WilderSmoothing);
Print("8");
SAR = Indicators.ParabolicSAR(MarketData.GetSeries(Symbol.Name, TimeFrame.Daily), 0.05, 0.2);
Print("9");
SO = Indicators.StochasticOscillator(MarketData.GetSeries(Symbol.Name, TimeFrame.Daily), 13, 12, 3, MovingAverageType.Weighted);
Print("10");
SO_Corto = Indicators.StochasticOscillator(MarketData.GetSeries(Symbol.Name, TimeFrame.Minute30), 13, 12, 3, MovingAverageType.Weighted);
Print("11");
Orig_VolumeExponent = VolumeExponent;
Orig_FirstVolume = FirstVolume;
Orig_PipStep = PipStep;
Orig_AverageTP = 100;
Orig_TargetWinPCt = 25;
dc_i = Orig_FirstVolume * 10;
dMediaCompra = pnt_12(TradeType.Buy);
dMediaVenta = pnt_12(TradeType.Sell);
PastaCrisis = Account.Equity;
HMA_Rising_Ant = Hull.hma.IsRising();
tCierre = MarketSeries.OpenTime.Last(1);
}
With Spain35 for example, it works.
Regards.
@jasito
PanagiotisCharalampous
04 Jul 2019, 15:24
Hi jasito,
Thanks. We managed to reprodice the problem and we will fix it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Jul 2019, 09:27
Hi jasito,
Thanks for posting in our forum. Could you please post the complete cBot code that causes this exception?
Best Regards,
Panagiotis
@PanagiotisCharalampous