How to create my own index

Discussion in 'Trading Software' started by cunparis, Aug 25, 2008.

  1. I think you're missing out by not looking harder at Amibroker - what you've described is approximately 4-5 lines of code in AB.

    For instance, here's the code to calculate 50 day lows on the SPX as an index:

    AboveAvg = Close > LLV(Close,50);
    Buy = 0;
    AddToComposite(AboveAvg, "~MyNew50DayLowsSPX", "C");
     
    #21     Sep 7, 2008
  2. Perhaps you are correct. Would you mind telling me how I could implement this "simple" system? It is very simple to do manually but to automate it, it seems to be quite complicated and require custom programming. Maybe Amibroker is better adapted for this?

    1. scan a watchlist for the x stocks that best fit a custom criteria
    2. figure out how much of each to buy based on standard position sizing rules
    3. figure out the stop loss to put
    4. place the order
    5. when a position is exited, go back to #1 keeping in mind a max of X positions can be open.

    It seems that most software is set up to run a scan on one instrument or watchlist and execute it. The problem appears to be the first step which is to have a max X positions and to rank the stocks in the watchlist so that the best ones are traded.

    If this is easily done with Amibroker I would like to re-install it and spend more time with it.

    Thanks for your help.
     
    #22     Sep 7, 2008
  3.  
    #23     Sep 7, 2008
  4. One more comment - you may want to look at Stockfetcher - nice and simple. The challenge is that you can't create custom indices as far as I know - might be possible....I'm new to it.
     
    #24     Sep 7, 2008
  5. Stockfetcher is one of the scans I use to create my watchlists. Unfortunately it's end of day only (entry & exit are open or close) and for the stoploss it's very limited. For example you can't set the stop loss to the 5 day low at the time of entry.

    In your Amibroker example, I do not see how you rank the stocks in the scan. Let's say for example you wanted the 5 lowest stoch values. Is it possible to rank them like that?

    Thanks a lot for taking the time to explain how it works with Amibroker. I don't doubt that it's a great program because the users are very enthusiastic about it. Seemingly more so than other programs. Like there is a real community behind it.
     
    #25     Sep 7, 2008
  6. When you're selecting from a large group, you have a feature called "Position Score" - you can rank based on any criteria.

    So, for instance, you could do:

    PositionScore = ROC(C,50);

    This would take the top five based on Rate of Change over a 50-day period.

    Or you could do:

    PositionScore = 100-RSI(15);

    or

    PositionScore = stochd(14,3,3);

    So take the positions with the lowest RSI score or highest StochD score.

    These are just simple examples - you can basically rank by any criteria.

    Happy to help you out - the AB community is fantastic - so I highly recommend it just for that reason.

    Let me know if you have any other questions/comments.

    I also use Tradersstudio as well - more complicated - I use AB for prototyping systems.
     
    #26     Sep 7, 2008
  7. MTRIG

    MTRIG

    You can do this in AMIBroker with no problem.

    There is a function called Add To Composite.

    www.AMIBroker.com
     
    #27     Jun 7, 2009
  8. @cunparis
    This thread started already in 8/2008 and there were some good recommendations.

    So I guess you brought up already the index and you are using it for a time.

    Would you like to share some of the experiences with it?
     
    #28     Jun 7, 2009
  9. I tested Neoticker and doing this was very easy but I couldn't get used to their user interface. I eventually settled on Ninjatrader & more recently Tradestation. I never did make my custom index in either of those. I started focusing on the indexes and commodities.

    Sorry I couldn't be of more help.
     
    #29     Jun 7, 2009
  10. Actually, this is not what you said at that time. You said:

    Unless you think we cannot click on page 1 of this thread.

    If you cannot pay a CAD488 for a piece of excellent software it's your problem but it isn't ethical to try to justify that by throwing mud on the product.

    Why don't you go ahead and list the complaints you found about Neoticker?

    You said you "find lots of people complaining". Go ahead and list those numerous complaints.
     
    #30     Jun 7, 2009