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
Average Correlation Index - S&P 500
Consecutive Up and Down Bars - Works With Any Trading Indicator
Record High Percent - 10-day Simple Moving Average of the High-Lo...
Research and Development Percentage - US Stocks
U.S. Weekly Leading Index - Economic Indicator

How-to Lessons
How to create a correlation matrix of several securities
How to drag & drop indicators in charts
How to create a moving average of an indicator
How to use a custom drawing tool
How to create a strategy-based portfolio

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
Trend following systems
Create Your Own Technical Stock Rating System
3 Market Indicators based on Fundamental Data
How to predict and trade the stock market using pivot points









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 © 2025 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.