indicator on chart – how to only display …
Forums › ProRealTime English forum › ProRealTime platform support › indicator on chart – how to only display …
- This topic has 9 replies, 5 voices, and was last updated 1 year ago by GraHal.
-
-
02/11/2023 at 5:35 PM #209544
Hi again,
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 thensignal = low
else
signal = 0
endif
endif
return signal02/11/2023 at 6:07 PM #209546Try this one (not tested):
123456789101112smaShort = average [short]smaLong = average [long] sto = Stochastic[14,3](close)signal = lowOnce t = 0if smaShort > smaLong thenif sto crosses over 20 thent = 255elset = 1endifendifreturn signal coloured(“Green”,t)02/11/2023 at 7:22 PM #209547thank you for the speedy answer.
so i dont understand how it worked for the person that did the tutrial : ‘Example program 2 – Trading system with target and stop’
https://www.youtube.com/watch?v=NL8GJoYVT00
02/12/2023 at 6:38 PM #20955702/12/2023 at 10:32 PM #209560It’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.
02/13/2023 at 11:24 AM #20958702/16/2023 at 1:29 AM #209791This 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.02/16/2023 at 9:20 AM #209798can’t “switch off” an indicator is highly annoying.
If on Prie Chart then you can ‘hide’ an Indicator by right click > hide.
02/16/2023 at 9:24 AM #209802we 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.
Have you Suggested it to PRT direct using the form on the link below?
https://www.prorealtime.com/en/contactClick on Suggestion Box on the left under the photo (I know you know Peter, but others may not).
02/16/2023 at 10:21 AM #209809If on Prie Chart then you can ‘hide’ an Indicator by right click > hide.
Above should correctly have read … left click > hide (after pointing at the Indicator) … see attached at red arrowhead.
-
AuthorPosts
Find exclusive trading pro-tools on