Skip to content

Commit 409fe6b

Browse files
committed
remove 'type' param from renko_params
1 parent de07cd0 commit 409fe6b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/mplfinance/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ def _construct_renko_collections(dates, highs, lows, renko_params, closes, marke
307307
marketcolors = _get_mpfstyle('classic')['marketcolors']
308308
print('default market colors:',marketcolors)
309309

310-
renko_type = renko_params['type']
311310
brick_size = renko_params['brick_size']
312311
atr_length = renko_params['atr_length']
313312

@@ -316,6 +315,7 @@ def _construct_renko_collections(dates, highs, lows, renko_params, closes, marke
316315

317316
if brick_size == 'atr':
318317
brick_size = calculate_atr(atr_length, highs, lows, closes)
318+
print(brick_size)
319319

320320
alpha = marketcolors['alpha']
321321

src/mplfinance/plotting.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ def _valid_renko_kwargs():
144144
kwarg value is one of the allowed values.
145145
'''
146146
vkwargs = {
147-
'type' : { 'Default' : 'pmove',
148-
'Validator' : lambda value: value in ['pmove','pclose'] },
149147
'brick_size' : { 'Default' : 2.0,
150148
'Validator' : lambda value: isinstance(value,float) or isinstance(value,int) or value == 'atr' },
151149
'atr_length' : { 'Default' : 14,

0 commit comments

Comments
 (0)