Giter VIP home page Giter VIP logo

Comments (7)

scorpio155 avatar scorpio155 commented on August 29, 2024

I was reading another code and Saw follow-trend (multiple securities) Sorry for creating the issue. Let me read up more and test to understand how it works.

from pinkfish.

fja05680 avatar fja05680 commented on August 29, 2024

from pinkfish.

fja05680 avatar fja05680 commented on August 29, 2024

from pinkfish.

scorpio155 avatar scorpio155 commented on August 29, 2024

Thanks a lot Farrell. The framework is really good, appreciate it that you coded it. I am learning python and trying to understand the way you have used oops concept and also made is simple to debug if compared to backtrader.

I do follow momentum investing and am interested in testing more, so was looking for frameworks to try it out. Its been a month to learn and test :)

I used backtrader as well. The site link I provided is not mine, I found it and was testing using backtrader. I will surely reach out and will be testing a portfolio with pinkfish. For now no recommendations.

Andreas books have been great and he has shared the full code for retail investors to learn as well. Along with your code, its simple to test a few strategies on the index. Example - I tested the golden cross on a India index NSE500 and it under performed the buy and hold :)

-Ashish

from pinkfish.

fja05680 avatar fja05680 commented on August 29, 2024

from pinkfish.

scorpio155 avatar scorpio155 commented on August 29, 2024

Hi Farrell,

Yes reducing the drawdown and time in drawdown will make the strategy much useful. Thanks again for the pointers and I did try out the SMA bands and it surely is much better than the Golden Cross. I am also working with the India top 500 market cap index and I used the below strategy on Nifty500

 Buy "CLOSE above EMA 5, RSI > 65, ADX > 25", Sell "Close below EMA 5

This resulted in a better profit than buy and hold for Nifty500, the returns were really poor on the SPY :)

I did look at the calendar and portfolio examples, trying to see how I can combine the tools here for multiple stocks. Example the trend following example does use multiple stocks, but was not able to see how I can add the buy and sell using that.

Example fixed portfolio of 10 stocks, we will need a ranking system to limit stocks, so we always have atleast 10 stocks. If you do get a chance and could put such an example will be helpful.

I will also work to understand the code better and see if I am able to do the same and share the example :)

Once again, thanks for sharing pinkfish.

Attached is the Nifty500 index data.
NIFTY500.zip

from pinkfish.

fja05680 avatar fja05680 commented on August 29, 2024

from pinkfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.