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
Stock market prediction using traderbots
RSI3 Box v001b 2014-02-14
RefString
Exit Position based on Profitability
Historical Tick Data for U.S. Stocks

How-to Lessons
What is the Bookmark Panel?
How to filter stocks in a market composite
How to debug a trading system using the money management tool
How to optimize the number of positions in a trading system
How to optimize a neural network using a genetic algorithm

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
QuantShare Trading Software: New Features in the 3.3.1 Version
4 Links to Download Free Historical Stock Prices Data by Date
Different Types of Trading Indicators: Trend, Momentum, Volatilit...
Intermarket Analysis - Correlation and Trading Strategies









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.