Skip to content

CenterOfGravity.Result

property · CenterOfGravity · cAlgo.API.Indicators

DesktopCLICloud

The COG line, by using it you can identify the support and resistance levels and have a more or less clear idea when the price starts moving in a different direction.

Definition

IndicatorDataSeries Result {get; set;}
centerOfGravity.Result: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

var centerOfGravity = Indicators.CenterOfGravity(10);
Print("COG line: {0}", centerOfGravity.Result.Last(1));
centerOfGravity = api.Indicators.CenterOfGravity(10)
api.Print(f"COG line: {centerOfGravity.Result.Last(1)}")