Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to get Paper Trading to work?

Greetings Quantopians!

I have an algorithm that I would like to Paper Trade with. I receive no errors when I use it to backtest, but for some reason, my algorithm isn't doing anything when I start to Paper Trade.

Do I need to connect or build something in my model to set up Paper Trading?

Thank you in advance.

3 responses

Is your algorithm set up to execute trades every single day? (If it only executes trades once a month, then you'll have to wait until that day before it will do anything. Or, if it's set to execute trades at at a certain time of day and you start the paper trade some time after that time, you'll have to wait until the next day before you see any trades get executed.)

Hi, thank you for the feedback! Looking at my algo, I think it trades per month? I'm not too sure now because I assumed it was trading on a daily basis due to backtesting.

I have attached my code and would greatly appreciate if you could help me out on what I'm missing?

Thank you so much Viridian Hawk

# Schedule a function, 'do_portfolio_construction', to run once a week  
    # ten minutes after market open.  
    algo.schedule_function(  
        do_portfolio_construction,  
        date_rule=algo.date_rules.week_start(),  
        time_rule=algo.time_rules.market_open(minutes=MINUTES_AFTER_OPEN_TO_TRADE),  
        half_days=False,  
    )  

It runs in weekly basis, after 10 minutes of week start. You should read it before doing anything.