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
Yahoo EOD historical quotes
Historical Stock Market Data with Split-Dividend Adjustment Ratio
CompRule
System Quality Number Indicator
RandomValsMT

How-to Lessons
How to quickly select stocks based on the last value of a databas...
How to create histogram charts
How to download EOD quotes for active and valid stocks only
How to create a composite index/indicator
How to create and trade a Neural Network model

Related Forum Threads
how to plot a customized zigzag
zigzag
Help From anyone in India
Question on QS Language from pdf
Backtest, if number of buy is more than open positions, how QS se...

Blog Posts
Beta release
Create Realtime Quote Sheets with the Watchlist Tool
How to Switch On/Off Trading Rules in Your Stock Trading System
Backtesting trading strategies using intraday data
Diversify your portfolio by investing in stocks from various indu...









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.