You can choose one to five indicators for analysis. In your PRT, you only have to add color zones to get the display shown. You can also remove all lines in the code (at Return) if you prefer to work with a sine curve.
It helps me to stick to my rules. I hope it helps you too and brings money 😉
The revised indicators “myCandle …” and “Opening Range …” and “OutsidebarColorSolo” are coming soon (click on my profile and follow me to stay updated).
// MyThermometer
// 11.05.2020(Release 1.2)
// Thomas Geisler
// Sharing ProRealTime knowledge
// https://www.prorealcode.com/library/
// Middle of intraday range from High to Low (#MiddleRange)
DM0 = (DHigh(0)-DLow(0))/2+DLow(0)
//--end--
// Heikin Ashi berechnen (#HeikisnAshi)
once haOpen = open
once haClose = Close
N = 0
if barindex = 0 then
haOpen = open
haClose = close
elsif N = 0 then
haClose =(Open+High+Low+Close)/4
haOpen =(haOpen[1]+haClose[1])/2
endif
//--end--
// Bull und Bear Stärke berechnen (#BullBear)
// Bestimmung der Stärke eines bullischen Trends
BullTrend = (Close - LOWEST[10](LOW)) / AVERAGETRUERANGE[10]
// Bestimmung der Stärke eines bearischen Trends
BearTrend = -(HIGHEST[10](HIGH) - Close) / AVERAGETRUERANGE[10]
//--end--
// Trendsignal berechnen
If MiddleRange = 0 then
A = 0
elsif Close[0] >= DM0 then
A = 1
else
A = -1
endif
if HeikinAshi = 0 then
B = 0
elsif close >= haOpen then
B = 1
else
B = -1
endif
if BullBear = 0 then
C = 0
elsif BullTrend > 1 then
C = 1
elsif BearTrend < -1 then
C = -1
endif
if SMA20 = 0 then
D = 0
elsif close >= average[20](Close) then
D = 1
else
D = -1
endif
Trend = A+B+C+D
//--end--
// Shows or Not Bull/Bear Trendlines
if ShowTrendLines = 1 then
But = BullTrend
Bet = BearTrend
else
But = 0
BeT = 0
endif
//--end--
return Trend as "Trend", 0as"0",1as"1",2as"2",3as"3",-1as"-1",-2as"-2",-3as"-3",4 as "OVERBOUGHT?",-4 as "OVERSOLD?", BuT as "BullTrend", BeT as "BearTrend"
You must be logged in to post a comment.
Dont work anymore with the current version?
Hi, also here not working. Only white lines.
Interesting. Many thanks. What is the market open indicator that you use? Could you share that one please? Thanks!
Ich habe den Bereich "Bull-/BearTrend" verändert. So liefert er sauberere und stabilere Signale. Hier der Code: I have changed the "Bull / Bear Trend" area. So it delivers cleaner and more stable signals. Here is the code: if BullBear = 0 then C = 0 elsif BullTrend > 1 and BearTrend >= -2then C = 1 elsif BearTrend < -1 and BullTrend <= 2 then C = -1 endif
Wenn sich Bull- und Beartrend zwischen 2 und -2 bewegt, deutet dies meist auf eine Konsolidierung / Seitwärtsphase hin. Wer mag kann sich diesen Bereich zusätzlich einfärben, wie in diesem Beispiel. If the bull and bear trend is between 2 and -2, this usually indicates a consolidation / sideways phase. If you like, you can also color this area, as in this example. https://1drv.ms/u/s!AlLFPjbX_wf1oKEviciNHbCR2uxxoQ?e=xLQzy4 https://1drv.ms/u/s!AlLFPjbX_wf1oKEw-1NoUXOvaelCzw?e=3715ph
tolle Arbeit, professionell