horizontal trend lines in prorealtime
Forums › ProRealTime English forum › General trading discussions › horizontal trend lines in prorealtime
- This topic has 3 replies, 2 voices, and was last updated 3 years ago by Rainer (RFW).
-
-
09/26/2021 at 4:36 PM #178456
hi there,
if you press the horizontal trend lines button in prorealtime you get major and secondary support and resistance lines in a specific chart.
what it the theory or programming commands the prorealtime uses in order to draw the lines?
i ‘m interested in this because i want to program the computer to find triple tops (the resistance line of the 3 peaks)
if i posted in wrong section please pardon me.
thanx.
09/27/2021 at 12:53 PM #178562Hello,
not the same, but it may help you.
This indicator looks for Double/Triple Tops/Bottoms. Please try it out.
Regards
RainerRFW_DoubleTriple_Top_Bottom123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238// Rainer-Franz Wirth Rainer (RFW) @ prorealcode.com//***************************************************************************************************************************************Defparam Drawonlastbaronly = True//***************************************************************************************************************************************//// Variables //////*****************StartPeriod = Max(0,StartPeriod) // StartPeriodSearchPeriod = Max(10,SearchPeriod) // LookBack Search-Periods, min.10MaxDistance = Max(0,MaxDistance) // Allowed Distance beetween Highs/Lows Double/Triple - 1 = 0.001%, 2 = 0.002% etc...MinBarDistance = Max(5,MinBarDistance) // Min Distance Candle Highs/LowsDisplayMod = Max(-1,DisplayMod) // -1 Check - 0 HLine - 1 HLine+Points - 2 HLine+Points+VLine - 3 All Lines+PointsColourMod = Max(1,ColourMod) // 1 Green/Red - 2 Blue/Orange - 3 Red/Green - 4 Orange/Blue//***************************************************************************************************************************************//// Colours //////***************************************************************************************************************************************// ColourMod 1: High Green, Low Red// ColourMod 2: High Red, Low Green// ColourMod 3: High Blue, Low Orange// ColourMod 4: High Orange, Low Blue//************************************If ColourMod = 1 Then// High GreenRCH1 = 0GCH1 = 255BCH1 = 0// Low RedRCL1 = 255GCL1 = 0BCL1 = 0ElsIf ColourMod = 2 Then// High RedRCH1 = 255GCH1 = 0BCH1 = 0// Low GreenRCL1 = 0GCL1 = 255BCL1 = 0ElsIf ColourMod = 3 Then// High BlueRCH1 = 0GCH1 = 150BCH1 = 255// Low OrangeRCL1 = 255GCL1 = 100BCL1 = 0ElsIf ColourMod = 4 Then// High OrangeRCH1 = 255GCH1 = 100BCH1 = 0// Low BlueRCL1 = 0GCL1 = 150BCL1 = 255Endif//***************************************************************************************************************************************//// SearchPeriods //////********************SP0 = StartPeriodSPS = SearchPeriod+SP0//***********************************************//// Check/Visualize Search Periods-Sections //////***********************************************If (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWVLINE(BarIndex-SP0)Coloured(0,0,255)DRAWVLINE(BarIndex-SPS)Coloured(0,0,255)Endif//***************************************************************************************************************************************If IsLastBarupdate Then// 1. HighHDT1 = 0For HDT1x = SP0 To SPS DoIf High[HDT1x] > HDT1 ThenHDT1 = High[HDT1x]HDT1B = BarIndex[HDT1x]EndIfNextHDTDUP = (HDT1*(1+(MaxDistance/100000)))HDTDDO = (HDT1*(1-(MaxDistance/100000)))If (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(HDT1B,HDT1,3)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWHLINE(HDT1)Coloured(255,255,255)DRAWHLINE(HDTDDO)Coloured(255,0,0)DRAWHLINE(HDTDUP)Coloured(0,255,0)Endif//******************************************************************// 2. HighFor HDTC2x = SP0 To SPS DoIf (High[HDTC2x] > HDTDUP) ThenBreakElse//************************************************************For HDT2x = SP0 To SPS DoIf ((High[HDT2x] >= HDTDDO) And (High[HDT2x] =< HDTDUP)) And ((Abs(HDT1B-(BarIndex[HDT2x]))) >= MinBarDistance) ThenHDT2 = High[HDT2x]HDT2B = BarIndex[HDT2x]DTH = 2 // Double-TopIf (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIfBreakEndIfNext //************ 2. High//***********************************************************// 3. HighFor HDT3x = SP0 To SPS DoIf (High[HDT3x] >= HDTDDO) And (High[HDT3x] =< HDTDUP) And ((Abs(HDT2B-(BarIndex[HDT3x]))) >= MinBarDistance) And ((Abs(HDT1B-(BarIndex[HDT3x]))) >= MinBarDistance) ThenHDT3 = High[HDT3x]HDT3B = BarIndex[HDT3x]DTH = 3 // Triple-TopIf (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(HDT3B,HDT3,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIfBreakEndIfNext //************ 3. High//***********************************************************EndifNext //************ 1. Higher Check//******************************************************************If (DTH = 2) ThenDRAWHLINE(HDT1)Coloured(RCH1,GCH1,BCH1)Style(Line,2)If (DisplayMod > 0) Then // Line-Horizontal+PointDRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIfIf (DisplayMod > 1) Then // Line-Horizontal+Point+Line-VerticalDRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWVLINE(HDT1B)Coloured(RCH1,GCH1,BCH1)DRAWVLINE(HDT2B)Coloured(RCH1,GCH1,BCH1)EndifEndIfIf (DTH = 3) ThenDRAWHLINE(HDT1)Coloured(RCH1,GCH1,BCH1)Style(Line,2)If (DisplayMod > 0) Then // Line-Horizontal+PointDRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT3B,HDT3,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIfIf (DisplayMod > 1) Then // Line-Horizontal+Point+Line-VerticalDRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT3B,HDT3,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWVLINE(HDT1B)Coloured(RCH1,GCH1,BCH1)DRAWVLINE(HDT2B)Coloured(RCH1,GCH1,BCH1)DRAWVLINE(HDT3B)Coloured(RCH1,GCH1,BCH1)EndifEndif//***************************************************************************************************************************************//***************************************************************************************************************************************// 1. LowLDT1 = 999999For LDT1x = SP0 To SPS DoIf Low[LDT1x] < LDT1 ThenLDT1 = Low[LDT1x]LDT1B = BarIndex[LDT1x]EndIfNextLDTDUP = (LDT1*(1+(MaxDistance/100000)))LDTDDO = (LDT1*(1-(MaxDistance/100000)))If (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(LDT1B,LDT1,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWHLINE(LDT1)Coloured(255,255,255)DRAWHLINE(LDTDDO)Coloured(255,0,0)DRAWHLINE(LDTDUP)Coloured(0,255,0)Endif//******************************************************************// 2. LowFor LDTC2x = SP0 To SPS DoIf (Low[LDTC2x] < LDTDDO) ThenBreakElse//************************************************************For LDT2x = SP0 To SPS DoIf ((Low[LDT2x] >= LDTDDO) And (Low[LDT2x] =< LDTDUP)) And ((Abs(LDT1B-(BarIndex[LDT2x]))) >= MinBarDistance) ThenLDT2 = Low[LDT2x]LDT2B = BarIndex[LDT2x]DTL = 2 // Double-BottomIf (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(LDT2B,LDT2,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIfBreakEndIfNext //************ 2. Low//***********************************************************// 3. LowFor LDT3x = SP0 To SPS DoIf (Low[LDT3x] >= LDTDDO) And (Low[LDT3x] =< LDTDUP) And ((Abs(LDT2B-(BarIndex[LDT3x]))) >= MinBarDistance) And ((Abs(LDT1B-(BarIndex[LDT3x]))) >= MinBarDistance) ThenLDT3 = Low[LDT3x]LDT3B = BarIndex[LDT3x]DTL = 3 // Triple-BottomIf (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(LDT3B,LDT3,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIfBreakEndIfNext //************ 3. Low//***********************************************************EndifNext //************ 1. Lower Check//******************************************************************If (DTL = 2) ThenDRAWHLINE(LDT1)Coloured(RCL1,GCL1,BCL1)Style(Line,2)If (DisplayMod > 0) Then // Line-Horizontal+PointDRAWPOINT(LDT1B,LDT1,3)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT2B,LDT2,3)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIfIf (DisplayMod > 1) Then // Line-Horizontal+Point+Line-VerticalDRAWPOINT(LDT1B,LDT1,3)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT2B,LDT2,3)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWVLINE(LDT1B)Coloured(RCL1,GCL1,BCL1)DRAWVLINE(LDT2B)Coloured(RCL1,GCL1,BCL1)EndifEndIfIf (DTL = 3) ThenDRAWHLINE(LDT1)Coloured(RCL1,GCL1,BCL1)Style(Line,2)If (DisplayMod > 0) Then // Line-Horizontal+PointDRAWPOINT(LDT1B,LDT1,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT2B,LDT2,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT3B,LDT3,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIfIf (DisplayMod > 1) Then // Line-Horizontal+Point+Line-VerticalDRAWPOINT(LDT1B,LDT1,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT2B,LDT2,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT3B,LDT3,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWVLINE(LDT1B)Coloured(RCL1,GCL1,BCL1)DRAWVLINE(LDT2B)Coloured(RCL1,GCL1,BCL1)DRAWVLINE(LDT3B)Coloured(RCL1,GCL1,BCL1)EndifEndif//***************************************************************************************************************************************//***************************************************************************************************************************************EndIf // IsLastBarupdate//***************************************************************************************************************************************Return1 user thanked author for this post.
09/27/2021 at 8:52 PM #178604Sorry, I uploaded an old File/Code, now the correct .itf-File.
Best Regards
Rainer09/27/2021 at 9:04 PM #178606..and the Code:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221// Rainer-Franz Wirth Rainer (RFW) @ prorealcode.com//***************************************************************************************************************************************Defparam Drawonlastbaronly = TrueDH = 0DL = 0//***************************************************************************************************************************************//// Variables //////*****************StartPeriod = Max(0,StartPeriod) // StartPeriodSearchPeriod = Max(10,SearchPeriod) // LookBack Search-Periods, min.10MaxDistance = Max(0,MaxDistance) // Allowed Distance Highs/Lows Double/Triple - 1 = 0.001%, 2 = 0.002% etc...MinBarDistance = Max(1,MinBarDistance) // Min BarDistance Candle Highs/LowsDisplayMod = Max(-1,DisplayMod) // -1 Check - 0 HLine - 1 HLine+Points - 2 HLine+Points+VLine - 3 AllColourMod = Max(1,ColourMod) // 1 Green/Red - 2 Blue/Orange - 3 Red/Green - 4 Orange/Blue//***************************************************************************************************************************************//// Colours //////***************************************************************************************************************************************// ColourMod 1: High Green, Low Red// ColourMod 2: High Red, Low Green// ColourMod 3: High Blue, Low Orange// ColourMod 4: High Orange, Low Blue//************************************If ColourMod = 1 Then// High GreenRCH1 = 0GCH1 = 255BCH1 = 0// Low RedRCL1 = 255GCL1 = 0BCL1 = 0ElsIf ColourMod = 2 Then// High RedRCH1 = 255GCH1 = 0BCH1 = 0// Low GreenRCL1 = 0GCL1 = 255BCL1 = 0ElsIf ColourMod = 3 Then// High BlueRCH1 = 0GCH1 = 150BCH1 = 255// Low OrangeRCL1 = 255GCL1 = 100BCL1 = 0ElsIf ColourMod = 4 Then// High OrangeRCH1 = 255GCH1 = 100BCH1 = 0// Low BlueRCL1 = 0GCL1 = 150BCL1 = 255Endif//***************************************************************************************************************************************If IsLastBarupdate ThenMaxBarindex = BarIndex//*********************//// SearchPeriods //////********************SP0 = StartPeriodSPS = Min(MaxBarindex-1,(SearchPeriod-SP0-1))//***********************************************//// Check/Visualize Search Periods-Sections //////***********************************************If (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWVLINE(BarIndex-SP0)Coloured(0,0,255)DRAWVLINE(BarIndex-SPS)Coloured(0,0,255)Endif//***************************************************************************************************************************************//************ 1. HighHDT1 = Highest[SPS](High[SP0])For HDT1x = SP0 To SPS DoIf High[HDT1x] = HDT1 ThenHDT1 = High[HDT1x]HDT1B = BarIndex[HDT1x]BreakEndIfNextHDTDUP = (HDT1*(1+(MaxDistance/100000)))HDTDDO = (HDT1*(1-(MaxDistance/100000)))If (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWHLINE(HDTDDO)Coloured(255,0,0)DRAWHLINE(HDTDUP)Coloured(0,255,0)DRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIf//************ 2. HighFor HDT2x = SP0 To SPS DoIf ((High[HDT2x] >= HDTDDO) And (High[HDT2x] =< HDTDUP)) And ((Abs(HDT1B-(BarIndex[HDT2x]))) >= MinBarDistance) ThenHDT2 = High[HDT2x]HDT2B = BarIndex[HDT2x]DH = 2 // Double-TopIf (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIfBreakEndIfNext//************ 3. HighFor HDT3x = SP0 To SPS DoIf (High[HDT3x] >= HDTDDO) And (High[HDT3x] =< HDTDUP) And ((Abs(HDT2B-(BarIndex[HDT3x]))) >= MinBarDistance) And ((Abs(HDT1B-(BarIndex[HDT3x]))) >= MinBarDistance) ThenHDT3 = High[HDT3x]HDT3B = BarIndex[HDT3x]DH = 3 // Triple-TopIf (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(HDT3B,HDT3,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIfBreakEndIfNext//***************************************************************************************************************************************3.If (DH = 2) ThenDRAWHLINE(HDT1)Coloured(RCH1,GCH1,BCH1)Style(Line,2)If (DisplayMod > 0) Then // Line-Horizontal+PointDRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIfIf (DisplayMod > 1) Then // Line-Horizontal+Point+Line-VerticalDRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWVLINE(HDT1B)Coloured(RCH1,GCH1,BCH1)DRAWVLINE(HDT2B)Coloured(RCH1,GCH1,BCH1)EndifEndIfIf (DH = 3) ThenDRAWHLINE(HDT1)Coloured(RCH1,GCH1,BCH1)Style(Line,2)If (DisplayMod > 0) Then // Line-Horizontal+PointDRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT3B,HDT3,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)EndIfIf (DisplayMod > 1) Then // Line-Horizontal+Point+Line-VerticalDRAWPOINT(HDT1B,HDT1,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT2B,HDT2,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWPOINT(HDT3B,HDT3,2)Coloured(RCH1,GCH1,BCH1)Bordercolor(RCH1,GCH1,BCH1)DRAWVLINE(HDT1B)Coloured(RCH1,GCH1,BCH1)DRAWVLINE(HDT2B)Coloured(RCH1,GCH1,BCH1)DRAWVLINE(HDT3B)Coloured(RCH1,GCH1,BCH1)EndIfEndif//***************************************************************************************************************************************3.//***************************************************************************************************************************************3.//************ 1. LowLDT1 = Lowest[SPS](Low[SP0])For LDT1x = SP0 To SPS DoIf Low[LDT1x] = LDT1 ThenLDT1 = Low[LDT1x]LDT1B = BarIndex[LDT1x]BreakEndIfNextLDTDUP = (LDT1*(1+(MaxDistance/100000)))LDTDDO = (LDT1*(1-(MaxDistance/100000)))If (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWHLINE(LDTDDO)Coloured(255,0,0)DRAWHLINE(LDTDUP)Coloured(0,255,0)DRAWPOINT(LDT1B,LDT1,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIf//************ 2. LowFor LDT2x = SP0 To SPS DoIf ((Low[LDT2x] >= LDTDDO) And (Low[LDT2x] =< LDTDUP)) And ((Abs(LDT1B-(BarIndex[LDT2x]))) >= MinBarDistance) ThenLDT2 = Low[LDT2x]LDT2B = BarIndex[LDT2x]DL = 2 // Double-BottomIf (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(LDT2B,LDT2,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIfBreakEndIfNext//************ 3. LowFor LDT3x = SP0 To SPS DoIf (Low[LDT3x] >= LDTDDO) And (Low[LDT3x] =< LDTDUP) And ((Abs(LDT2B-(BarIndex[LDT3x]))) >= MinBarDistance) And ((Abs(LDT1B-(BarIndex[LDT3x]))) >= MinBarDistance) ThenLDT3 = Low[LDT3x]LDT3B = BarIndex[LDT3x]DL = 3 // Triple-BottomIf (DisplayMod = -1) Or (DisplayMod > 2) ThenDRAWPOINT(LDT3B,LDT3,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIfBreakEndIfNext//***************************************************************************************************************************************3.If (DL = 2) ThenDRAWHLINE(LDT1)Coloured(RCL1,GCL1,BCL1)Style(Line,2)If (DisplayMod > 0) Then // Line-Horizontal+PointDRAWPOINT(LDT1B,LDT1,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT2B,LDT2,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIfIf (DisplayMod > 1) Then // Line-Horizontal+Point+Line-VerticalDRAWPOINT(LDT1B,LDT1,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT2B,LDT2,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWVLINE(LDT1B)Coloured(RCL1,GCL1,BCL1)DRAWVLINE(LDT2B)Coloured(RCL1,GCL1,BCL1)EndifEndIfIf (DL = 3) ThenDRAWHLINE(LDT1)Coloured(RCL1,GCL1,BCL1)Style(Line,2)If (DisplayMod > 0) Then // Line-Horizontal+PointDRAWPOINT(LDT1B,LDT1,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT2B,LDT2,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT3B,LDT3,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)EndIfIf (DisplayMod > 1) Then // Line-Horizontal+Point+Line-VerticalDRAWPOINT(LDT1B,LDT1,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT2B,LDT2,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWPOINT(LDT3B,LDT3,2)Coloured(RCL1,GCL1,BCL1)Bordercolor(RCL1,GCL1,BCL1)DRAWVLINE(LDT1B)Coloured(RCL1,GCL1,BCL1)DRAWVLINE(LDT2B)Coloured(RCL1,GCL1,BCL1)DRAWVLINE(LDT3B)Coloured(RCL1,GCL1,BCL1)EndIfEndif//***************************************************************************************************************************************EndIf // IsLastBarupdate//***************************************************************************************************************************************Return -
AuthorPosts
Find exclusive trading pro-tools on