last low/ last high
Forums › ProRealTime English forum › ProBuilder support › last low/ last high
- This topic has 13 replies, 2 voices, and was last updated 1 year ago by JS.
Viewing 14 posts - 1 through 14 (of 14 total)
-
-
05/17/2023 at 3:15 PM #214849
hello
i m looking for an indicator showing me the last high and low from an upper time frame
for or example in a 1 mn timeframe chart to have a line for the last previous 30 mn high and low until the next 30 mn change . for 1 mn bar between 9 am and 9:30 am having a line coresponding at high and low of 8:30am- 9 am
if i want 30 mn high low, but to have the possibility to select different time frame inside the indicatorin advance thanks
05/17/2023 at 4:26 PM #214852Hi @thebaron
You can try this…
TFS High Low123456789101112DefParam DrawOnLastBarOnly=TrueTimeFrame(30 minute, UpdateOnClose)xHigh1=High[1]xLow1=Low[1]TimeFrame(1 minute)DrawHLine(xHigh1)Coloured("Red")DrawText("#xHigh1#",BarIndex+10,xHigh1+2*pipsize)Coloured("Red")DrawHLine(xLow1)Coloured("Green")DrawText("#xLow1#",BarIndex+10,xLow1+2*pipsize)Coloured("Green")Return05/17/2023 at 7:19 PM #21485805/17/2023 at 7:48 PM #21485905/17/2023 at 7:52 PM #21486005/17/2023 at 8:04 PM #21486305/17/2023 at 8:22 PM #21486405/17/2023 at 8:53 PM #21486505/18/2023 at 9:17 AM #21487005/18/2023 at 9:35 AM #21487105/18/2023 at 9:47 AM #21487205/18/2023 at 10:59 AM #214877Hi @thebaron
Here is the adjusted indicator…
(You can adjust the time frames)
TFS High Low v21234567891011121314151617181920212223242526272829DefParam DrawOnLastBarOnly=TrueTimeFrame(30 minute, UpdateOnClose)HTF=GetTimeFramexHigh1=HighxLow1=LowTimeFrame(1 minute)LTF=GetTimeFramePeriod=HTF/LTFFor i=0 to Period-1If High[i]=xHigh1 thenx1=BarIndex[i]EndIfNextDrawSegment(x1,xHigh1,BarIndex-3,xHigh1)Coloured("Red")DrawText("#xHigh1#",BarIndex+1,xHigh1,SansSerif,Bold,16)Coloured("Red")For i=0 to Period-1If Low[i]=xLow1 thenx2=BarIndex[i]EndIfNextDrawSegment(x2,xLow1,BarIndex-3,xLow1)Coloured("Green")DrawText("#xLow1#",BarIndex+1,xLow1,SansSerif,Bold,16)Coloured("Green")Return05/18/2023 at 11:46 AM #21488005/18/2023 at 11:59 AM #214883 -
AuthorPosts
Viewing 14 posts - 1 through 14 (of 14 total)
Find exclusive trading pro-tools on
Similar topics: