Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Working With Many Charts

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

    Working With Many Charts

    Hello

    When running an automated strategy on many charts (100+ in my case), there's only two solutions in my opinion to do so efficiently. Either you have a lot of screens, or you develop your code so as to only show the chart(s) that have an active trading signal. Ideally, a chart should pop up on the screen as soon as the signal is triggered and disappear again after a certain number of bars (ie once the position is closed).

    I've been trying to do the latter using the ChartControl.ParentForm.Show() command, but for some reason the code isn't working. I know that the ChartControl.ParentForm command isn't supported, but I would still very much appreciate if someon could chip in here.

    Thanks a lot.

    Here's the code snippet:

    int currentBar = 0;

    //I replaced my entry conditions with Close[0]>Open[0] to make things easier
    if(Close[0]>Open[0])

    {
    ChartControl.ParentForm.Show();
    currentBar = CurrentBar;
    }


    if (CurrentBar - currentBar > 3)

    {
    ChartControl.ParentForm.Hide();

    }

Latest Posts

Collapse

Topics Statistics Last Post
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
107 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
153 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
71 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
125 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
79 views
0 likes
Last Post PaulMohn  
Working...
X