fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    on Init and on Trade too

    Questions & Answers
    2
    2
    863
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      richard96816 last edited by

      I want to display the number of trades, etc., for this magic number on the chart. Currently I compute and display it both places, on Init and on Trade so it stays up to date.
      Is there a way to call the same code from both places so I only need to update one place when I make changes?

      Thanks

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        You can find a block called "Run blocks" somewhere. Use it in the Init section to run the first block of the group in the Tick section.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        N

        13
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors