def get_simulation(write_spans = True):
    """
    Make trading competition-like input and output data from the cosine function
    """
    from signals import find_all_signals, make_spans, set_positions, pnl
    from datetime import date