Hi All,
I would like to build a data series that I can use to test RSI values.
To do that I would like to create a series with 300-400 datapoints (minimum required for accurate rsi calculation) or more using an instrument's <close> values (in 5min or 15min or whatever interval), but then for the last datapoint I would like to replace the <close> value with the latest <high> or <low> value, or even a value that I input myself manually.
Could anyone show me some script that 'blends' the close series with the high or low series, at a required juncture - in this case just swapping in the latest high value for the close value in the series/array? Or that allows an override of the latest close value via manual input?
I have some experience of creating series and objects to create indicators but am at a loss when it comes to the above and handling arrays efficiently in esignal.
many thanks! PC
I would like to build a data series that I can use to test RSI values.
To do that I would like to create a series with 300-400 datapoints (minimum required for accurate rsi calculation) or more using an instrument's <close> values (in 5min or 15min or whatever interval), but then for the last datapoint I would like to replace the <close> value with the latest <high> or <low> value, or even a value that I input myself manually.
Could anyone show me some script that 'blends' the close series with the high or low series, at a required juncture - in this case just swapping in the latest high value for the close value in the series/array? Or that allows an override of the latest close value via manual input?
I have some experience of creating series and objects to create indicators but am at a loss when it comes to the above and handling arrays efficiently in esignal.
many thanks! PC
Comment