Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to print boolseries in databox.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to print boolseries in databox.

    below is the snippets that identifies that i coded it correct. however i cannot see ADXTrending in the databox. why?

    private
    BoolSeries adxTrending; // Define a BoolSeries variable

    protectedoverridevoid Initialize()
    {
    Add(
    new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Dot, "ADXRising"));
    Add(
    new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Dot, "ADXNotFalling"));
    adxTrending=
    new BoolSeries(this);
    CalculateOnBarClose =
    true;
    Overlay =
    false;
    PriceTypeSupported =
    false;
    }
    protectedoverridevoid OnBarUpdate()
    {
    if(ADX(14)[1]>25){
    adxTrending.Set(true);
    }


    [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
    [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
    public BoolSeries ADXTrending
    {
    get { return adxTrending; }
    }



    #2
    ignore. only plots can be shown in databox.

    Comment


      #3
      I assume you figured that you could just map True/False to 0/1 or perhaps -1/1, Plot that to get it to show in the data box.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      35 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      21 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X