Description Usage Arguments Details
Get strategy SMA
1 | get_strategy_sma(data, eps_buy = 1, eps_sell = 1)
|
data |
stock data |
eps_buy |
numeric value specifying how much larger SMA should be than close stock price before event is triggered. 'eps' = 1 corresponds to buy condition of SMA > Close |
eps_sell |
numeric valuing specifying when to sell in percentage deviation |
'eps' = 1.02 means SMA should be 2 the strategy indicates a buy. Similarly 'eps' = 1.02 means SMA should be 2 than the closing price before selling. Larger values of 'eps' leads to fewer buy/sell signals. If inputs are selected such that no buy signals is obtained, an error meesage is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.