similar feature like ArraySetAsSeries() on static array?
i can get the latest MA value for the last 5 bar using dynamic array. thanks to ArraySetAsSeries(), it reverse it's saving point so that current bar MA will be saved to index 0
but since i know how much size i need (5), i tried to use the same code. but ArraySetAsSeries() only works on dynamic. this makes MA current bar is stored on index 4. how to achieve the same result.
yes i know i can manually do that. but that's not what i want to learn and to know
i can get the latest MA value for the last 5 bar using dynamic array. thanks to ArraySetAsSeries(), it reverse it's saving point so that current bar MA will be saved to index 0
but since i know how much size i need (5), i tried to use the same code. but ArraySetAsSeries() only works on dynamic. this makes MA current bar is stored on index 4. how to achieve the same result.
but since i know how much size i need (5), i tried to use the same code. but ArraySetAsSeries() only works on dynamic. this makes MA current bar is stored on index 4. how to achieve the same result.