Click here to Login





                                                   Plot _slope

  0

0
John Lyons
2012-09-25 16:56:16


I have the "SearchFor (_slope... );" that will plot as pointers where the condition is true, but,
is there some way to plot the actual slope that is calculated onto the chart I have?
Thank you.

John



QuantShare
2012-09-25 17:01:26

  0

Hi John,

What is your formula?



John Lyons
2012-09-26 12:29:42

  0

Here is the formula I have now.

aa=21;
p = aa;
f = aa;
s = StochRsiFastK(p,f);
a = anchor(s>49 and <52 ,2,"nb"); //==10!
p2= aa;
b = Ema(s,p2);
c = LinearReg_Angle(b, p2);

lag = 0; length = a;
Slope1 =searchfor( _slope (s,lag,length)>(100/a) and _slope (s,lag,length)<(100/a) + 0.02);
plot(Slope1,"Slope1",colorRed,ChartLine,StyleSymbolStar);
Plot (s, "SrsiFk", colorblack, ChartLine,StyleOwnScale);
Plot (a, "Anchor", colorgreen, ChartLine,StyleOwnScale);
//Plot (b, "EMA" , colorblue, ChartLine,StyleOwnScale);
//Plot (c, "Angle" , colorred, ChartLine,StyleOwnScale);

Currently this shows the Red Symbol Star at the current bar where 'searchfor' is true.
What I want to do is show on the chart the is a line depicting the slope from the 'searchfor' to the present bar.

Thank you.

John



QuantShare
2012-09-26 14:42:21

  0

For this, you will have to create a custom function.


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
Plot Economic Indicators on a Chart
SocialPicks Analysis
Large Block Ratio Indicator
Implied Volatility Data
Normalized Price

How-to Lessons
How to plot news on a chart?
How to plot two different time frames in the same chart
How to plot arrows below/above candlesticks on a chart
How to plot the relative performance of several stocks/indices
How to plot the number of stock tweets per day

Related Forum Threads
plot indicator as drawing tool
plot values on future bars
Plot differnt line style when RSI above or below 80/20 lines
Plot Threshold Lines
change color of Ichimoku Cloud and plot the cloud in future 26 ba...

Blog Posts
Backtesting chart patterns using the auto support and resistance ...
A simple but useful way to display distances in a chart
How to Use the Percentage Scale
Charting, Backtesting and Trading using Fundamental Data
Fundamental Stock Analysis: Rank stocks based on a valuation rati...









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.