Search found 3 matches

Go to advanced search

by funasoft
Sat Dec 09, 2023 10:42 pm
Forum: Pine Script Q&A
Topic: Convert Pine script 2 to 5
Replies: 5
Views: 9676
 
Jump to post

Re: Convert Pine script 2 to 5

@jostar
i should be request.security(_ticker, tf, zigzag_1, lookahead = barmerge.lookahead_on)
by funasoft
Sat Dec 09, 2023 10:37 pm
Forum: Pine Script Q&A
Topic: Convert Pine script 2 to 5
Replies: 5
Views: 9676
 
Jump to post

Re: Convert Pine script 2 to 5

@jostar
I have the same problem.
It seem the time shift 1 hour later.
Maybe we have to adjust something in request.security(_ticker, tf, zigzag_1) ?
by funasoft
Sat Dec 09, 2023 9:46 pm
Forum: Pine Script Q&A
Topic: need to convert code from version 2 to version 5
Replies: 0
Views: 49417
 
Jump to post

need to convert code from version 2 to version 5

This is the code: zigzag() => _isUp = close >= open _isDown = close <= open _direction = _isUp[1] and _isDown ? -1 : _isDown[1] and _isUp ? 1 : nz(_direction[1]) _zigzag = _isUp[1] and _isDown and _direction[1] != -1 ? ta.highest(2) : _isDown[1] and _isUp and _direction[1] != 1 ? ta.lowest(2) : na I...

Go to advanced search