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

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



PureBytes Links

Trading Reference Links

Is there anyone else who knows how to specify 7:00am as part of the MondayOpen criteria?

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

thanks
AH



On Tue, Jun 3, 2008 at 6:33 PM, alta hob <altahob@xxxxxxxxxxxxxx> wrote:
Hi Mike


many thanks.

The 50 points means for example on GBPUSD it would be 50 pips.

So would this be correct?

BuyPrice = MondayOpen + .0050;

The time of the "open" is important because I want my open to be when the big money comes into the market.  The London open time
is why I specified Monday 7:00 am.  If I just use the open of the monday bar it will be sunday night/monday morning and not the big money pushing price which is what I am looking for.

Is this possible?

your assistance is much appreciated


Nick



On Tue, Jun 3, 2008 at 10:16 AM, Mike <sfclimbers@xxxxxxxxx> wrote:

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___