I've created a conditional order to sell using studies. It appears that the (primary?) aggregation period is 1 day. However, I want to specify a 1 hour aggregation. The following code gets a "Secondary period cannot be less than primary" error message:
Thank you for any ideas.
Code:
def slo = RSI (price=close(period=AggregationPeriod.HOUR), length = 21);
plot signal = HullMovingAvg(price=close(period=AggregationPeriod.HOUR), length = 8)
< HullMovingAvg(price=close(period=AggregationPeriod.HOUR), length = 21)
and slo < 70
and slo < slo[1];def slo = RSI (price=close(period=AggregationPeriod.HOUR), length = 21);
Thank you for any ideas.