[amibroker] Simple Question regading OOP

2010-06-29 Thread rise_t575
For my better understanding of OOP: When I copy an object property... e. g. CurrentEquity = bo.Equity; ... if the bo.Equity property changes afterwards, does the variable CurrentEquity change with it, or does it contain the old value? Thanks in advance!

Re: [amibroker] Simple Question...

2010-04-30 Thread Duke Jones
Lookup the use of EXREM in help as well as the links below. http://www.amibroker.com/newsletter/08-2001.html http://www.amibroker.net/3rdparty/ABSysDevTutorv2.pdf Regards, Duke Jones, CMT On Apr 30, 2010, at 7:40 PM, StanG wrote: > Hi > Anyone know how to inhibit multiple consecutive shapes

[amibroker] Simple Question...

2010-04-30 Thread StanG
Hi Anyone know how to inhibit multiple consecutive shapes being displayed i.e. I would like to only display the first hit on a shape [open a trade] then no more until I signal a close of that trade [hitting a stop loss or profit]. Thanks for any help. Stan Graham

[amibroker] Simple Question

2009-05-01 Thread brianw468
Can someone please advise where the error is in the following simple code:- fbr = Status("firstvisiblebar"); Lbr = Status("lastvisiblebar")-1; x0 = fbr; x1 = Lbr; y0 = H[fbr]; y1 = L[Lbr]; Line = LineArray(x0,y0,x1,y1); Plot(Line,"Li

Re: [amibroker] simple question regarding arrays

2008-02-04 Thread Graham
- Original Message - * *From: "fifthelement80" <** > [EMAIL PROTECTED] <[EMAIL PROTECTED]>*>* > *To: <[EMAIL PROTECTED] *>* > *Sent: Monday, February 04, 2008 8:05 AM* > *Subject: [amibroker] simple question regarding arrays* > * > * > *> Hi

Re: [amibroker] simple question regarding arrays

2008-02-04 Thread wavemechanic
Don't recall but maybe there is something in the settings that will work. If not, valuewhen(cum(1) == 1, c, 1) will. Bill - Original Message - From: "fifthelement80" <[EMAIL PROTECTED]> To: Sent: Monday, February 04, 2008 8:05 AM Subject: [amibroker] simp

[amibroker] simple question regarding arrays

2008-02-04 Thread fifthelement80
Hi, I am very new to afl and I have a stupid problem on coding my indicator. I have 50,000 1 minute candle in my database and on my chart , now I want to access the close of the price on the bar #1 , but when I use C[1] I get "subscription out of range/error 10" message. it tells me I can n

Re: [amibroker] Simple question about BarCount

2007-09-07 Thread Tomasz Janeczko
you need to use SetBarsRequired function: http://www.amibroker.com/f?setbarsrequired Best regards, Tomasz Janeczko amibroker.com - Original Message - From: "oneklema" <[EMAIL PROTECTED]> To: Sent: Friday, September 07, 2007 3:45 PM Subject: [amibroker] Simple question about

[amibroker] Simple question about BarCount

2007-09-07 Thread oneklema
I have what should be a simple question about BarCount but cannot get a definitive answer from the AB documentation. FYI, I am working on daily data. What exactly does BarCount represent? The AB help says: BarCount constant gives the number of bars in array (such as Close, High, Low, Open, Volume

Re: [amibroker] Simple question

2007-01-08 Thread ravathi communications
*From:* amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *ravathi communications *Sent:* Monday, January 08, 2007 2:49 PM *To:* amibroker@yahoogroups.com *Subject:* Re: [amibroker] Simple question DEAR SIR CAN I KNOW WHO IS THE RESELLER IN INDIA FOR PATTERN EXPLORER S

RE: [amibroker] Simple question

2007-01-08 Thread Thomas Z.
ry 08, 2007 2:49 PM To: amibroker@yahoogroups.com Subject: Re: [amibroker] Simple question DEAR SIR CAN I KNOW WHO IS THE RESELLER IN INDIA FOR PATTERN EXPLORER S/W URS m.kOTHANDARAMAN On 1/8/07, Thomas Z. <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> .com> wro

Re: [amibroker] Simple question

2007-01-08 Thread ravathi communications
lorer.com -- *From:* amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *veszka *Sent:* Sunday, January 07, 2007 5:23 PM *To:* amibroker@yahoogroups.com *Subject:* [amibroker] Simple question Hello! How can I do the following: buy when close price > EMA(200) and sell after wit

RE: [amibroker] Simple question

2007-01-08 Thread Thomas Z.
m: Thomas Z. <mailto:[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <mailto:amibroker@yahoogroups.com> ps.com Sent: Monday, January 08, 2007 4:18 AM Subject: RE: [amibroker] Simple question Hi, buy = close > ema(c,200); sell = barssince(buy)==5; Best Regards Thomas

Re: [amibroker] Simple question

2007-01-08 Thread Anthony Faragasso
To: amibroker@yahoogroups.com Sent: Monday, January 08, 2007 4:18 AM Subject: RE: [amibroker] Simple question Hi, buy = close > ema(c,200); sell = barssince(buy)==5; Best Regards Thomas www.patternexplor

RE: [amibroker] Simple question

2007-01-08 Thread Thomas Z.
ker] Simple question Hello! How can I do the following: buy when close price > EMA(200) and sell after with 5 days the date of buy? I can't create the condition of selling. Could anybody help me? Thanks!

[amibroker] Simple question

2007-01-08 Thread veszka
Hello! How can I do the following: buy when close price > EMA(200) and sell after with 5 days the date of buy? I can't create the condition of selling. Could anybody help me? Thanks!

[amibroker] Simple question on setting defalt settings

2006-11-05 Thread Don Hallman
I am just starting to use Ami, and I would like my database to come up with barcharts when opening. Seems no matter what I save them as, they always come up as Candle. Is this fixable? Please note that this group is for discussion between users only. To get support from AmiBroker please s

Re: [amibroker] Simple Question : How do I specify the previous day's price

2006-04-05 Thread Tomas
gt; > Buy = Ref(condition,-1); BuyPrice = O; > > SetChartOptions(0, chartShowDates); > Plot(C,"C",1,64); > PlotShapes(IIf(Buy,shapeUpArrow,0),colorWhite, layer = 0, yposition = > BuyPrice, offset = 0 ); > > > > > > - Original Message ----- &g

Re: [amibroker] Simple Question : How do I specify the previous day's price

2006-04-05 Thread emp62
ot;C",1,64); PlotShapes(IIf(Buy,shapeUpArrow,0),colorWhite, layer = 0, yposition = BuyPrice, offset = 0 );           - Original Message - From: "Tomas" <[EMAIL PROTECTED]> To: <amibroker@yahoogroups.com> Sent: Wednesday, April 05, 2006 5:41 AM Subject: R

Re: [amibroker] Simple Question : How do I specify the previous day's price

2006-04-04 Thread Tomas
t;,1,64); > PlotShapes(IIf(Buy,shapeUpArrow,0),colorWhite, layer = 0, yposition = > BuyPrice, offset = 0 ); > > > rgds, Ed > > > - Original Message - > From: "Tomas" <[EMAIL PROTECTED]> > To: > Sent: Monday, April 03, 2006 1:43 AM >

Re: [amibroker] Simple Question : How do I specify the previous day's price

2006-04-04 Thread Tomasz Janeczko
, April 04, 2006 12:48 PM Subject: Re: [amibroker] Simple Question : How do I specify the previous day's price On Tuesday 04 April 2006 05:31 am, emp62 wrote:> you can code that like:>> condition = BarsSince( C > Ref(C,-1)) == 3 AND MA(V,3) < MA(V,50);>>

Re: [amibroker] Simple Question : How do I specify the previous day's price

2006-04-04 Thread Daniel LaLiberte
On Tuesday 04 April 2006 05:31 am, emp62 wrote: > you can code that like: > > condition = BarsSince( C > Ref(C,-1)) == 3 AND MA(V,3) < MA(V,50); > > Buy = Ref(condition,-1); BuyPrice = O; Ah ha! This is the proper way to buy at the Open price (O). This is what you want to do to simulate putti

Re: [amibroker] Simple Question : How do I specify the previous day's price

2006-04-04 Thread emp62
0 );     rgds, Ed     - Original Message - From: "Tomas" <[EMAIL PROTECTED]> To: <amibroker@yahoogroups.com> Sent: Monday, April 03, 2006 1:43 AM Subject: [amibroker] Simple Question : How do I specify the previous day's price > Hi,> > I just reg

[amibroker] Simple Question : How do I specify the previous day's price

2006-04-04 Thread Tomas
Hi, I just registered Amibroker a week ago, and in the process of testing out some of the features. I spent the last few hours trying to figure this issue out, but have no luck. This is a simple thing, but the array concept of AFL is a little confusing to me. My issue is that I want to write

Re: [amibroker] simple(?) question

2006-03-16 Thread Graham
do you not get an error message when you run this? firstly using IF with an array variable (which is what check is) requires a FOR loop to iterate through the bars, but I assume you only want to run on the alst bar, so you need to cahnge the array to a scalar value (single value for all bars) if(

[amibroker] simple(?) question

2006-03-16 Thread trb0428
Hi - I'm trying to check if any of my stocks have closed below price "x" in the last "y" periods and take some action: I have: X = 1.00; y = 260; check = LLV(C,y) < x; //Now I want to: if (check){ CategoryRemoveSymbol("",CategoryWatchlist, 0); This doesn't seem to be finding the stocks in m