Click here to Login





                                                   Bars reference to daily bars

  0

0
Dennis Schutten
2016-02-21 08:18:17


Hi,

Is it possible to make a reference with backtesting to the days already evaluated? For example the sma (10). On day 1 this will be sma(1), on day 2 sma(2) on day 30 sma(30) etc etc.
So during backtesting the sma value will have a increasing value.

Regards,
Dennis



QuantShare
2016-02-22 04:01:03

  0

You can do the same using the following formula:
avgif(1, close)



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
Number of bars since the beginning of the month
Convert Seconds to Trading Bars
Stop Loss for the N-first Trading Bars only
Consecutive Up and Down Bars - Works With Any Trading Indicator
Percentage of Bars a Trading rule Generates Buy/Sell Signals

How-to Lessons
How to add future bars to plan for market scenarios
How to create and trade a Neural Network model
How to create volume bar charts
How to plot two different time frames in the same chart
How to plot arrows below/above candlesticks on a chart

Related Forum Threads
Bars in slider
Range Bars
Number of bars
No. of bars in a different timeframe
Weekly Bars

Blog Posts
How to Reference Drawing Studies in QS Formulas
Day Trading: A trading system that combines intraday and EOD data
9 mistakes you should avoid when backtesting an end-of-day stock ...
A vector-based language
QuantShare Programming Language Tutorial









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.