Search found 1 match

Go to advanced search

by funkyjive
Tue Jan 04, 2022 11:36 pm
Forum: Pine Script Q&A
Topic: Understanding a piece of code
Replies: 1
Views: 546
 
Jump to post

Re: Understanding a piece of code

The only difference between the purple line and the red line is that IF the value of src-(Multiplier*atr) for the period before (i.e. the day before the current candle if the chart was daily) -- if that value is NaN (not a number -- usually means division by zero occurred) -- then it will switch out...

Go to advanced search