bar memory

Questions about MultiCharts and user contributed studies.
User avatar
Smoky
Posts: 517
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 99 times
Been thanked: 121 times

bar memory

Postby Smoky » 01 Aug 2020

how to atach a calculed value to a bar and find it later with braket [x bar before].

with no array of course ...

User avatar
Vlada MultiCharts
Posts: 293
Joined: 22 Apr 2020
Has thanked: 8 times
Been thanked: 76 times

Re: bar memory

Postby Vlada MultiCharts » 06 Aug 2020

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

Code: Select all

if currentbar = N
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.

User avatar
Vlada MultiCharts
Posts: 293
Joined: 22 Apr 2020
Has thanked: 8 times
Been thanked: 76 times

Re: bar memory

Postby Vlada MultiCharts » 07 Aug 2020

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


Return to “MultiCharts”