exception 18187810

Created at 03 Jul 2019, 18:57
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JA

jasito

Joined 03.07.2019

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.


@jasito
Replies

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

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, truetrue, 3, true, 24);
            Print("2");
            HullD = Indicators.GetIndicator<HMASignals>(MarketData.GetSeries(Symbol.Name, TimeFrame.Daily), 8, truetrue, 3, true, 24);
            Print("3");

            Zig = Indicators.GetIndicator<ZigZagAndFiboLevels>(MarketData.GetSeries(Symbol.Name, TimeFrame.Minute5), Desv, falsefalsefalse);
            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