Click here to Login





                                                   how to plot a customized zigzag

  0

0
dimitri
2016-07-28 04:09:42


Hi,
I am trying to plot a zigzag line which will go from the high of one bar to the low ten bars after and vise versa.
I was looking to use the PlotFixed but I do not know how to associate the price and the date with x and y axis coordinates.

How can I do that or if there is another way to plot a zig zag line please let me know.



QuantShare
2016-07-28 06:16:21

  0

You can use the zigzag function:
a = zigzag(close, 10);
plot(a, "");

This will plot the zigzag line where a change in direction happens after a +- 10% change in price.



dimitri
2016-07-29 02:48:00

  0

Thanks for the response.
I need to set my own highs and lows not with percentage that's why I need to build another.



QuantShare
2016-07-29 14:47:04

  0

For this, you will need to create your own C# based function using Tools -> Create Functions


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
How far are the close prices from the support line
Plot Economic Indicators on a Chart
Market: Europe Holidays
Industry Equity
Number of Times an Event Occurred in the First N-Minutes of a Tra...

How-to Lessons
How to plot a stock using different periods in the same chart
How to plot the relative performance of several stocks/indices
How to plot the number of stock tweets per day
How to plot support and resistance lines automatically
How to plot the ratio of two stocks

Related Forum Threads
How to plot custom portfolio
zigzag clarification
Plot Threshold Lines
Plot Up/Down Arrows corresponding to buy and sell signals
Candle Stick Ratio Plot custom function

Blog Posts
How to create a trading indicator that uses stock news
How to Display the Year-to-Date Excess Return in a Pivot Table
Learn How to Create Your Own Technical Analysis Indicators
Industry Analysis - How to Compare Stocks with their Industries
How to create a trading system, screen and composite using earnin...









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.