• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ray problem

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

    #16
    Hello julifro,

    Thanks for your reply.

    I've already discussed in this thread how to save the variables used to create the ray so that when the conditions require you can then change the color of the ray. If you are unsure, please reread the thread as well as the helpguide section listed in the previous replies.

    That leaves us with figuring out how to determine when the close of two successive bars close above the Ray. You appear to be drawing a flat ray as evidenced by the Y1 and Y2 values being exactly the same. So what we need to do is to save the Y1 value like this:

    Y1 = High[0]+((TickSize*2)*2);

    Finally to test for the close:

    if (Close[1] > Y1 && Close[0] > Y1)
    {
    DrawRay (....)
    }
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmarkb, Today, 12:04 AM
    0 responses
    2 views
    0 likes
    Last Post cmarkb
    by cmarkb
     
    Started by supernova0219, Yesterday, 07:48 PM
    0 responses
    6 views
    0 likes
    Last Post supernova0219  
    Started by qwfxny, Yesterday, 07:20 PM
    0 responses
    7 views
    0 likes
    Last Post qwfxny
    by qwfxny
     
    Started by bouncetherubble, Yesterday, 04:48 PM
    0 responses
    5 views
    0 likes
    Last Post bouncetherubble  
    Started by johnnybegoode, Yesterday, 11:35 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X