Hello,
Basically we want to add the last 5 bars closing prices and divide by 5. Then, project the result over next 5 bars as a horizontal line. Recalculate every 5 bars.
So if we start with 15 days we will calculate balance step every 5 days:
- first 5 days will not get line, since they are initial data;
- days 6-10 will get horizontal line, calculated as mentined above using days 1-5;
- days 11-15 will get horozontal line, caclucated as mentined above using days 6-10;
I could not find anyting on it, and I am not proficient enough to do it myself. Would appreciate some refernces or help, seems to be a useful tool.
Thanks!
Basically we want to add the last 5 bars closing prices and divide by 5. Then, project the result over next 5 bars as a horizontal line. Recalculate every 5 bars.
So if we start with 15 days we will calculate balance step every 5 days:
- first 5 days will not get line, since they are initial data;
- days 6-10 will get horizontal line, calculated as mentined above using days 1-5;
- days 11-15 will get horozontal line, caclucated as mentined above using days 6-10;
I could not find anyting on it, and I am not proficient enough to do it myself. Would appreciate some refernces or help, seems to be a useful tool.
Thanks!
Comment