MyThermometer as optical signal transmitter

Category: Indicators By: Thomas Created: May 12, 2020, 8:14 AM
May 12, 2020, 8:14 AM
Indicators
10 Comments

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"

Download
Filename: MyThermometerAdjust1-1.png
Downloads: 269
Download
Filename: MyThermometer2-1.png
Downloads: 285
Download
Filename: MyThermometer1.png
Downloads: 429
Download
Filename: MyThermometer_ColorAreas-1.png
Downloads: 300
Download
Filename: MyThermometer-V1.2.itf
Downloads: 599
Thomas Average
This author is like an anonymous function, present but not directly identifiable. More details on this code architect as soon as they exit 'incognito' mode.
Author’s Profile

Comments

Logo Logo
Loading...