Click here to Login





                                                   Different Stops for Long/Short Positions

  0

0
Dave W.
2013-08-09 18:36:37


Is it possible to set different parameters for nBar and stop_loss stops for long and short positions in a single trading system?

For example, for long signals, I want the nBar stop to be 15. For Short signals, I want the nBar stop to be 7.




QuantShare
2013-08-10 12:50:32

  1

Best Answer
Here is an example on how to do that:

buy = rsi(14) > 80;
short = rsi(14) < 20;

SetSimStop(_StopNBar, _Point, iff(buy, 15, 7), 0);




Dave W.
2013-08-10 18:02:04

  0

Excellent. Thanks.


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
Long/Short Term Moving Average Indicator
Money management to Reject Trading Positions Based on their Past ...
Commitments of Traders Report for Financial Futures
Stop Loss for the N-first Trading Bars only
Number of Listed Companies for several Stock Exchanges

How-to Lessons
How to display the number of stocks per day for different RSI gro...
How to optimize the number of positions in a trading system
How to plot two different time frames in the same chart
How to quickly add several positions to your portfolio
How to get fundamental data for U.S. Stocks

Related Forum Threads
Different symbol list for Long/Short / custom portfolio categorie...
Simulator: Different exit orders for different rules, partial exi...
different weights for different asset class
In-Sample and Out-Of-Sample Dates for Optimization
add short cut for layouts

Blog Posts
Rules performance for different volatility regimes
How to Create Custom Metrics for Your Trading Positions
Different Ticker Symbols for Each Data Source
How to get buy and sell orders for a portfolio based on a trading...
How to Select the Best Market Indicator for your Trading System









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.