Click here to Login





                                                   no trades in simulation

  0

0
dimitri
2018-09-17 08:14:28


I have created the following system with the wizzard but when it runs there are no trades although I have data for the dates I run it.

// Buy rules

Rule1 = (high) > (hhv(high, 5));
buy = (Rule1);

// Sell rules

Rule2 = (low) < (llv(low, 5));
sell = (Rule2);

// Short rules

Rule3 = (low) < (llv(low,5));
short = (Rule3);

// Cover rules

Rule4 = (high) > (hhv(high,5));
cover = (Rule4);



dimitri
2018-09-17 08:18:32

  0

please disregard above message


Salvatore Gaziano
2018-09-17 09:31:23

  0

Dear Dimitri,
i think that you should use >= or <=, not > or < because the logic of your script is, for example in the Rule 1, "buy if the current high is higest than the higest of the last 5 period (the last bar is included)". Then if it is the higest, it cannot is higher than itself.
Then try to modify the Rule1 in (high) >= (hhv(high, 5));
Same for the others rule.



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
Short Cover Simulation Indicator
Vary the Start Date of a Trading System Simulation
Buy Sell Simulation Indicator
Number of Buy Signals Over Time in a Simulation
Strategy Indicator - Percent winning trades for a trading rule

How-to Lessons
How to add a metric in the trading system simulation report
How to import trades into a portfolio
How to add trades from one portfolio to another one
How to create a Monte Carlo simulation
How to calculate the average of a time series using the money man...

Related Forum Threads
Exit rules - Simulation vs actual trades
Graph trades
Report simulation performance by symbol?
Trading System Simulation Errors
Rank using simulation

Blog Posts
True portfolio simulation applied to trading systems
The Ultimate Guide to Create Trading Systems in QuantShare
Backtesting a Strategy Based on Bond and Stock Index ETFs
How to build and backtest a robust stock trading system
Trading System Analysis: Backtesting report and custom measures









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.