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
Accumulation Swing Index (To measure long term trends)
Optimizable Fibonacci Long and Short Trading System
Large price and volume gain after consolidation
Index Investment Data for U.S. Futures Markets
Coefficient of Determination - R Squared - Time-Series Prediction

How-to Lessons
How to automatically arrange charts?
How to calculate the average of a time series using the money man...
How to create a moving average of an indicator
How to plot the relative performance of several stocks/indices
How to import trades into a portfolio

Related Forum Threads
how to plot a customized zigzag
zigzag
Help From anyone in India
Question on QS Language from pdf
how can I get MCX commodity charts ?

Blog Posts
Automatically create historical quotes charts
Backtesting Your Trading Systems: Symbol Segmentation
Download historical EOD data for the stock, futures, ETF and Fore...
Trading System: Buy stocks with the highest Sharpe ratio
Download Trading Data using the Pre-Script









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.