bars: Bars - Functions related to all the bars/candles

Description Usage Arguments Details Value Author(s)

Description

Functions related to all the bars/candles

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
bar(b)

is.bar(b)

isgreen.bar(b, pct = 0)

isred.bar(b, pct = 0)

isdoji.bar(b, pct = 0)

is.pricehit.bar(b, price)

is.pricexed.bar(b, price, dir = 1)

Arguments

b

- bar/OHLC,

pct

- percentage of points considered in calculation

price

- price

dir

- direction (GREEN/LONG stands for 1, SHORT/RED stands for -1)

Details

bar - converts OHLC object into bar class. Both are aliases infact

is.bar - checks if given object is a bar

isgreen.bar - evaluates if close of a bar is atleast percent greater than open

isred.bar - evaluates if close of a bar is atleast percent lessr than open

isdoji.bar - evaluates if close and open are near to each other by pct

is.pricehit.bar - evaluates if the price 'p' is hit by bar 'b'

is.pricexed.bar - evaluates if the bar 'b' closed on price 'p' in given direction 'dir'. if direction is - LONG/GREEN(1) - b closes > p , returns TRUE

Value

TRUE/FALSE

isgreen.bar - returns TRUE/FALSE

isred.bar - returns TRUE/FALSE

isdoji.bar - returns TRUE/FALSE

is.pricehit.bar - returns TRUE/FALSE

is.pricexed.bar - returns TRUE/FALSE

Author(s)

Siva Sunku


sivasunku/evalStrats documentation built on May 29, 2019, 11 p.m.