Click here to Login





                                                   Incorrect stoploss code?

  0

0
Dennis Schutten
2016-03-02 07:49:32


Hi,

Why does the code below not work? While backtesting no trade is exited....

Setsimstop(_Stoploss,_Point,1,0);

buy=close>0;
Sell=0;


Regards,
Dennis



QuantShare
2016-03-02 09:03:59

  0

Dennis,

This means that no stock has decreased below the (entry price - 1$).
Check the symbols you have included in the simulation and start/end dates.



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
Anchored Indicator
Ignore Orders for Recently Purshased Securities based on Return
Disable or Enable your Stop Rules
Standard Deviation of Monthly/Yearly Returns
Nigerian Stock Exchange - Historical Data

How-to Lessons
How to create a correlation matrix of several securities
How to add a trading indicator to a chart
How to import trading data from CSV files
How to use a custom drawing tool
How to add a metric in the trading system simulation report

Related Forum Threads
Customize Trailing StopLoss & Volume Summation
Stoploss with end of day system
Incorrect position metrics using MMExitPosition within MM script
Slippage and Same-day StopLoss activation
Heiken ashi and Renk chart types in stratregy code?

Blog Posts
How to filter quotes data from high and low price spikes
Optimization in the statistical data analysis tool
How to Detect Potential Issues/Errors in Your Historical Data?
Real Time Alerts: Support and Resistance Lines Breakout
4 Market Composite Indicators Based on Industry Data









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.