PureBytes Links
Trading Reference Links
|
Amirul
a. I don't do stocks so I can't comment on Dhaka Stock Exchange.
b. if it suits your purpose you can change the "London" to "Dhaka" or
any other time you want.
c. Pips is for currencies.
d. See post later in this thread about getting the backtester to work
properly.
(My last few posts have taken a few days to come through so I will just
wait for them to emerge.)
Regards
ChrisB
Amirtrade wrote:
>
> Hello ChrisB,
>
> I have few Qs.
>
> I am trading in Dhaka Stock Exchange in Bangladesh. So, can I change
> the "London", "Time" & "Pips" to "Dhaka", Dhaka's Time" & "Bangladesh
> currency"? Also please advice how to remove the multi buy/sell signals
> and keep just one.
>
> Thanks
>
> Amirul
>
>
>
> ----- Original Message -----
> *From:* ChrisB <mailto:kris45mar@xxxxxxxxxxxx>
> *To:* amibroker@xxxxxxxxx ps.com <mailto:amibroker@xxxxxxxxxxxxxxx>
> *Sent:* Thursday, June 05, 2008 10:23 PM
> *Subject:* Re: [amibroker] Re: Please help with start of week code.
>
> AH
>
> Have a bit of play with this and see if this will get you started...
>
> //**** code here******
> // alta hob
> // Assuming of course you have intraday data...
> // it helps to install the deDateTime.dll from
> http://www.amibroke r.org/3rdparty/
> <http://www.amibroker.org/3rdparty/>
>
> // London Opening time and Open Value
> LondonStart = Param("London Start", 070000, 060000, 130000, 010000);
> LondonOpen = deValueWhenTime( Open,LondonStart );
>
> // Set Entry Level
> // Make sure you have the correct ticksize set in your Ticker
> Information settings...
> // e.g. for GBPUSD enter 0.0001 etc.
>
> FiftyPips = 50 * TickSize;
> entrylevel = LondonOpen + FiftyPips;
>
> // Plot these to see if they are correct
> Plot(Close, "", colorBlack, 64);
> //Plot(LondonStart, "LS", colorBlue);
> Plot( IIf(TimeNum( ) == LondonStart, LondonStart, -1e10),"L S",
> colorBlue,
> styleHistogram | styleNoLabel | styleNoTitle | styleOwnScale,
> -0.05, 1);
>
> Plot(LondonOpen, " London Open", colorBlue, 1);
>
> Plot(entrylevel, "entry level",colorRed, 1);
>
> // Check outputs with View ..Interpretation window...
>
> printf("LondonOpen= " + WriteVal(LondonOpen ,8.4));
> printf("\nWeekly Entry Level = " + WriteVal(EntryLevel ,8.4));
>
> //***** end code: watch out for line wraps and Yahoo funny formatting
> spaces****** **
>
> Regards
>
> ChrisB
>
> alta hob wrote:
> >
> > 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@xxxxxxxxxx . com
> > <mailto:altahob@xxxxxxxxxx. com
> <mailto:altahob%40googlemail.com>>> 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@ yahoo. com
> > <mailto:sfclimbers@xxxxx. com <mailto:sfclimbers%40yahoo.com>>>
> 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@xxxxxxxxx ps.com
> > <mailto:amibroker% 40yahoogroups. com>, "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/
|