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 Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,789 views
            0 likes
            Last Post aligator  
            Started by Jimmyk, 01-26-2018, 05:19 AM
            6 responses
            837 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,293 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            13 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            11 responses
            63 views
            0 likes
            Last Post halgo_boulder  
            Working...
            X