Sha256: 14a8acbbcdda5328d38815a1eb41b1ee6fe0cd7fd34cdd0c077ff410f82ae733
Contents?: true
Size: 266 Bytes
Versions: 19
Compression:
Stored size: 266 Bytes
Contents
# lib/sqa/strategry/sma.rb require_relative 'common' class SQA::Strategy::SMA extend SQA::Strategy::Common def self.trade(vector) sma_trend = vector.rsi[:trend] if :up == sma_trend :buy elsif :down == sma_trend :sell else :hold end end end
Version data entries
19 entries across 19 versions & 1 rubygems