How to use “core.UpdateAll ” and “core.UpdateLast ”

Moderator: admin

How to use “core.UpdateAll ” and “core.UpdateLast ”

Postby guangho » Thu Apr 11, 2019 12:05 am

I would like to ask what is the difference between these three sentences and what is the application of them?

“core.UpdateAll ” and “core.UpdateLast ” and “core.UpdateNew ”

Thank you!
guangho
FXCodeBase: Initiate
 
Posts: 106
Joined: Sat Sep 29, 2012 12:16 pm

Re: How to use “core.UpdateAll ” and “core.UpdateLast ”

Postby Apprentice » Fri Apr 12, 2019 4:48 am

The update mode of the indicator. The possible values are:

core.UpdateNew
The size of the output streams is synchronizes with the size of the source stream. The values of the periods that have been added to the output streams are calculated.

core.UpdateLast
The size of the output streams is synchronizes with the size of the source stream. The value of the last period is recalculated (if it has been changed). The values of the periods that have been added to the output streams are calculated.

core.UpdateAll
The size of the output streams is synchronizes with the size of the source stream. All values of the indicator output streams are recalculated.


The optimal update mode is provided by the second parameter of the Update function of the main indicator.

In case of strategies, only the core.UpdateLast value must be used.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: How to use “core.UpdateAll ” and “core.UpdateLast ”

Postby guangho » Tue Nov 26, 2019 11:21 pm

Apprentice wrote:The update mode of the indicator. The possible values are:

core.UpdateNew
The size of the output streams is synchronizes with the size of the source stream. The values of the periods that have been added to the output streams are calculated.

core.UpdateLast
The size of the output streams is synchronizes with the size of the source stream. The value of the last period is recalculated (if it has been changed). The values of the periods that have been added to the output streams are calculated.

core.UpdateAll
The size of the output streams is synchronizes with the size of the source stream. All values of the indicator output streams are recalculated.


The optimal update mode is provided by the second parameter of the Update function of the main indicator.

In case of strategies, only the core.UpdateLast value must be used.


Thank you for your answer :D
guangho
FXCodeBase: Initiate
 
Posts: 106
Joined: Sat Sep 29, 2012 12:16 pm


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 7 guests