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

Re: [amibroker] Trading Triangle from Market Club:


  • Date: Tue, 24 Nov 2009 04:06:29 -0800 (PST)
  • From: ram vel <rvlv@xxxxxxxxx>
  • Subject: Re: [amibroker] Trading Triangle from Market Club:

PureBytes Links

Trading Reference Links

Hi Ashish
 
You seem quite excited about trade triangles.
Sometimes you may already have it in you but just waiting for a spark.
========================
I cant help you fully, but to
 Set the ball rolling (1 to 2%) OR  to Bell the cat or who let the dogs out??
here is some thinking which can help
 
to start moving the ball from stationary zone.
These are just code lines. Not an afl.
 
 
 
1 Last hour close above 5 hour moving average
Code lines may be
   condition is Hourly close > MA(C,5)
 
 
2 New 3 day high on monday
     think of monday later
 
H3 = High > Ref(HHV(High,3),-1);

 
3.Last price Above 20day moving average
   C >MA(C,20)
4 New 3 week high  week ending 21november
 (think of monday later )
 
 
H3w = High > Ref(HHV(High,15),-1)
 
 
5 NEW 3 MONTH HIGH
H3m = High > Ref(HHV(High,66),-1);
 
   Why 66? (22 trading days a month,take round figure)
--------------------------------------------------------------------------------------
This is just a start.
rest of the thing  will soon be completed and my mistake if any also will be fixed.
 
Note:
From coding library, new 52 week high is defined as
 H1 = High > Ref(HHV(High,260),-1);
 
 
Enjoy!
rvlv

--- On Mon, 11/23/09, Asis Ghosh <subhamedicalsjpg@xxxxxxxxxxx> wrote:

From: Asis Ghosh <subhamedicalsjpg@xxxxxxxxxxx>
Subject: [amibroker] Trading Triangle from Market Club:
To: amibroker@xxxxxxxxxxxxxxx
Date: Monday, November 23, 2009, 11:43 PM

Based on a pre-defined weighted trend formula for chart analysis, DJI scored +100 on a scale from -100 (strong downtrend) to +100 (strong uptrend):



+10 Last Hour Close Above 5 Hour Moving Average
+15 New 3 Day High on Monday
+20 Last Price Above 20 Day Moving Average
+25 New 3 Week High, Week Ending November 21st
+30 New 3 Month High in November
+100 Total Score



Can any of our experienced AB users/programmers convert the above trading code into AB AFL--it might be very helpful for taking positions (BTST/STBT) at EOD--

Cheers,

Asis