LIN Forward
Forums › ProRealTime English forum › ProOrder support › LIN Forward
- This topic has 6 replies, 3 voices, and was last updated 6 years ago by JohnScher.
-
-
06/23/2018 at 7:07 AM #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)
LIN backward1234567r= 0b=0g=0Support = 0,3*pipsizeLin = 3DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(r,g,b)I change the code from “barindex-lin” into “barindex+lin” and the lin turns forward.(screenshot2)
LIN forward1234567r= 0b=0g=0Support = 0,3*pipsizeLin = 3DRAWSEGMENT(barindex,LOW-SUPPORT,barindex+LIN, LOW-SUPPORT )coloured(r,g,b)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
PopGun12345678910111213141516171819202122232425// PopGun Indikator// Coded by JohnScherPIP = 0.3*pipsizeLIN = 3Support = (High-Low)*0.5Resistance = (High-Low)*0.5r=0g=0b=0//indicator PopGunPG = High[2]>High[1] and Low[2]<Low[1] and High>High[1] and Low<Low[1]IF PG ThenDRAWARROWUP(barindex,LOW-PIP)coloured(r,g,b)DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(r,g,b)DRAWARROWDOWN(barindex,HIGH+PIP)coloured(r,g,b)DRAWSEGMENT(barindex,High+Resistance,barindex-LIN, High+Resistance )coloured(r,g,b)ENDIFreturn06/24/2018 at 9:45 AM #74213Here 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?06/24/2018 at 9:58 AM #74216You cannot draw in the future, go back to -LIN, there’s no workaround!
1 user thanked author for this post.
06/24/2018 at 10:42 AM #7422006/24/2018 at 11:35 AM #74229LIN 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.
06/24/2018 at 4:14 PM #7425206/30/2018 at 9:34 AM #74899 -
AuthorPosts
Find exclusive trading pro-tools on