In line 2 how can you be sure the prior LOW is lower than current CLOSE and that 30 is greater than that difference? I suggest that you use:
1
TL=abs(30-abs(close[0]-lowest[1]))
Furthermore, what is 30? Is it a price difference or pips (in some cases it can be the same, but it’s better to code it correctly).
If it’s pips then use:
1
TL=abs(30*PipSize-abs(close[0]-lowest[1]))
it will make no difference if used with DOW, DAX, etc…, but will make a huge one with most currency pairs.
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.