• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Does NT8/7 Uses cache for functions/series?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Does NT8/7 Uses cache for functions/series?

    Hi.
    I am interested, if there is any difference (in performance) between:

    Code:
    value =  MAX(High, 10);
    if( A > value  &&   B > value   &&   C > value .....
    Code:
    if( A > MAX(High, 10) &&   B > MAX(High, 10) &&   C > MAX(High, 10)
    is there a need to define variable with reused functions, or NT has it's cache, thus executing same calls wont affect perforamnce??

    #2
    Hello,

    In this case, if the indicator parameters do not change between uses the cache would be used. There should be no difference other than one syntax is more simple than the other. Only when you use two separate parameters would a new instance be issued:
    Code:
    MAX(High, 10) 
    MAX(High, 11)
    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kitwit, Yesterday, 11:59 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by otislauwaert, Today, 02:02 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by rafleischman, 10-18-2018, 12:11 PM
    2 responses
    21 views
    0 likes
    Last Post Alfred
    by Alfred
     
    Started by dadarara, Yesterday, 02:42 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Dan_D_Trader, Today, 04:46 PM
    0 responses
    2 views
    0 likes
    Last Post Dan_D_Trader  
    Working...
    X