Create a simple buy & hold Python Algorithm

Cancellato Pubblicato 6 anni fa Pagato alla consegna
Cancellato Pagato alla consegna

I need an Algorithm created using Python that will place up to 15 stocks to buy and hold forever.

It will also need to rebalance the entire portfolio every year on the 2nd of January.

That is it!

here is an example of 15 tickers to use. AMZN AAPL MA DIS XOM HD IBM INTC MRK NKE TRV PG UTX UNH VZ

Should only take about 10 minutes to create.

Example of some code.

def initialize(context):

[url removed, login to view] = sid(24)

[url removed, login to view] = sid(8554)

def handle_data(context, data):

if data.can_trade([url removed, login to view]):

order_target_percent([url removed, login to view], 0.25)

if data.can_trade([url removed, login to view]):

order_target_percent([url removed, login to view], -0.25)

Programmazione C Programmazione C++ Machine Learning (ML) Python Architettura Software

Rif. progetto: #15853050

Info sul progetto

3 proposte Progetto a distanza Attivo 6 anni fa

3 freelance hanno fatto un'offerta media di $28 per questo lavoro

nverma22

I have depth understanding of all algorithms from linear, non linear, and tree based algorithms. I am ready to work with you in this project and ready to discuss more briefly. Relevant Skills and Experience I have dee Altro

$30 USD in 1 giorno
(2 valutazioni)
2.5
Suman3927

Customizable code Relevant Skills and Experience 3 years of trading experience Proposed Milestones $25 USD - All in time Additional Services Offered $5 USD - Any strategy with their result Robust testing of differe Altro

$25 USD in 1 giorno
(0 valutazioni)
0.0