Hi Patrick,
i use E.O.D
I want the L1 H1 to act as a support & resistant line.
pls find attached
tx
rasheed 

--- On Thu, 1/28/10, NW Trader <[email protected]> wrote:

From: NW Trader <[email protected]>
Subject: Re: [amibroker] REALLY NEED HELP ON BREAKOUT FORMULA
To: [email protected]
Date: Thursday, January 28, 2010, 4:09 PM







 



  


    
      
      
      


Hi Rasheed,
 
What time length do you expect this to run on?  1 Minute, 15 Min, 
Hourly, end of day??? Do you want the H1 and L1 levels set by the time frame 
selected or some other time frame (like end of day if you are charting 
intraday).
 
How do you define a buy or sell?  Is it to be a cross of the H1 or L1 
line?  
 
An exploration that produces the H1 and L1 values for each stock or 
instrument is easy enough to code, I just don't know what the answer to the 
above questions are and those will determine the code and solution to your 
question. I'll be glad to help in a bit once we know this information.
 
Peace and Justice   ---   Patrick

  ----- Original Message ----- 
  From: 
  Rasheed M 
  
  To: amibro...@yahoogrou ps.com 
  Sent: Thursday, January 28, 2010 2:33 
  PM
  Subject: [amibroker] REALLY NEED HELP ON 
  BREAKOUT FORMULA
  
hi guys.
I need help. I will like to run a scan/exploration 
  on an AFL titled "BREAKOUTS". I reduced the parameters to (lookback= 10) & 
  (Shift=5). I need it to give me "H1'' & "L1" points prices of each stocks 
  and perhaps a BUY/SELL within these regions.
Thanks I will really 
  appreciate.


_SECTION_BEGIN( "BREAK 
  OUTS");
H0=H;

L0=L;

C0=C;

O0=O;

Lookback=Param( "LookBack" ,22,10,50, 1); 
  // Default for interday commodity currency trading

shift=Param( "Shift", 
  11,1,50,1);                     
  // 
  ?

x0=LastValue( Cum(1));

x1=x0-shift;

H=Ref(H,-shift+ 1);

L=Ref(L,-shift+ 1);

H1=LastValue( Ref(HHV(H, Lookback) ,-1));

L1=LastValue( Ref(LLV(L, Lookback) ,-1));

Plot(H1,"H1" ,colorYellow) ;

Plot(L1,"L1" ,colorYellow) ;

H=H0;L=L0;C= C0;O=O0;

up=Cross(H,H1) 
  AND Cum(1)>x1;

dn=Cross(L1, L) AND 
  Cum(1)>x1;

Plot(C,"Close" ,IIf(Cum( 1)>x1-Lookback AND 
  Cum(1)<=x1,colorBlue, IIf

(Up,colorBrightGree n,IIf( 
  Dn,colorRed, colorBlack) )),64);

PlotShapes(shapeDow nArrow*(Cum( 1)==x1+1) ,colorBlue) ;


_SECTION_END( );



------------ --------- --------- ------

**** 
  IMPORTANT PLEASE READ ****
This group is for the discussion between users 
  only.
This is *NOT* technical support channel.

TO GET TECHNICAL 
  SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO 
  SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroke r.com/feedback/
(submissions 
  sent via other channels won't be considered)

For NEW RELEASE 
  ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroke r.com/devlog/

Yahoo! 
  Groups Links


  Traditional

    
  (Yahoo! ID required)

  
    amibroker-fullfeatu r...@yahoogroups. com





    
     

    
    


 



  






      

Reply via email to