
    Q-j]	                     x    d dl mZ d dlmZmZmZ d dlmZmZm	Z	m
Z
mZmZ 	 	 	 ddedededed	ed
edededefdZy)    )Series)DictLikeIntIntFloat)	v_percentv_boolv_driftv_offsetv_pos_defaultv_seriesNcloselengthstrictasintpercentdriftoffsetkwargsreturnc                     t        |d      }t        | |      } | yt        |d      }t        |d      }t        |      rt	        |      nd}t        |      }t        |      }|rdd|z  z   | z  n| }|r| |j                  |      kD  }	t        d|dz         D ]1  }
|	| j                  |
|dz   z
        |j                  |
|z
        kD  z  }	3 |	j                  dd       |	j                  t              }	n|j                  |      dkD  }	|r|	j                  t              }	|dk7  r|	j                  |      }	d	|v r|	j                  |d	   d       |rd
d|z   nd}|rdnd d|rdnd }| d
| | |	_        d|	_        |	S )a  Increasing

    This indicator, by Kevin Johnson, attempts to identify increasing periods.

    Sources:
        * Kevin Johnson

    Parameters:
        close (Series): ```close``` Series
        length (int): The period. Default: ```1```
        strict (bool): Check if continuously increasing. Default: ```False```
        percent (float): Percent, i.e. ```5.0```. Default: ```None```
        asint (bool): Returns as ```Int```. Default: ```True```
        drift (int): Difference amount. Default: ```1```
        offset (int): Post shift. Default: ```0```

    Other Parameters:
        fillna (value): ```pd.DataFrame.fillna(value)```

    Returns:
        (Series): 1 column
       NFTg{Gz?   r   )inplacefillna_ SINCptrend)r   r   r   r   floatr	   r
   shiftranger   astypebooldiffintnamecategory)r   r   r   r   r   r   r   r   close_
increasingx_percent_propss                h/Users/jameslopez/projects/TradingBot25/.venv/lib/python3.12/site-packages/pandas_ta/trend/increasing.pyr+   r+      s   8 61%FUF#E}FE"F5$E )' 2eGnGENEfF .5a$. E)%FV\\%00
q&1*%A5;;qEAI7&,,q5y:QQRJ & 	!T*&&t,
[[(1,
&&s+
 {%%f-
 6&*D9 (/4'>"#BH2&c#b)ABF&(4JO!J    )NNNNNN)pandasr   pandas_ta._typingr   r   r   pandas_ta.utilsr   r   r	   r
   r   r   r%   r+    r0   r/   <module>r5      s     5 5  7;?CFFF/3FF!)F9<F F #+F 	Fr0   