Monday, January 05, 2009     | Register
TradersStudio Forums
Subject: Compare stocks

You are not authorized to post a reply.   
Author Messages
stroj
Posts:17

08-28-2006 2:21 PM Alert 
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?

murray
Posts:435

08-28-2006 3:26 PM Alert 

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.

 

 

 

stroj
Posts:17

08-28-2006 4:08 PM Alert 
Where can I find the StockCustomPerformPlan?
murray
Posts:435

08-28-2006 4:14 PM Alert 
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.



ActiveForums 3.6
TradersStudio® Copyright 2004-2009 All Rights Reserved   |  Privacy Statement  |  Terms Of Use