LIN Forward

Viewing 7 posts - 1 through 7 (of 7 total)
  • #74148

    Hello

    To describe my problem briefly, I have shortened to the essential from PopGun-Indicator i coded – see at the bottom

    The LIN generated by this code turns backward and ends with the current candle. (screenshot1)

     

    I change the code from “barindex-lin” into “barindex+lin” and the lin turns forward.(screenshot2)

    So far so good.

     

    But: The Lin forward will not displayed before until 3 new candles have been created. (screenshot3, same picture like screenshot1 but the Lin is missing)

    How can i program that the lin is already drawn on the current candle before the 3 new candles created.

     

    Kind regards

    JohnScher

    Translated with http://www.DeepL.com/Translator

     

     

    #74213

    Here again the problem in a picture.
    You can see that the previous PG is displayed with Lin over 3 candles, but for the current PG the Lin is not displayed with 3 candles.
    How can I solve the problem that the line 3 candles will be displayed forward when the PG is created?

     

    #74216

    You cannot draw in the future, go back to -LIN, there’s no workaround!

    1 user thanked author for this post.
    #74220

    Can i put a trendline in it instead the “Lin”?

    #74229

    LIN is just the offset to draw a segment across bars (from the past through the current one at most).

    Instead of a segment you can draw lines or whatever else, but still not in the future!

    To draw lines you can read pdf documentation and use the search box for examples.

    #74252

    As Roberto said, you can use DRAWHLINE, it will plot a thin line, in the future but also in the past …

    1 user thanked author for this post.
    #74899

    Yes i used the Drawhline function, it works very well, ty

Viewing 7 posts - 1 through 7 (of 7 total)
Similar topics:

Create your free account now and post your request to benefit from the help of the community
Register or Login