Simulator API

class frxpy.simulator.simple_simulator.Simulator(total_money=None, predictor=None)[source]

This class simulates forex trading with provied data. You can set directly sell-positions and buy-positions and then you get results of simulation after Simulator running. Or, you can set crteria or smoething to set buy or sell postions. Simulator can show 1-step results or some provided steps.

Parameters:
  • filename (str) – here
  • total_money (float) – here

Usage:

>>> import Simulator
>>> s = Simulator()
>>> s.setup()
>>> s.run()
>>> s.onestep()
>>> s.reload()
set_buy_positions(position=[], buy_type='')[source]
Params list position:
 set

:returns :

set_initial(init_money)[source]
steps(nstep=1)[source]