JP782
New member
- Platform
-
- Thinkorswim
I prefer using 5min data/indicators on 1 min charts, and one of those indicators I like using is a MTF standard deviation channel that goes out to ±4 deviations
In order to use it on a 1 minute chart I have to get the number of bars on a 5min chart where that number is entered as the length (bar count = length )for the MTF on the 1min chart
Every five minutes I have to manually update the length by increasing it by 1 to ensure the data is accurate(which they are until the next 5 min bar is formed where I have to update the number) After you input the length youre starting with, the indicator needs to increase that value +1 every X mins depending on whatever aggregation youre using
I do not know how to write the script to do this increase automatically. Can it be done?
In order to use it on a 1 minute chart I have to get the number of bars on a 5min chart where that number is entered as the length (bar count = length )for the MTF on the 1min chart
Every five minutes I have to manually update the length by increasing it by 1 to ensure the data is accurate(which they are until the next 5 min bar is formed where I have to update the number) After you input the length youre starting with, the indicator needs to increase that value +1 every X mins depending on whatever aggregation youre using
I do not know how to write the script to do this increase automatically. Can it be done?