Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator doesnt plot in data window but plots in strategy builder

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

    #16
    Hello tkaboris,

    Thank you for your reply.

    What that tells us is the line of code causing the errors is past line 138 and before line 145, where the next print is:
    Code:
     Print("136");
    ZOrder = ChartBars.ZOrder - 7;
    Print("138");​
    if(!initOne)
    {
    menuSepa = new Separator();
    menuItem = new MenuItem { Header = "Zones" };
    menuItemActive = new MenuItem { Header = (hideActiveZones) ? "Show Active Zones" : "Hide Active Zones" };
    menuItemBroken = new MenuItem { Header = (hideBrokenZones) ? "Show Broken Zones" : "Hide Broken Zones" };
    Print("145");
    menuItemActive.Click += toggleActiveZones;
    menuItemBroken.Click += toggleBrokenZones;
    Print("148");
    menuItem.Items.Add(menuItemActive);
    menuItem.Items.Add(menuItemBroken);
    Print("151");
    initOne = true;
    }​
    Next, you could add a print statement line-by-line or you could print out the values used as detailed in the following guide on using prints to debug your scripts:


    This should help you to narrow down which line of code and/or which variable is causing the error so you may further debug the script.

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

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