LibAndy
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © andym1125

//@version=5

// @description TODO: add library description here
library("LibAndy")

// @function TODO: add function description here
// @param x TODO: add parameter x description here
// @returns TODO: add what function returns
export greencandlme(float x) =>
	//TODO : add function body and return value here
	x

// @function Whether this candle is green or not
// @returns Whether this candle is green or not
export greencandle() =>
	open < close

// @function Whether this candle is red or not
// @returns Whether this candle is red or not
export redcandle() =>
	open > close


export boostrapSeries(float bsSeries) =>
	ret = 0.
	if bar_index > 0
		ret := bsSeries
	ret
