Coloring Bars if lower than SMA1 & Higher than SMA2

Created at 01 Apr 2017, 19: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!
NA

nahaj_matyas

Joined 01.04.2017

Coloring Bars if lower than SMA1 & Higher than SMA2
01 Apr 2017, 19:55


Hello everyone, 

I'm pretty new to C# programing, & i tried to recreate my TradingView indicator in cTrader.

What I want to achieve: If a candle opens below my fast SMA & close above or equal to fast SMA it get a distinc color.

When I try to solve it I got the folllowing error message:   Error CS0019: The following operator cannot be applied „double” and „cAlgo.API.IndicatorDataSeries” type operands: „>”.

Is there any solution for this? 

Thank you in advance,

Matt


@nahaj_matyas