Click here to Login





                                                   Rules Manager, Calculating Statistics

  0

0
clonex
2012-12-06 10:19:43


Hi,

if i use in Rules Manager : DayOfWeek() == 1 as a rule, with 1 day N-stop exit, how does rules manager calculates statistics? It buys monday market on open and close market on close or close day after

Clonex



QuantShare
2012-12-06 10:58:10

  0

It will buy Tuesday (Next day open) on open and exit on Wednesday on open.


clonex
2013-01-22 09:48:45

  0

Thanks,

and when i use in custom output

SET: _PERF(OPEN[-1])
WHERE: _DIS(0) >= 1

it calculates me a performance in same days? For example for dayofweek ==2 it calculates statistics from saturday open to wendsday open?

Thank You



QuantShare
2013-01-22 10:57:51

  0

You can see how it works by plotting it on a chart:

b = SET _PERF(OPEN[-1]) WHERE _DIS(0) >= 1;
plot(b, "", colorBlue, ChartLine, StyleOwnScale);

Note that "open[-1]" gets a the open price of tomorrow (future bar).






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
Price Channel Trading Rules
Simple pattern detection rules using close and open prices
Stock Picking Trading Rules
Trading Rules using Trend Indicators
VIX Volatility Index Statistics per Day of Week

How-to Lessons
How to create trading rules based on Put and Call volume data
How to create a trading system
How to create a screen
How to quickly download the most recent EOD data for your stocks
How to optimize a neural network using a genetic algorithm

Related Forum Threads
Rules manager - comparing results - back testing vs rules analysi...
Regarding rules manager
Custom Exits in the QS Rules Analyzer
Testing Rules with AI Optimizer
Request: Example of Custom Metrics addition into Rules Analyzer

Blog Posts
How to create and backtest thousands of trading rules in less tha...
Rules performance for different volatility regimes
Forecast volatility using trading rules and neural networks
Optimization of trading rules
10 masks to create thousands of rules to use into your trading sy...









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.