Is there a way to make a calculation only once  [SOLVED]

Questions about MultiCharts and user contributed studies.
User avatar
CrazyNasdaq
Posts: 264
Joined: 02 Sep 2009
Location: ITALY
Has thanked: 78 times
Been thanked: 80 times

Is there a way to make a calculation only once

Postby CrazyNasdaq » 30 Jan 2016

I'm wondering if there is a way to get an input from and external file as I get with ADE or EL collections but not on every tick of the chart but only once the workspace is open.
For example execute a functions A or B if the file exist, but only at the open of the workspace and NOT on every tick coming.
I already get this but on every tick and this way the calculation of the indicator is too long because of the loop of the function on every tick. I just need it once every time I open the Workspace with that indicator.

User avatar
TJ
Posts: 6586
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 971 times
Been thanked: 1907 times

Re: Is there a way to make a calculation only once  [SOLVED]

Postby TJ » 30 Jan 2016

CrazyNasdaq wrote:I'm wondering if there is a way to get an input from and external file as I get with ADE or EL collections but not on every tick of the chart but only once the workspace is open.
For example execute a functions A or B if the file exist, but only at the open of the workspace and NOT on every tick coming.
I already get this but on every tick and this way the calculation of the indicator is too long because of the loop of the function on every tick. I just need it once every time I open the Workspace with that indicator.


Look up the keyword:

ONCE
These users thanked the author TJ for the post:
CrazyNasdaq


Return to “MultiCharts”