Hello.
I am new and learning. Just completed the trading with IBridgePy. I have set up IB account and IBridge. Am trying to run the file "example_moving_average_cross.py" file on spyder and am not getting any results except lots of code in red. See below.
Here what getting: runfile('C:/Users/User/Documents/Finance - Research/Quantra -Python/iBridgePy/SMA_Crossover_Strategy/example_moving_average_cross.py', wdir='C:/Users/User/Documents/Finance - Research/Quantra -Python/iBridgePy/SMA_Crossover_Strategy')
Reloaded modules: BasicPyLib, BasicPyLib.BasicTools, Config, Config.config_defs, BasicPyLib.simpleLogger, Config.base_settings, IBridgePy, IBridgePy.constants, BasicPyLib.Printable, Config.configTools, IBridgePy.MarketManagerBase, broker_client_factory, broker_client_factory.broker_client_utils, broker_service_factory, broker_service_factory.BrokerService, IBridgePy.IbridgepyTools, IBridgePy.IBCpp, IBridgePy.quantopian, models, models.Order, models.utils, broker_client_factory.BrokerClientDefs, broker_service_factory.BrokerService_utils, data_provider_factory, data_provider_factory.data_provider, data_provider_factory.data_provider_utils, market_calendar_factory, market_calendar_factory.MarketCalendar, market_calendar_factory.market_calendar_lib, market_calendar_factory.market_calendar_lib.market_calendar, market_calendar_factory.market_calendar_lib.calendar_utils, market_calendar_factory.market_calendar_lib.exchange_calendar_cfe, market_calendar_factory.market_calendar_lib.us_holidays, market_calendar_factory.market_calendar_lib.exchange_calendar_ice, market_calendar_factory.market_calendar_lib.exchange_calendar_nyse, market_calendar_factory.market_calendar_lib.exchange_calendar_cme, market_calendar_factory.market_calendar_lib.exchange_calendar_bmf, market_calendar_factory.market_calendar_lib.exchange_calendar_lse, market_calendar_factory.market_calendar_lib.exchange_calendar_tsx, market_calendar_factory.market_calendar_lib.exchange_calendar_eurex, market_calendar_factory.MarketCalendar_utils, market_calendar_factory.FakeMarketCalendar, BasicPyLib.repeater, IBridgePy.TimeGenerator, models.Data, models.SingleTrader, models.AccountInfo, models.Position, settings, Config.backtest_settings, Config.hft_settings, Config.robinhood_settings, Config.td_settings, IBridgePy.Trader, IBridgePy.trader_defs
No other results. Please advise?
Hello Petra,
This doesn't seem the complete error message. Can you send the complete error message? Will be able to identify the problem better. Off the shelf, another thing you can do is in the "run_me.py" file set the file you wish to call.
Hello Akshay,
I have set the correct file to call on the "run_me.py" file.
Still not sure why am having incomplete error message or why any of the python scripts from the automated trading course is not running on spyder (with IBridgePy and IB correctly installed.).
Otherwise applications do seem to be working.
Best regards,
Hello Petra,
Are you able to run other files such as show_real_price etc?
If so, then the issue lies with the current file that is "example_moving_average_cross.py" else there might be an issue with the installation.