Click here to Login

                                                   Increasing lookback period


Dennis Schutten
2018-03-02 07:53:43

Is it possible to have a increasing lookingbackperiod?
Like sma(close,totalbars from beginning until day evaluated)


2018-03-05 03:50:37


Hi Dennis,

You can use:
a = avg(close, count()+1); // avg is similar to sma but allows dynamic periods

No more messages


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"


Trading Items
Highest and Lowest value over a dynamic period
Holding period return - classifying positions
Triple Period Indicator
Inside Period
Trend Deviation Indicator

How-to Lessons
How to perform a basic quantitative analysis using the S&P 500
How to plot a stock using different periods in the same chart
How to dynamically update the settings of an indicator
How to create a screen
How to detect stocks trading near all time highs

Related Forum Threads
Lookback period on Bollinger Band cross
9 period sma added willr indicator
Build up a position over a specific time period
Getting volume for period of last condition
Backtesting: Using lookback money management feature

Blog Posts
Reducing risk and increasing return by combining several trading ...
Trend following systems
Quantitative Analysis: Price Channels
Using Average True Range to Measure Intraday Volatility
Backtesting chart patterns using the auto support and resistance ...

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2021
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.