57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'bin/finexclub_updater', line 57
def generate(options = {})
symbol = options[:symbol] || raise("--symbol option is missing")
timeframe = options[:timeframe] || raise("--tf option is missing")
data = []
data << ["zeta[][symbol]", symbol.upcase]
data << ["zeta[][timeframe]", timeframe]
data << ["zeta[][up_support]", Generator.rand_price]
data << ["zeta[][up_resist]", Generator.rand_price]
data << ["zeta[][down_support]", Generator.rand_price]
data << ["zeta[][down_resist]", Generator.rand_price]
data << ["zeta[][screenshot_filename]", "#{symbol.upcase}_ZETA.gif"]
end
|