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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            116 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            61 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            40 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            44 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            82 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X