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
Reverse Collar Option Strategy
Short Term Bullish signal for NSE Stocks
Buy low, Sell High
NYSE Historical Volume Data
Percent High Low Range as a measure of stock volatility

How-to Lessons
How to automatically arrange charts?
How to import trading items from other accounts
How to filter stocks in a market composite
How to plot the relative performance of several stocks/indices
How to get stocks for a particular index using the global script

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
Automatically create historical quotes charts
Backtesting Your Trading Systems: Symbol Segmentation
Download historical EOD data for the stock, futures, ETF and Fore...
Trading System: Buy stocks with the highest Sharpe ratio









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.