[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Re: TrendLine Scanning: Far from satisfactory



PureBytes Links

Trading Reference Links

There was some discussion on having AND / OR conditions for multiple
selections. I don't recall, but apparently it is only using symbols common
to both lists.

 

I thought this was in Feedback center, but I cannot find it.

--

Terry

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of RajeevM
Sent: Tuesday, January 02, 2007 05:40
To: Rick Miller; amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: TrendLine Scanning: Far from satisfactory

 

Yes I got it working

But one problem still exists.

while scanning in "Use Filter" if I select favourites + one more watch
list...
the results are much less, compared to when I just select favorites. 

If you are asking for code, it is pretty simple.

ret = Study("RE", 1002);
Buy   = Cross(ret, C) OR Cross(C, ret);// :-) using OR to make sure I get an
alert whenever they cross each other.

if you need more lines do same for "SU"
or you can use any more 2 lettered names like "R1' "R2"..


Make sure you find your chart id.. which is 1002 in my case.

Two issues in this case. 
1. Use filter not working proeprly. (or may be i am making mistake again,
not sure, you check)
2. Chart id is not a great idea for trend line scanning.. 
since I would like to have an alert whenever a line is cracked on a stock.. 
irrespective of which chart it was drawn on..
Technically I cant say its wrong.. but not great usage wise for me.


I think amibroker should come with more inbuilt stuff to support line
breakouts.
Its a huge idea which most traders use.

even then I love whatever is already present.

(again my view.. designer knows better)

regards
rajeev

On 1/2/07, Rick Miller <rick300m@xxxxxxxxxxxxx> wrote:

Rajeev-  Did you get an AFL to work?  I am very interested in this same
function.

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto: <mailto:amibroker@xxxxxxxxxxxxxxx>
amibroker@xxxxxxxxxxxxxxx] On Behalf Of RajeevM
Sent: Wednesday, October 18, 2006 6:24 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] TrendLine Scanning: Far from satisfactory

Wackao.
Thanks for your idea.

I was cracking my head on this since several weeks.
Didnot find this precaution of not using the same name more than once.

This is a little hindrance in some ways.. 
since I could have say 5 lines on a chart which are resistance of different
kinds(time frame) 
and would like to get alerted on all of them... 
(dont want to keep redrawing the lines and assign RE to latest one)


Is this any way to get a handle/pointer on all the lines drawn on a single
chart 
using some afl and give them names iteratively like R1, R2, R3....?

and then scan for buy/sell signals across all lines?

thanks for your help. 

regards
Rajeev




On 10/18/06, Graham <kavemanperth@xxxxxxxxx> wrote: 

You do not give the studyID name to more than one line
Name them differently

I also assume that the lines existed across the bar you were scanning on.

-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service 
Yes, I write AFL code to your requirements
http://www.aflwriting.com 

 

On 18/10/06, RajeevM < rajeevmundra@xxxxxxxxx
<mailto:rajeevmundra@xxxxxxxxx> > wrote: 

Further to previous email today I found one more issue.


Setup 1.
In a stock price chart (say ranbaxy) I drew a upper channel and gave STUDY
ID as RE.
Scan for trendline crack and I got the alert... (the name ranbaxy came up). 


Set Up 2.
Draw any random line on the chart which doesnot cuts the price anywhere and
give it studyID as RE.
Next draw a upper channel (as in setup1) and gave STUDY ID as RE.
Scan for trendline crack and I DONT get the result. (the name doesnot comes
up)

Does it means I would get result only with the frist drawn Trendline which
is amrked as RE?

Thomas or anyone who can guide on this? 
How can I get an alert for any trendline (amrked as RE) cross.. not just the
one I drew first.

Anyone faced this issue earlier?

my afl for trendline scanning is this
===================
ret = Study("RE", 1002);

Buy   = Cross(C, ret);
Sell  = Cross(ret,C); 

AlertIf(Buy,   "", "",1,1 );
AlertIf(Sell,  "", "",2,1 );

AlertIf( Buy , "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1 );
AlertIf( Sell, "SOUND C:\\WINDOWS\\Media\\ir_inter.wav", "Audio alert", 2); 
=====================

regards
Rajeev

---------- Forwarded message ----------
From: RajeevM < rajeevmundra@xxxxxxxxx <mailto:rajeevmundra@xxxxxxxxx> >
Date: Oct 15, 2006 11:11 PM
Subject: Re: TrendLine Scanning: Far from satisfactory
To: amibroker@xxxxxxxxxxxxxxx

One more thing I saw while scanning.. 

when i select favorites only in filter I get my result..
and when i select a watch list in the filter->inlude I get fewer
results..(seems the result come only from the watch list) 

image attached.
Is this some known issue which is resolved in latest versions?

regards
rajeev 

 

On 10/15/06, RajeevM < rajeevmundra@xxxxxxxxx
<mailto:rajeevmundra@xxxxxxxxx> > wrote: 

Anyone in this group uses Trendline scanning for real time alerts during
trading hours or after mkt hours? 

I face a lot of issues and inconsistent behaviour with TrendLine scanning.

Some issues:
1. I have drawn trendlines across 75-100 charts, even then i get results for
only 1-2 stocks while I cna visually see 10-20 of then getting crossed. 

2. To test what mistake i am making, I pick up one chart.. draw a line which
is cutting lastest 3-4 price candles .. mark as RE and then scan.. 
Gives No result.... and then I delete this line... draw one more line and
scan again.. I get the result or sometimes I dont get. 
This is a little wierd..

3. Sometiems I get results even when I Dont visually see any lines on a
chart...!! Seems some previous drawn lines which are hidden now..??

How can I make trendline working smoothly. 
Anyone faced similar issues.. kindly share your experience.


my afl for Trendline scan is

===================
ret = Study("RE", 1002);

Buy   = Cross(C, ret);
Sell  = Cross(ret,C); 

AlertIf(Buy,   "", "",1,1 );
AlertIf(Sell,  "", "",2,1 );

AlertIf( Buy , "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 1 );
AlertIf( Sell, "SOUND C:\\WINDOWS\\Media\\ir_inter.wav", "Audio alert", 2); 
=====================














-- 
Rajeev Mundra | Founder : EagleEye TradeTech
Cell: +91 98608 51052 | Yahoo Id: rajeevmundra
Email: rajeevmundra@xxxxxxxxx 
~Take Risks www.eetradeconsult.blogspot.com 




-- 
RajeevM
www.EagleEyeTrade.com
Red Hot Trades, Day After Day.
cell: 0 98608 51052 | yahoo: rajeevmundra  


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.2/613 - Release Date: 1/1/2007 2:50 PM