@@ -387,11 +387,12 @@ def _valid_renko_kwargs():
387
387
'''
388
388
vkwargs = {
389
389
'brick_size' : { 'Default' : 'atr' ,
390
- 'Description' : '' ,
390
+ 'Description' : 'size of each brick on y-axis (typically price).' +
391
+ ' specify a number, or specify "atr" for average true range.' ,
391
392
'Validator' : lambda value : isinstance (value ,(float ,int ))
392
393
or value == 'atr' },
393
394
'atr_length' : { 'Default' : 14 ,
394
- 'Description' : '' ,
395
+ 'Description' : 'number of periods for atr calculation (if brick size is "atr") ' ,
395
396
'Validator' : lambda value : isinstance (value ,int )
396
397
or value == 'total' },
397
398
}
@@ -416,16 +417,18 @@ def _valid_pnf_kwargs():
416
417
'''
417
418
vkwargs = {
418
419
'box_size' : { 'Default' : 'atr' ,
419
- 'Description' : '' ,
420
+ 'Description' : 'size of each box on y-axis (typically price).' +
421
+ ' specify a number, or specify "atr" for average true range.' ,
420
422
'Validator' : lambda value : isinstance (value ,(float ,int ))
421
423
or value == 'atr' },
422
424
'atr_length' : { 'Default' : 14 ,
423
- 'Description' : '' ,
425
+ 'Description' : 'number of periods for atr calculation (if box size is "atr") ' ,
424
426
'Validator' : lambda value : isinstance (value ,int )
425
427
or value == 'total' },
426
428
427
429
'reversal' : { 'Default' : 1 ,
428
- 'Description' : '' ,
430
+ 'Description' : 'number of boxes, in opposite direction, needed to reverse' +
431
+ ' a trend (i.e. to start a new column).' ,
429
432
'Validator' : lambda value : isinstance (value ,int ) },
430
433
}
431
434
@@ -451,52 +454,71 @@ def _valid_lines_kwargs():
451
454
valid_linestyles = ['-' ,'solid' ,'--' ,'dashed' ,'-.' ,'dashdot' ,':' ,'dotted' ,None ,' ' ,'' ]
452
455
vkwargs = {
453
456
'hlines' : { 'Default' : None ,
454
- 'Description' : '' ,
457
+ 'Description' : 'Draw one or more HORIZONTAL LINES across entire plot, by' +
458
+ ' specifying a price, or sequence of prices. May also be a dict' +
459
+ ' with key `hlines` specifying a price or sequence of prices, plus' +
460
+ ' one or more of the following keys: `colors`, `linestyle`,' +
461
+ ' `linewidths`, `alpha`.' ,
455
462
'Validator' : _bypass_kwarg_validation },
456
463
457
464
'vlines' : { 'Default' : None ,
458
- 'Description' : '' ,
465
+ 'Description' : 'Draw one or more VERTICAL LINES across entire plot, by' +
466
+ ' specifying a date[time], or sequence of date[time]. May also' +
467
+ ' be a dict with key `vlines` specifying a date[time] or sequence' +
468
+ ' of date[time], plus one or more of the following keys:' +
469
+ ' `colors`, `linestyle`, `linewidths`, `alpha`.' ,
459
470
'Validator' : _bypass_kwarg_validation },
460
471
461
472
'alines' : { 'Default' : None ,
462
- 'Description' : '' ,
473
+ 'Description' : 'Draw one or more ARBITRARY LINES anywhere on the plot, by' +
474
+ ' specifying a sequence of two or more date/price pairs, or by' +
475
+ ' specifying a sequence of sequences of two or more date/price pairs.' +
476
+ ' May also be a dict with key `alines` (as date/price pairs described above),' +
477
+ ' plus one or more of the following keys:' +
478
+ ' `colors`, `linestyle`, `linewidths`, `alpha`.' ,
463
479
'Validator' : _bypass_kwarg_validation },
464
480
465
481
'tlines' : { 'Default' : None ,
466
- 'Description' : '' ,
482
+ 'Description' : 'Draw one or more TREND LINES by specifying one or more pairs of date[times]' +
483
+ ' between which each trend line should be drawn. May also be a dict with key' +
484
+ ' `tlines` as just described, plus one or more of the following keys:' +
485
+ ' `colors`, `linestyle`, `linewidths`, `alpha`, `tline_use`,`tline_method`.' ,
467
486
'Validator' : _bypass_kwarg_validation },
468
487
469
488
'colors' : { 'Default' : None ,
470
- 'Description' : '' ,
489
+ 'Description' : 'Color of [hvat]lines (or sequence of colors, if each line to be a different color) ' ,
471
490
'Validator' : lambda value : value is None
472
491
or mcolors .is_color_like (value )
473
492
or (isinstance (value ,(list ,tuple ))
474
493
and all ([mcolors .is_color_like (v ) for v in value ]) ) },
475
494
476
495
'linestyle' : { 'Default' : '-' ,
477
- 'Description' : '' ,
496
+ 'Description' : 'line style of [hvat]lines (or sequence of line styles, if each line to have a different linestyle) ' ,
478
497
'Validator' : lambda value : value is None or value in valid_linestyles or
479
498
all ([v in valid_linestyles for v in value ]) },
480
499
481
500
'linewidths' : { 'Default' : None ,
482
- 'Description' : '' ,
501
+ 'Description' : 'line width of [hvat]lines (or sequence of line widths, if each line to have a different width) ' ,
483
502
'Validator' : lambda value : value is None
484
503
or isinstance (value ,(float ,int ))
485
504
or all ([isinstance (v ,(float ,int )) for v in value ]) },
486
505
487
506
'alpha' : { 'Default' : 1.0 ,
488
- 'Description' : '' ,
507
+ 'Description' : 'Opacity of [hvat]lines. float from 0.0 to 1.0 ' +
508
+ ' (1.0 means fully opaque; 0.0 means transparent.' ,
489
509
'Validator' : lambda value : isinstance (value ,(float ,int )) },
490
510
491
511
492
512
'tline_use' : { 'Default' : 'close' ,
493
- 'Description' : '' ,
513
+ 'Description' : 'value to use for TREND LINE ("open","high","low","close") or sequence of' +
514
+ ' any combination of "open", "high", "low", "close" to use a average of the' +
515
+ ' specified values to determine the trend line.' ,
494
516
'Validator' : lambda value : isinstance (value ,str )
495
517
or (isinstance (value ,(list ,tuple ))
496
518
and all ([isinstance (v ,str ) for v in value ]) ) },
497
519
498
520
'tline_method' : { 'Default' : 'point-to-point' ,
499
- 'Description' : '' ,
521
+ 'Description' : 'method for TREND LINE determination: "point-to-point" or "least-squares" ' ,
500
522
'Validator' : lambda value : value in ['point-to-point' ,'least-squares' ] }
501
523
}
502
524
0 commit comments