Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

can't get it to plot

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

    can't get it to plot

    i really am at a loss...
    i just can't see what i've missed...
    i just used the packaged EMA indicator to build one with a crossing signal
    and i can't even get the thing to plot
    this is probably the most simple indicator mod i've done - besides the color changing hull
    ... what is wrong here ?

    thank God it's Fed day tomorrow - the mrkts will be slow...
    Attached Files
    Last edited by stafe; 06-17-2014, 11:15 PM.

    #2
    For the first bar of your chart, which is CurrentBar = 0, you are referencing the prior bar Close[1] and the prior indicator value Value[1], although such values do not exist.

    All you need to do is to insert

    Code:
    if(CurrentBar < 1)
         return;
    in line 58 of your indicator.

    Comment


      #3
      omg, i do feel really stupid now
      i even checked the Log and of course there was the "out of range" error in bright yellow
      thanks Harry
      i put down programing in 1982 and just picked it back up two years ago with C#
      got all this rust all over me...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      83 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      45 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      65 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X