Polynomial Regression Channel (PRC) free
Description
The PRC indicator applies a polynomial function to the linear regression function to adapt itself to the flow of market prices. Since they are regression bands that self adjust for volatility.
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
u s i n g S y s t e m ; u s i n g c A l g o . A P I ; u s i n g c A l g o . A P I . I n d i c a t o r s ; n a m e s p a c e c A l g o . I n d i c a t o r s { [ I n d i c a t o r ( I s O v e r l a y = t r u e , A c c e s s R i g h t s = A c c e s s R i g h t s . N o n e ) ] p u b l i c c l a s s P R C : I n d i c a t o r { [ P a r a m e t e r ( D e f a u l t V a l u e = 3 . 0 , M i n V a l u e = 1 , M a x V a l u e = 4 ) ] p u b l i c i n t d e g r e e { g e t ; s e t ; } [ P a r a m e t e r ( D e f a u l t V a l u e = 1 2 0 ) ] p u b l i c i n t p e r i o d { g e t ; s e t ; } [ P a r a m e t e r ( D e f a u l t V a l u e = 1 . 6 2 ) ] p u b l i c d o u b l e s t r d D e v { g e t ; s e t ; } [ P a r a m e t e r ( D e f a u l t V a l u e = 2 ) ] p u b l i c d o u b l e s t r d D e v 2 { g e t ; s e t ; } [ O u t p u t ( "