Does more line of code = more cpu usage?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #76429 quote
    margincallcat
    Participant
    Average

    Hi all!

    Does more line of code result in larger cpu usage?

    I understand that it of course has some impact, but lately my CPU (and especially fan rpm) is through the roof and i dont even use alot of indicators. My “biggest” one is a self made that contains maybe 150 lines of code and im wondering if this could be the case?

    Thanks

    #76430 quote
    robertogozzi
    Moderator
    Master

    150 lines of code for a custom indicator is lot of work!

    There are times when loading a 10-line indicator requires limiting the number of bars on which it must be calculated!

    margincallcat thanked this post
    #76475 quote
    margincallcat
    Participant
    Average

    OK thanks!

    I actually noticed the indicator is 360 lines of code so… 🙂

     

    // Viktor

    #76515 quote
    Maria PRT
    Moderator
    Average

    Hello Lebrinque,

    ProBuilder indicators (personal indicators) may consume significant resources, particularly if the code is complex. We recommend that you limit the number of personal indicators displayed and optimize their code to make the calculations faster (consult the programming manuals to learn more about this).

    Best regards,

    Maria

    margincallcat thanked this post
    #84931 quote
    margincallcat
    Participant
    Average

    Hello Lebrinque,

    ProBuilder indicators (personal indicators) may consume significant resources, particularly if the code is complex. We recommend that you limit the number of personal indicators displayed and optimize their code to make the calculations faster (consult the programming manuals to learn more about this).

    Best regards,

    Maria

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Does more line of code = more cpu usage?


Platform Support: Charts, Data & Broker Setup

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by margincallcat
7 years, 4 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 07/21/2018
Status: Active
Attachments: No files
Logo Logo
Loading...