Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting the second bar of the real time

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

    Plotting the second bar of the real time

    hi,
    i want plotting the second bar of the real time but i don know that instruction i can use..

    i had thinks :

    if (!Historical) Mem_Bar=CurrentBar;

    If (CurrentBar>Mem_bar)
    {
    .....
    .....
    }

    But I think this instruction is not good... someone can' help me?






    #2
    Hello turbofib,

    Thank you for your post.

    You will need to ensure the Mem_Bar is only set once, likely it is currently being set on every bar thus CurrentBar>Mem_Bar is never true. Please try the following:
    Code:
    // variables region
    private bool firstBar = false;
    
    // on bar update
    if(!Historical && !firstBar)
    {
    Mem_Bar = CurrentBar;
    firstBar = true;
    }

    Comment


      #3
      Ok .. thank you ....

      I just wrote an incomplete draft because I thought there was a command of the ninja that made this function..

      Now i will use your implementation..

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      562 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      325 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X