Click here to Login





                                                   Average true range volatility move

  0

0
Glen
2016-08-03 06:43:02


Hi guys,

I am trying to create a system using two buy indicators. One that identifies if the close is above the 60th percentile of the days trading range.

One that identifies if the close is in the 75th percentile of the 15 day ATR.

And finally one where the stock is making a 15 day high.

The code I imagine I need is the following:

close >= low+ ((high-low)*0.6) AND
close > (Ref(close, 0) + 0.75 * ATR(15))

If anyone has any comments or suggestions that would be greatly appreciated.

Cheers



QuantShare
2016-08-04 03:02:06

  0

Hi,

Here is an example:
buy = close >= low+ ((high-low)*0.6) AND close > (Ref(close, 1) + (0.75 * ATR(15))) AND close == hhv(close, 15);

Ref(close, 1) references the previous bar's close

You can plot any rule or variable on a chart to have a visual confirmation.



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
Wilder Volatility Index - Average True Range
Wilder Volatility Index - Average True Range Trading System
ATR - Average True Range Drawing Tool
Percent High Low Range as a measure of stock volatility
Volatility Ratio - Technical Indicator

How-to Lessons
How to create a volatility-based Stop - Dynamic stop based on the...
How to scale and move the chart Y-axis
How to calculate the average of a time series using the money man...
How to create a moving average of an indicator
How to draw distances on a chart?

Related Forum Threads
Calculate total volatility of portfolio
Chart for 1m bars over a custom time range
How to obtain volatility of all the stocks in the portfolio?
Questions and Code to Share: Weekly Expected Move (IV)
Range Bars Implemented

Blog Posts
Using Average True Range to Measure Intraday Volatility
Different Types of Trading Indicators: Trend, Momentum, Volatilit...
Volatility and trading systems
Forecast volatility using trading rules and neural networks
Trading System: Moving average crossover and few others buy and s...









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.