Skip to content

IsBacktesting Property

Summary

True if a cBot is in the Backtesting mode, otherwise False.

Signature

1
public bool IsBacktesting {get;}

Return Value

bool

Declaring Type

cAlgo.API.Internals.Algo

Examples

1
2
3
4
 if(IsBacktesting)
 {
    Print(MarketSeries.OpenTime.LastValue);
 }

Last update: July 1, 2022

Comments