how do you get your aggregated time to be dynamic on what it is being used with.
Take an indicator for example.
you want to use your indicator on not only 5 min charts but also 30 min or 1hr charts. how do you accomplish this without having to change the script for the Aggregated time every time?
Take an indicator for example.
you want to use your indicator on not only 5 min charts but also 30 min or 1hr charts. how do you accomplish this without having to change the script for the Aggregated time every time?
Code:
#1hour script
def agg1 = AggregationPeriod.HOUR;
def highPrice = high(period = agg1);
def lowPrice = low(period = agg1);