• 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

Plot arrow adjustment

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

    Plot arrow adjustment

    the code in the pic works fine...
    i'm just trying to "fine tune" it to include an arrow when the current price can go 3 ticks below the sma 89.

    it doesn't have to be "exactly 3 ticks"...just not more than 10 ticks

    thank you

    if ((Diff[0]>DiffAvg[0] && Diff[1]<DiffAvg[1])
    && (High[0] >= SMA(89)[0])
    && (High[0] >= KeltnerChannel(1.5, 22).Lower[0] + -2 * TickSize)
    //&& (SMA(89)[0] - EMA(22)[0]< -3 )
    && (Diff[1] <= 0.175)
    && (Stochastics(5, 3, 3).K[1] <= stokl || Stochastics(5, 3, 3).K[2] <= stokl
    || Stochastics(5, 3, 3).K[0] <= stokl)

    )
    DrawArrowUp(Time[0].ToString(), 0, Low[1] - 0.25* TickSize, Color.Blue);



    http://screencast.com/t/Ra6Hp4ihrlx

    #2
    Then you would need to modify this line: High[0] >= SMA(89)[0]

    From what I understand on what you are trying to do you just want it to be more flexible in its drawing. Up to 10 ticks below SMA(89) you still want it to draw so just relax that condition to this: High[0] >= (SMA(89)[0] - 10 * TickSize)
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by chrismcdermut, Today, 01:46 PM
    3 responses
    17 views
    0 likes
    Last Post MojoJojo  
    Started by Bricolico, Today, 09:28 PM
    0 responses
    5 views
    0 likes
    Last Post Bricolico  
    Started by Tradwell385, Today, 08:51 PM
    0 responses
    7 views
    0 likes
    Last Post Tradwell385  
    Started by dvcpro4, Today, 07:08 PM
    0 responses
    19 views
    0 likes
    Last Post dvcpro4
    by dvcpro4
     
    Started by pennywise, Today, 06:40 PM
    0 responses
    8 views
    0 likes
    Last Post pennywise  
    Working...
    X