Register Login
Forums    February 9, 2012
TradersStudio Forums
Compare stocks
Last Post 08-28-2006 04:14 PM by mur ang. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Konstantin Stroj
New Member
New Member
Posts:17

--
08-28-2006 02:21 PM
    I can´t figure out how to compare stocks in a session.
    e.g. I don´t want to buy stocks where ADX is above 25, but buy the 10 stocks with highest ADX readings among a 500 stock portfolio.

    Is this possible?

    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    08-28-2006 03:26 PM

    Yes it is possible. You need to use the

    Market Valuable from the system

     MarketVar("ADXval") = ADX(10, 0)

    and then access them from the tradeplan.

    ADXval =TradePlan.Session(0).Market(M) .MarketVar("ADXval")

    You can then call the CustomRanking functions from the tradeplan.

    Look at the StockCustomPerformPlan for ideas of the code.

     

     

     

    Konstantin Stroj
    New Member
    New Member
    Posts:17

    --
    08-28-2006 04:08 PM
    Where can I find the StockCustomPerformPlan?
    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    08-28-2006 04:14 PM
    In the editor select TradePlans and look on the list for it. It is one of the free scripts that ship with the product.
    You are not authorized to post a reply.


     TradersStudio, Inc. ® Copyright 2004-2012 All Rights Reserved   Terms Of Use  Privacy Statement