Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw GanFan 8*1 is always on X axis and 1*8 on Y Axis

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

    Draw GanFan 8*1 is always on X axis and 1*8 on Y Axis

    hi ,

    1. I need fix GannFan anagles 8*1 is always on X axis and 1*8 on Y Axis. How to Fix these angles?

    2. Initially when i draw GannFan it will be very small but when i increase points per bar properties it will be visible. How i fix it for all charts or scripts both X and Y axis?

    3. How to configure points per bar or fan direction programmatically through Script?
    Attached Files

    #2
    Hello shankar.deshapande,

    Thank you for your note.

    While this is not documented, the GannFan has a PointsPerBar property and GannAngles List<GannAngle> collection property.

    Code:
    GannFan gFan = Draw.GannFan(this, "fan", true, 0, Close[0]);
    gFan.PointsPerBar = 2;
    gFan.GannAngles.Add(new GannAngle(1, 5, Brushes.Blue));
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      1. What it defines gFan.PointsPerBar = 2; , what will happen if i define gFan.PointsPerBar = 1, gFan.PointsPerBar = 3
      2. How to Fix X and Y Axis
      3.

      Comment


        #4
        Hello shankar.deshapande,

        Apologies, the help guide notes you should actually be adding to the PriceLevels collection instead of the GannAngles. Sample code is in the help guide.


        The points per bar is used to adjust the steepness of each angle. Try adjusting this manually on a chart to get a sense of how this works.

        I'm not sure what you are referring to as 'Fix X and Y Axis'.

        Are you asking how to change the Fan direction?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi ,

          1. Need to change FAN Direction also
          2. GanFan 8*1 is always on X axis and 1*8 on Y Axis

          Comment


            #6
            Hello shankar.deshapande,

            Changing the GannFanDirection direction property would change this.

            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            21 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            121 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            175 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            92 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            134 views
            0 likes
            Last Post cmoran13  
            Working...
            X