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

[amibroker] Re: Please help with start of week code.



PureBytes Links

Trading Reference Links

Hi,

Would something like the following be enough?

MondayOpen = ValueWhen(DayOfWeek() == 1, Open);
BuyPrice = MondayOpen * 1.5;
Buy = Cross(High, BuyPrice);
...

I'm not clear on what you mean by "50 points". I have assumed that 
you meant a 50% move. You can adjust the following to reflect 
whatever you really meant (e.g. BuyPrice = MondayOpen + 0.5 for a 50 
cent move, etc).

Why do you care what the time was at Open? Aren't you just interested 
in taking a position if the price climbs more than "50 points above 
the weekly Open"?

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "alta hob" <altahob@xxx> wrote:
>
> Can someone please show how I would buy at 50 points above the open 
of the
> week (London open for example at 07:00)
> 
> I believe this is the starting point
> 
> buyprice = IIF( dayofweek() == 1,
> 
> and says to buy on monday but
> 
> 1.  how do I specify 7:00 gmt
> 
> 2.  how do I specify to buy 50 points above?
> 
> 
> thank you for your time.
> 
> AH
>



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

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/