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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      164 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      317 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X