I tried to rearrange the order the pivots show in the data box to read top to bottom:
R3,R2,R1,PP,S1,S2,S3
but all I was able to do was rearrange the names, but the values stayed in the original order as the ninja default that runs from PP on down.
I think it must be in properties somehow but I couldnt figure out how.
It wont let me post all the code so I just posted the parts I changed from the ninja default after copying it into 'MyPivots' script. I didnt switch any data in properties, but reproduced the relevant parts I think so you can view it easily.
/// </summary> protected override void Initialize() { Add(new Plot(Color.Red, "R3")); Add(new Plot(Color.Red, "R2")); Add(new Plot(Color.Red, "R1")); Add(new Plot(Color.Black,"PP")); Add(new Plot(Color.Green,"S1")); Add(new Plot(Color.Green,"S2")); Add(new Plot(Color.Green,"S3")); { R3.Set(r3); R2.Set(r2); R1.Set(r1); PP.Set(pp); S1.Set(s1); S2.Set(s2); S3.Set(s3); } } #region Properties /// <summary> /// </summary> [Description("Type of period for pivot points.")] [Category("Parameters")] public Data.PivotRange PivotRangeType { get { return pivotRangeType; } set { pivotRangeType = value; } } /// <summary> /// </summary> [Browsable(false)] [XmlIgnore] public DataSeries PP { get { return Values[0]; } } /// <summary> /// </summary> [Description("Approach for calculation the prior day HLC values.")] [Category("Parameters")] public Data.HLCCalculationMode PriorDayHLC { get { return priorDayHLC; } set { priorDayHLC = value; } } /// <summary> /// </summary> [Browsable(false)] [XmlIgnore] public DataSeries R1 { get { return Values[1]; } } /// <summary> /// </summary> [Browsable(false)] [XmlIgnore] public DataSeries R2 { get { return Values[3]; } } /// <summary> /// </summary> [Browsable(false)] [XmlIgnore] public DataSeries R3 { get { return Values[5]; } } /// <summary> /// </summary> [Browsable(false)] [XmlIgnore] public DataSeries S1 { get { return Values[2]; } } /// <summary> /// </summary> [Browsable(false)] [XmlIgnore] public DataSeries S2 { get { return Values[4]; } } /// <summary> /// </summary> [Browsable(false)] [XmlIgnore] public DataSeries S3 { get { return Values[6]; } } /// <summary> /// close value for user defined pivots calculation
Comment