Click here to Login





                                                   zigzag clarification

  0

0
srishail
2010-08-17 14:16:27


Guru in zigzag indicator i want to plot formula for zigzag 10. zigzag 20 ,like 44, 100 ,and 200 for all these periods .my quetion is i want to screen those scripts in which
all zigzag periods come in same line like what i showed in the earlier image



QuantShare
2010-08-18 10:16:00

  0

Best Answer
Here is the formula:
max(absolute(zigzag(close, 44) - zigzag(close, 10)), max(absolute(zigzag(close, 10) - zigzag(close, 20)), max(absolute(zigzag(close, 20) - zigzag(close, 100)), absolute(zigzag(close, 100) - zigzag(close, 200))))) < 0.3

Please note that the zigzag function uses future bars and it should not be used in backtesting.



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
Denmark - Copenhagen stock exchange
Entry Trailing Stop
Forex Economic Calendar
Implied Volatility Data
Real-Time RSI Table

How-to Lessons
How to automatically arrange charts?
How to filter stocks in a market composite
How to install the previous version of QuantShare
How to plot the relative performance of several stocks/indices
How to optimize a neural network using a genetic algorithm

Related Forum Threads
how to plot a customized zigzag
zigzag
Help From anyone in India
Question on QS Language from pdf
Equity to Symbol - AMM / Script

Blog Posts
Composite Indicators
Reading and Exporting Data from QuantShare to Excel Programmatica...
Sentiment Analysis: How to measure the sentiment score of your st...
Trading System: Moving average crossover and few others buy and s...
How to turn any ordinary trading strategy into a very profitable ...









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 © 2025 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.