- Joined
- 6 July 2013
- Posts
- 15
- Reactions
- 0
I've been using Metastock for many, many years, and am now looking to switch to a new platform. Is anybody aware of any software (or software with a plug-in) that can do either of the following?
1) Create trendline alerts on a manually drawn trend line (e.g. on a breakout)
2) Reference a manually drawn trend line in a formula (for example if I want to know the price difference between the current close and the current value of a manually drawn trend line.
Thanks!
Amibroker certainly does the first. Pretty sure it does the second but you might want to check that.
up1 = Study( "U1", 1632 );
distance = LastValue( Close ) - up1;
Plot(LastValue(distance), "Distance between Current Price and Uptrend Line", colorRed, styleLine);
up1 = Study( "U1", 1632 );
distance = C - up1;
Plot(distance, "Distance between Price and Uptrend Line", colorRed, styleLine);
up1 = Study( "U1", 1632 );
distance = (C - up1) / Ticksize;
Plot(distance, "Distance between Price and Uptrend Line", colorRed, styleLine);
StaticVarSet( "Up1", Study( "U1", GetChartID() ) );
up1 = StaticVarGet( "Up1" );
distance = C - up1;
Plot(distance, "Distance between Price and Uptrend Line", colorRed, styleLine);
Richard, I just came up with another idea you can play around with and where you don't have to look up the chartid every time.
Just add the following line to the code of the price chart pane where you draw the line
remember Properties name of the Trendline and name of Study function must be the same. Here it is U1.Code:StaticVarSet( "Up1", Study( "U1", GetChartID() ) );
and the following code can be applied anywhere (lower pane, different chart tab, different sheet)
Code:up1 = StaticVarGet( "Up1" ); distance = C - up1; Plot(distance, "Distance between Price and Uptrend Line", colorRed, styleLine);
and it will also recognize the value(s) since it has been made global through StaticVarSet.
Trash, I posted a trend line alert indicator on here somewhere that I found browsing around the Internet. Maybe you could find it in one of the amibroker threads....I'm just away with infrequent Internet....
The code had an alert when the price broke the trendline.
CanOz
Trash, I posted a trend line alert indicator on here somewhere that I found browsing around the Internet. Maybe you could find it in one of the amibroker threads....I'm just away with infrequent Internet....
The code had an alert when the price broke the trendline.
CanOz
Thanks for all the formulas.. I need to get up to speed with Amibrokers formula language.. my brain is still firmly in Metatock language... and this is why I hate changing software!!
Thanks for the links - I had been looking for a good starting place.
Another quick question if you don't mind.... I managed to produce a relative performance chart using a handful of stocks.. and at the top of the resulting chart it showed a strip of data showing the stock symbols included in the the chart (i.e. the ones I was comparing).. do you know if its possible for AB to show the stock names rather than the symbols?
Sure. There is nearly nothing that is not possible. I have added it to this thread https://www.aussiestockforums.com/f...t=1679&page=92&p=782883&viewfull=1#post782883
For further questions better go to that main AB thread.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?