Showing 122 of 840 total issues
Method sell
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sell(pair_name, units,
type = :market, options = {}, agent = nil) #:nodoc:
Method create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def self.create(name, type, created_at, memo = '', body = '')
Method initialize_price_and_time_from_tick
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
position, tick, pair_name, sell_or_buy, account_currency)
Method create_mode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_mode(target_pair, sell_or_buy,
trade_units, profit_pips, logger)
Method create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create(label, type = :line, aggregation_type = :first,
colors = [], axises = [])
Method retrieve_positions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def retrieve_positions(backtest_id = nil,
sort_order = { entered_at: :asc, id: :asc },
offset = 0, limit = 20, filter_conditions = {})
Method create_message
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_message(description, max_profit,
max_profit_time, current_profit, last_update_time)
Method calculate_ma_signals
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def calculate_ma_signals(signals, price, ma10, ma25, ma50)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(pair_name, internal_id,
sell_or_buy, type, last_modified) #:nodoc:
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(internal_id, units,
price, timestamp, profit_or_loss) #:nodoc:
Method start_backtest
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def start_backtest(agent_setting,
start_time = Time.new(2015, 12, 8, 0, 0, 0),
end_time = Time.new(2015, 12, 9, 0, 0, 0),
tick_interval_id = :fifteen_seconds,
pair_names = %i[USDJPY EURUSD])
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(agents, broker, graph_factory, time_source, logger)
Method buy
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def buy(pair_name, units,
type = :market, options = {}, agent = nil) #:nodoc:
Method create_order
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_order(pair_name, sell_or_buy, units, type, options)
Method create_splited_position
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_splited_position(position,
units, price, time, agent)
Method validate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def validate(pair_name, sell_or_buy, units, type, options)
Method order
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def order(pair_name, sell_or_buy, units, type = :market, options = {})
Method compose
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def compose(to, title, from = FROM, server_setting = nil, &block)
Method split_and_close
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def split_and_close(position, units,
price, time, agent = nil)
Method resolve_price
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def resolve_price(type, pair_name, sell_or_buy, options, tick)