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

[amibroker] Re: High & Low for the first 30 & 60mts for Each Day



PureBytes Links

Trading Reference Links


Hi,

This is very similar to what I am looking for. I've been able to put
it into the indicator builder and add it to the built in price formula
without error. (30High -> High30, iff -> iif) However, nothing extra
appears on the screen.
=====
High30 = ValueWhen( Cross( TimeNum(), 102959 ), H );
Plot( IIf( DateNum()==Now(3) AND TimeNum()>102959, High30, Null
),"High30", colorRed, styleLine );
=====

I'm just going away for the next 2 days so have no time to experiment
with the above but I'm looking for a formula/code that will let me
choose/test different intra highs and lows of the days for breakout.
===
Pseudocode
Starttime=7am
Endtime=10am
ExitAllTrade=9pm
BOHigh=high(Starttime,Endtime)
BOLow=Low(Starttime,Endtime)
Buy if High >BOHigh
Buystop = BOHigh - ATR(14)/10
BuyStopandReverse if price crosses 40% below BOHigh

Sell if Low < BOLow
Sellstop = BOLow + ATR(14)/10
SellStopandReverse if prices crosses 40% above BOLow

Close all trades at ExitAllTrades
===
Just ideas I want to kick around and optimize but the above has the
code elements I'm interested in.

Many Thanks
Alan

--- In amibroker@xxxxxxxxxxxxxxx, "gacsekar" <gacsekar@xxxx> wrote:
> 
> Hi,  
> Thanks for the prompt response.  When I run the indicator I get the 
> following error message.
> 
> <<. Line 1, Column 6:
> 30High
> ----^
> Error 23.
> Syntax error >>
> 
> I will be thankful if you could write the complete code for both Hi & 
> Lo for the first 30mts.  I am using Amibroker 4.6. 
> 
> Thanks 
> 
> G.A.Chanrasekaran 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, kaveman perth <kavemanperth@xxxx> 
> wrote:
> > You can use valuewhen and cross to get your values. Here is an 
> example
> > for plotting the current days value
> > 
> > 30high = valuewhen( cross( timenum(), 102959 ), H );
> > plot( iff( datenum()==now(3) and timenum()>102959, 30high, null ),
> > "30high", colorred, styleline );
> > 
> > On Thu, 07 Oct 2004 11:04:37 -0000, gacsekar <gacsekar@xxxx> wrote:
> > > 
> > > 
> > > Hi to all,
> > > 
> > > I am day-trading Indian markets with 5mts chart, using Amibroker 
> 4.6
> > > The trading opens @9:55 am & closes @3:30pm.
> > > 
> > > I want to draw a horizontal line for the High & Low for the first 
> 30
> > > & 60mts, for each day, (The ending period could be @ 10:25 to
> > > 1030am / 10:55 to 11:00am).  I hope my requirement is clear.
> > > Thanks in advance.
> > > 
> > > G.A.Chandrasekaran
> > > 
> > > 
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > > 
> > > Check group FAQ at: 
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > -- 
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/