i have a own indicator. Its based on the Donchian Channel.
In programming a own indicator i cant choose the Donchian Channel indicator. Therefore i create my own DC indicator:
1
2
3
4
PointHigh=HIGHEST[n](HIGH)
PointLow=LOWEST[n](LOW)
ReturnPointHighAS"HIGH",PointLowAS"LOW"
Here is my own indicator, but the calculating time is very bad…i wrote a java program to calculate my indicator its much more faster. Therefore i think i make a mistake in prorealtime?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
myHIGH,myLOW=CALL"DC Own"[perioden]
result=0
resultIndikator=0
FORi=0TOperiodenDO
IFmyHigh[i]>myHigh[i+1]THEN
result=result+1
ENDIF
IFmyLow[i]<myLow[i+1]THEN
result=result+1
ENDIF
NEXT
IFresult>mindestWertTHEN
resultIndikator=1
ELSE
resultIndikator=-1
ENDIF
returnresultIndikator
Has anyone a idea to improve the calculating time?
We are all expecting fairly soon a new engine allowing “call” to be much faster than its current snail pace. In the meantime whenever possible avoiding “call”, by copying and pasting the called code in the calling code, will go a long way to improve speed (worth having a look at pages 23-24-25, especially p25, of following manual with some examples) https://www.prorealtime.com/en/pdf/probacktest_c1491462069c.pdf
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok