Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Support request. Thanks...

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

    Support request. Thanks...

    Hi,

    In the below code for ( Plot0.Set ) - what symbol do i use to divide . So far I can use : + , - , * , ... The " / " symbol doesn't seem to work to divide - the chart comes back blank.. Thanks...


    double pc = OBVD ( Close , 1.68 , ShortTerm ).Pobv [0] ;
    double pe = OBVD ( Close , 1.68 , ShortTerm ) .Pbollsup [0];
    double pr = OBVD ( Close , 1.68 , ShortTerm ).Pbollinf [0] ;

    Plot0.Set( (pc - pe) * (pc - pr )) ;

    #2
    You use / to divide. If the chart comes up blank you need to look in the Control Center logs for errors. Likely division by zero or some other error.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Reply

      I'm dividing by a number less than zero ; so this is probably the problem... Is there a way around this?

      Comment


        #4
        Dividing by less than zero is not a problem mathematically. Please confirm what you see in the Control Center logs.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          reply

          Thanks for the help. I fixed the problem.. It was the on bar update setting on the main (base) indicator.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,290 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          8 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          8 responses
          61 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by Option Whisperer, Today, 09:55 AM
          0 responses
          8 views
          0 likes
          Last Post Option Whisperer  
          Started by halgo_boulder, 04-20-2024, 08:44 AM
          2 responses
          24 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X