Skip to content

IchimokuKinkoHyo.SenkouSpanA

property · IchimokuKinkoHyo · cAlgo.API.Indicators

DesktopCLICloud

Leading span 1, this line forms one edge of the kumo, or cloud. If the price is above the Senkou span, the top line serves as the first support level while the bottom line serves as the second support level.

Definition

IndicatorDataSeries SenkouSpanA {get; set;}
ichimokuKinkoHyo.SenkouSpanA: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

var ichimokuKinkoHyo = Indicators.IchimokuKinkoHyo(9, 26, 52);
var cloudTop = Math.Max(ichimokuKinkoHyo.SenkouSpanA.Last(1), ichimokuKinkoHyo.SenkouSpanB.Last(1));
if (Bars.ClosePrices.Last(1) > cloudTop)
    Print("Price is above the cloud, SenkouSpanA = {0}", ichimokuKinkoHyo.SenkouSpanA.Last(1));
ichimokuKinkoHyo = api.Indicators.IchimokuKinkoHyo(9, 26, 52)
cloudTop = max(ichimokuKinkoHyo.SenkouSpanA.Last(1), ichimokuKinkoHyo.SenkouSpanB.Last(1))
if api.Bars.ClosePrices.Last(1) > cloudTop:
    api.Print(f"Price is above the cloud, SenkouSpanA = {ichimokuKinkoHyo.SenkouSpanA.Last(1)}")