Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting Secondary Series Indicators

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

    #16
    Hello raysinred,

    Thanks for your message.


    I've created a very simple script that demonstrates how the swing indicator has been added to the strategy using AddChartIndicator() method, and how

    I'm specifying the panel on which to display its plot.


    You can use this script as a reference for your script on how to accomplish that.

    Feel free to reach out with any other questions.
    Attached Files

    Comment


      #17
      Hi Helom,

      I tried what you put in the script, and it's still not working correctly. I'm not sure what the issue is. The strategy itself is working, but the plotting of these indicators is not.

      I also tried the EMA indicator to see if maybe there was something up with the Swing indicator, but it also is not plotting correctly.

      else if (State == State.DataLoaded)
      {​
      AddChartIndicator(EMA(MovAvg1));
      ChartIndicators[0].Panel = 0;​

      ...

      Thank you,
      Ray

      Comment


        #18
        Hi Helom,

        I was able to fix it. For reasons I was not able to determine, the strategy had some bug. So I decided to just start a new blank strategy and import the code. That fixed the problem.

        Thanks for all the help.

        Ray

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        88 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        134 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X