Click here to Login





                                                   Exit function in Strategies

  0

0
Leif Axelson
2017-01-03 12:43:32


Hi!

I would like an exit function that exits a trade the first day with profit, or after 5 days.

Is this possible in Quantshare?

/Leif Axelsson
Sweden



QuantShare
2017-01-04 03:17:18

  0

Hi,

Specify an N-Bar stop with 5 as number of bars to exit after 5 days.

To exit a trade the first day with profit you will need a money management script. Track positions return in the OnEndPeriod event and exit a position if that return is positive and if this is the first trading bar.



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
News parser function
Staggered Entry and Exit Strategy
Swing Point Function (SP)
NORMDIST - Normal Probability Density Function
Sharpe Ratio Ranking System to Lower Trading Strategies Volatilit...

How-to Lessons
How to create a trading system
How to dynamically change the number of positions in a portfolio?
How to import trading items from other accounts
How to plot two different time frames in the same chart
How to set order type of a trading system programmatically

Related Forum Threads
MMScript - Exit at the close of a bar
Trend Regime as a function
newbie looking for function help
Optimizable Fibonacci function
Question on Swing Point function sp()

Blog Posts
Create Your Own Tactical Asset Allocation Strategies
Create Profitable Trading Strategies with Exchange Traded Funds (...
Backtesting trading strategies using intraday data
Advanced Tactical Asset Allocation Strategies
How to combine long, short and custom portfolio strategies within...









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.