Currently indicator is not plotting anything to the databox
I was hoping some one can help
AddPlot(Brushes.Blue, "MyPlot1"); // <-- this becomes Values[0]
AddPlot(Brushes.Green, "MyPlot2"); // <-- this becomes Values[1]
MyPlot1[0] = FVGType.R;
MyPlot2[0] = FVGType.S;
[Browsable(false)]
[XmlIgnore]
public Series<FVGType> MyPlot1
{ get { return Values[0]; } }
[Browsable(false)]
[XmlIgnore]
public Series<FVGType> MyPlot2
{ get { return Values[1]; } }
public class FVGIndTest : Indicator { // Support or Resistance FVG public enum FVGType { S, R } #region Class FVG // public List<FVGTYPESR> ; public class FVG { public double upperPrice; public double lowerPrice; public double consequentEncroachmentPrice; public string tag; public FVGType type; public bool filled; public DateTime gapStartTime; public DateTime fillTime; public FVG(string tag, FVGType type, double lowerPrice, double uppperPrice, DateTime gapStartTime) { this.tag = tag; this.type = type; this.lowerPrice = lowerPrice; this.upperPrice = uppperPrice; this.consequentEncroachmentPrice = (this.lowerPrice + this.upperPrice) / 2.0; this.filled = false; this.gapStartTime = gapStartTime; } } #endregion
Comment