how to atach a calculed value to a bar and find it later with braket [x bar before].
with no array of course ...
bar memory
- Vlada MultiCharts
- Posts: 293
- Joined: 22 Apr 2020
- Has thanked: 8 times
- Been thanked: 76 times
Re: bar memory
Hello Smoky,
If you'd like to call for a bar index value that has been calculated before, an array should be used.
To avoid using an array, you can refer to the function value on a specific bar using In this case, however, you won't be able to move to a previous bar without strategy recalculation since the strategy is calculated on each bar.
If you'd like to call for a bar index value that has been calculated before, an array should be used.
To avoid using an array, you can refer to the function value on a specific bar using
Code: Select all
if currentbar = N
- Vlada MultiCharts
- Posts: 293
- Joined: 22 Apr 2020
- Has thanked: 8 times
- Been thanked: 76 times
Re: bar memory
You can also use a function with Function Storage = Series. Here is an example for ADX:
- Attachments
-
- ADX Example_MultiCharts.png
- (406.64 KiB) Not downloaded yet