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 burtoninlondon, Today, 12:38 AM
            0 responses
            1 view
            0 likes
            Last Post burtoninlondon  
            Started by AaronKoRn, Yesterday, 09:49 PM
            0 responses
            11 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Yesterday, 08:42 PM
            0 responses
            10 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Yesterday, 07:51 PM
            0 responses
            12 views
            0 likes
            Last Post strategist007  
            Started by StockTrader88, 03-06-2021, 08:58 AM
            44 responses
            3,982 views
            3 likes
            Last Post jhudas88  
            Working...
            X