Click here to Login





                                                   plot indicator as drawing tool

  0

0
dan
2011-03-30 08:35:43


Hello QS,

I woud like to plot a 10 bar moving average as a drawing tool on a chart so I can grab it with the mouse button and move it arround. It woud be used for studying of J.M. Hurst's cycles.
Is it possible?



QuantShare
2011-03-30 10:33:58

  0

Hi,

What happens exactly when you move the moving average?



dan
2011-03-30 12:10:16

  0

You could place them as envelopes that engulfs price data(a MA above price and a MA below).Hurst used to draw these fixed width envelopes manualy on paper. The width is based on 10 moving average displaced back in time but since it was made by hand I was looking for ploting the MA and placing them on or under price data by dragging with the mouse.


QuantShare
2011-03-30 12:49:27

  0

Best Answer
You can create the following formula:

y = Param("Y", 0, -19);
x = Param("X", 0, -6);
plot(ref(sma(14), x) + (y/10), '');

After that, click on "Update Indicator" (third icon) to dynamically update the X and Y values.



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
Reward/Risk Drawing Tool
Price Pattern Drawing Tool
ATR - Average True Range Drawing Tool
Channel Drawing Tool
KST indicator

How-to Lessons
How to use a custom drawing tool
How to use the Fibonacci retracement drawing tool
How to plot support and resistance lines automatically
How to hide a trading indicator from a particular time frame
How to create a custom trading indicator

Related Forum Threads
Custom Drawing tool Trendline does not end with second click
point interconect drawing tool
Cursor in Custom Drawing Tool
DRAWING TOOLS
Custom Indicator

Blog Posts
Create a stock index or a trading indicator using the composite t...
How to create a ratio indicator using QS Trading Software
The custom trading indicators tool explained
Detect chart patterns using the auto support/resistance indicator
Backtesting chart patterns using the auto support and resistance ...









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.