Indicator HH LL
Forums › ProRealTime English forum › ProOrder support › Indicator HH LL
- This topic has 4 replies, 2 voices, and was last updated 5 years ago by robertogozzi.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
07/08/2019 at 8:41 PM #102216
could make this indicator not disappear the ” HH LL ” when broken on the opposite side
CODE :1234567891011121314151617181920212223242526272829topf = high[4] < high[2] and high[3] <= high[2] and high[2] >= high[1] and high[2] > high[0]botf = low[4] > low[2] and low[3] >= low[2] and low[2] <= low[1] and low[2] < low[0]if topf then//if high[2]>higherhigh or lastsig=-1 thenhigherhigh=high[2]//lastsig=1//endifendifif botf then//if low[2]<lowerlow or lowerlow=0 or lastsig=1 thenlowerlow=low[2]//lastsig=-1//endifendifatr=averagetruerange[14]if higherhigh>higherhigh[1] thendrawtext("▼",barindex[2],higherhigh,dialog,bold,15)drawtext("HH",barindex[2],higherhigh+atr*0.2,dialog,bold,15)endifif lowerlow<lowerlow[1] thendrawtext("▲",barindex[2],lowerlow,dialog,bold,15)drawtext("LL",barindex[2],lowerlow-atr*0.2,dialog,bold,15)endifreturn07/08/2019 at 9:07 PM #102218>> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
07/08/2019 at 9:09 PM #102219What do you mean by “broken on the opposite side”?
07/08/2019 at 11:45 PM #10222907/09/2019 at 12:28 AM #102230I hope I could understand what you mean:
12345678910111213141516171819202122232425262728293031323334353637DEFPARAM DrawOnLastBarOnly = truetopf = high[4] < high[2] and high[3] <= high[2] and high[2] >= high[1] and high[2] > high[0]botf = low[4] > low[2] and low[3] >= low[2] and low[2] <= low[1] and low[2] < low[0]if topf then//if high[2]>higherhigh or lastsig=-1 thenhigherhigh=high[2]//lastsig=1//endifendifif botf then//if low[2]<lowerlow or lowerlow=0 or lastsig=1 thenlowerlow=low[2]//lastsig=-1//endifendif//atr=averagetruerange[14]ONCE SignalHH = 0ONCE SignalLL = 0if higherhigh>higherhigh[1] thenSignalHH = barindex[2]atrHH=averagetruerange[14]HHprice = higherhigh//drawtext("▼",barindex[2],higherhigh,dialog,bold,15)//drawtext("HH",barindex[2],higherhigh+atr*0.2,dialog,bold,15)endifif lowerlow<lowerlow[1] thenSignalLL = barindex[2]atrLL=averagetruerange[14]LLprice = lowerlow//drawtext("▲",barindex[2],lowerlow,dialog,bold,15)//drawtext("LL",barindex[2],lowerlow-atr*0.2,dialog,bold,15)endifdrawtext("▼",SignalHH,HHprice,dialog,bold,15)drawtext("HH",SignalHH,HHprice+atrHH*0.2,dialog,bold,15)drawtext("▲",SignalLL,LLprice,dialog,bold,15)drawtext("LL",SignalLL,LLprice-atrLL*0.2,dialog,bold,15)return -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
Find exclusive trading pro-tools on
Similar topics: