Hi @aki_brainzz,
Just like the previous error where I was trying to upload RegularEMAStrategy, now I was trying to upload RegularSMAStrategy into my account but I received the following error this time -
Here is the entire code for it -
import inspect
from pyalgotrading.algobulls import AlgoBullsConnection
from pyalgostrategypool.strategy_sma_regular_order import StrategySMARegularOrder
algobulls_connection = AlgoBullsConnection()
algobulls_connection.get_authorization_url()
The output of the above step is:
Please login to this URL with your AlgoBulls credentials and get your developer access token: https://app.algobulls.com/user/login
Set the access token in the next line of code as shown here:
algobulls_connection.set_access_token(‘xxxxxxxxxalgobullsconnectiontokenxxxxxxxxxx’)
print(inspect.getsource(StrategySMARegularOrder))
algobulls_connection.create_strategy(StrategySMARegularOrder)
If you are re-uploading your strategy after some changes, then use the overwrite switch as shown here:
algobulls_connection.create_strategy(StrategySMARegularOrder, overwrite=True)
Kindly help me resolve this issue so that I can upload this strategy into my account