Topics
27 Jan 2021, 20:17
 757
 1
03 Jul 2019, 18:57
 1314
 4
Replies

jasito
06 Aug 2022, 00:49

RE:

PanagiotisCharalampous said:

Hi jasito,

We tried to reproduce this behavior but without success. Can you please provide us with exact steps on how to reproduce or record a video?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 

It's working, sorry.


@jasito

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