i followed one of the tutorial but missing something basic.
look at code below. regarding ‘signal = 0‘, i dont want to display it in the charge as it distorted it. i am only intresed in the ‘signal = low‘ to b displayed on chart. how can i handle it?
smaShort = average [short] smaLong = average [long] sto = Stochastic[14,3](close)
if smaShort > smaLong then if sto crosses over 20 then
signal = low else signal = 0 endif endif return signal
smaShort = average [short]
smaLong = average [long] sto = Stochastic[14,3](close)
signal = low
Once t = 0
if smaShort > smaLong then
if sto crosses over 20 then
t = 255
else
t = 1
endif
endif
return signal coloured(“Green”,t)
It’s not possible to return NOTHING. If a variable is set it returns the retained value, no matter if it had been assigned bars before or in the current bar. If it’s cleared (assigned 0), it will return 0.
That’s why your indicator, like Macd, Rsi etc… will not display correctly when added ON the chart. The returned value is on a different scale than the price. On a DAX chart the price is about 15000 while your indicator returns 0 or 1. If you make the chart be displayed normally you won’t see your indicator, if you shrink your chart to see your indicator, the price bars will appear as a straight line.
This is beating around the bush. The fact that we can’t “switch off” an indicator is highly annoying.
On another note : I don’t think I am using any shortcuts for any of the many functions in PRT, but I want one : for Vertical Resizing – Use Price only – as I am using this x times per day. But we can’t assign a shortcut to that as far as I know.
Or allow it to don’t show anything when I decide so, like Lady Y asks.
The information collected on this form is stored in a computer file by ProRealCode to create and access your ProRealCode profile. This data is kept in a secure database for the duration of the member's membership. They will be kept as long as you use our services and will be automatically deleted after 3 years of inactivity. Your personal data is used to create your private profile on ProRealCode. This data is maintained by SAS ProRealCode, 407 rue Freycinet, 59151 Arleux, France. If you subscribe to our newsletters, your email address is provided to our service provider "MailChimp" located in the United States, with whom we have signed a confidentiality agreement. This company is also compliant with the EU/Swiss Privacy Shield, and the GDPR.
For any request for correction or deletion concerning your data, you can directly contact the ProRealCode team by email at privacy@prorealcode.com
If you would like to lodge a complaint regarding the use of your personal data, you can contact your data protection supervisory authority.
Get Assistance
Assistance Type
Your Need
Proposed Solutions
Do you like cookies? 🍪 We use cookies to ensure you get the best experience on our website.
(Learn more)