Click here to Login





                                                   Managing buys/sells/holds

  0

0
Alpha Trader
2018-01-13 13:48:10


Hello -

I have a script where I rank symbols.

comborank = comp(ROCP(50),"rank");

test = Comp(ROCP(50),"count");
pos = iff(test >= 15,15,test);

SetSimPosSize(100/pos,_PercentOfEquity);
SetSimTiming(_Buy,_Close,0);
SetSimTiming(_Sell,_Close,0);

buy = (comborank <= POS) and (RebalIndexDate ==0);
sell = (RebalIndexDate ==0);


I would like the system to be 100 percent invested - no more - Also I would like it to hold positions which have buy signals.

When I use -

sell = (RebalIndexDate ==0) and (comborank > POS);//

The system doesn't hold 15 Positions......

Any Sugestions?



QuantShare
2018-01-15 04:51:32

  0

In your trading system, make sure the "Number of positions" is set to 15 or more depending on the number of max symbols you want to have.


Alpha Trader
2018-01-17 16:08:52

  0

Yeah, I did that - Wasn't the issue. though. When use Sell = 1; it gets the job done, but it doesn't allow me to calculate turnover.

Thanks-



QuantShare
2018-01-18 08:52:51

  0

Try with
sell = comborank > POS;



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
iShares Exchange-Traded Funds - ETF Fees and Expenses
Large price and volume gain after consolidation
Index Investment Data for U.S. Futures Markets
Coefficient of Determination - R Squared - Time-Series Prediction
Industry Measure: Ratio of Bullish to Bearish All-Star Traders Pi...

How-to Lessons
How to automatically arrange charts?
How to calculate the average of a time series using the money man...
How to create a moving average of an indicator
How to plot the relative performance of several stocks/indices
How to import trades into a portfolio

Related Forum Threads
Quotes Database Management
Folders
Advanced Money Management
how can I get MCX commodity charts ?
Fundamental Data For NSE Stocks

Blog Posts
Creating and managing notes for your stocks
Backtesting Your Trading Systems: Symbol Segmentation
Download historical EOD data for the stock, futures, ETF and Fore...
Trading System: Buy stocks with the highest Sharpe ratio
Automatically create historical quotes charts









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.