Library "TradingWolfLibary"
getMA(int, string)
Gets a Moving Average based on type
Parameters:
int: length The MA period
string: maType The type of MA
Returns: A moving average with the given parameters
minStop(float, simple, float, string)
Calculates and returns Minimum stop loss
Parameters:
float: entry price (Close if calculating on the entry candle)
simple: int Calculate how many bars back to look at swings
float: Minimum Stop Loss allowed (Should be x 0.01) if input
string: Direciton of trade either "Long" or "Short"
Returns: Stop Loss Value