Click here to Login





                                                   Is Quantshare Ranking Reversed, or did I make a mistake?

  0

0
swalk10
2014-09-24 16:28:23


I am doing a simple ranking process, for example buying the stock with the highest price.
So, X = close.

Then, given a basket of 50 tickers . . .

Rank1 = comp(x, "rank");

I note that rank #1 is set to the highest close price, rank #2 is next, etc., so far so good.

I then tell the system I want to use Rank1 as my criteria, hence

SetSimLongRank(rank1 );

However, the system then buys the lowest rank #50, next buys #49, etc.
Which has reversed the logic of how "comp" does the ranking.

Seems illogical, or did I make an error? How to I do SetSimLongRank to buy rank #1?

Thanks!



clonex
2014-09-25 01:49:59

  0

SetSimLongRank(close );


QuantShare
2014-09-25 04:27:50

  0

"comp" and "SetSimLongRank" are different functions.

The first one when combined with "rank" parameter returns #1 for the highest value while "SetSimLongRank" is used only to rank securities in a trading system and it gives priority to the symbol that have the highest value.

So instead of applying ranking twice, just use as Clonex suggested:

SetSimLongRank(close);



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Intraday Trading System with Daily Ranking
Super Stock Screener Ranking System
Sharpe Ratio Ranking System to Lower Trading Strategies Volatilit...
Trading System with Sharpe-Based Ranking
RSI(3) Ranking System

How-to Lessons
How to improve the performance of QuantShare databases?
How to run QuantShare offline
How to use QuantShare with Metastock data
How to install the previous version of QuantShare
How to import trades into a portfolio

Related Forum Threads
Does Quantshare make any "assumptions" when backtesting tick data...
Ranking System Help
QuantShare Trading Software: New Version 2.9.2
Enable Quantshare to use Multicore-Processors for quicker backtes...
Quantshare crash during optimization backtest

Blog Posts
How to use QuantShare screener to trade penny stocks
The Ultimate Guide to Create Trading Systems in QuantShare
Speed Up Optimizations by Saving Ranking Data into a Custom Datab...
How to Backtest an Intraday Stock Trading System with EOD Ranking
How to Run QuantShare without UAC Prompts?









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.