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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        54 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        72 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X