Values needs to be changed depending on the instrument.
Also most of the math is unneccesary.
(100+(100*(1+x)))
y=x
x=y+1
Is the only thing you acctually need.
I just wrote it like this, so i can backtrack easy and see what i did.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
//Actual Line Linevalue=100 DRAWHLINE(100) DRAWHLINE(100+100) DRAWHLINE(100+(100*2)) DRAWHLINE(100+(100*(2+1))) DRAWHLINE(100+(100*(2+x)))coloured(0,200,0)STYLE(line,3) //Optional Extra deviation lines. DRAWHLINE(105) DRAWHLINE(105+100) DRAWHLINE(105+(100*2)) DRAWHLINE(105+(100*(2+1))) DRAWHLINE(105+(100*(2+x)))coloured(0,200,0)STYLE(DOTTEDline,1) DRAWHLINE(195) DRAWHLINE(195+100) DRAWHLINE(195+(100*2)) DRAWHLINE(195+(100*(2+1))) DRAWHLINE(195+(100*(2+x)))coloured(0,200,0)STYLE(DOTTEDline,1) y=x x=y+1 RETURN |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials