Renko Backtest Spread settings not working

Created at 21 Aug 2024, 17:55
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!
BL

BlackTiger83

Joined 19.08.2024

Renko Backtest Spread settings not working
21 Aug 2024, 17:55


Hello! 
when I want to backtest my strategie and I select "RE1" Renko on US 30 with these Settings. The Spread is always 0. Is this a bug? When i select for example 1minute candles the spread works correctly. Is just used this Bot (just outputs the current spread)


using cAlgo.API;

using cAlgo.API.Internals;

using cAlgo.API.Indicators;

namespace cAlgo.Robots

{

    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]

    public class SpreadBot : Robot

    {

      

        protected override void OnTick()

        {

            // Den aktuellen Bid- und Ask-Preis abrufen

            double bidPrice = Symbol.Bid;

            double askPrice = Symbol.Ask;

            // Den Spread in Pips berechnen

            double spreadInPips = (askPrice - bidPrice) / Symbol.PipSize;

            // Den Spread in Pips in das Protokoll schreiben

            Print("Aktueller Spread in Pips: ", spreadInPips);

        }

    }

}

Working on Mac Version 5.0.20


@BlackTiger83
Replies

PanagiotisCharalampous
22 Aug 2024, 07:54

Hi there,

Thanks for reporting this issue. It will be fixed in an upcoming update of cTrader.

Best regards,

Panagiotis


@PanagiotisCharalampous