Suggestion to draw "trailing lines" a fixed number of ticks away from High of a bar

Discussion in 'Technical Analysis' started by NeoTrader, Jan 18, 2017.

  1. NeoTrader

    NeoTrader

    Hello, I'm trying to find a way to draw lines(horizontal lines or any other line) that automatically shows a point a fixed number of ticks above the last bar, as soon as the bar closes.
    I thought of using a 1 period moving average and then set a "displacement" of "X" ticks, but the only displacement available is horizontal or "in time".
    MA envelopes use %...
    I'm sure there's an easy way to do this, but I'm not seeing anything in the already built in indicators from NT that allows me to do this.
    Any suggestions?
     
    Last edited: Jan 18, 2017
  2. Simples

    Simples

    This is very easy to code if you create a new custom indicator for yourself. Something like (on top of my head):

    Value.Set(High[0] * (1.0 + (0.01))) // Draw 1% above bar's high

    Then configure it to only calculate on bar close.