new_spy123
New member
I am trying to add study alert from MarketWatch tab and keep getting the error "Invalid Statement".
Here is the code that I am using in Study alert and screenshots:
What am I doing wrong here? All I am trying to do is check if hourly candle close is less than 150 day ema.
Here is the code that I am using in Study alert and screenshots:
Ruby:
input aggd = AggregationPeriod.DAY;
input lengthday = 150;
close is less than ExpAverage( close( period = aggd), lengthday )
What am I doing wrong here? All I am trying to do is check if hourly candle close is less than 150 day ema.