Re: [amibroker] Applystop query

2006-06-05 Thread Andrew Z
Basically, when Applystop is triggered, I need the Cover or Sell flag to be set to true so that the corresponding trade can be executed. How would I achieve this? Thanks, Andrew. Andrew Z wrote: G'day all, I'm currently testing an FX system via a third party API that allows me to

Re: [amibroker] Custom TiTle Help

2006-06-05 Thread Graham
Try using the title lines special codes. One apears in the standard price chart that comes with AB_N(Title = StrFormat({{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); or for similar result_N(Title = {{NAME}} -

[amibroker] Re: ADX'ers - Riddle me this

2006-06-05 Thread Gerard Carey
Hi Patrick Thanks for your advice. The momentum indicator in the attachment was a pretty generalised one and I am currently constructing one based on the ADX/DMI. While I already have one I've decided to fine tune it before I post it. Am I'm sure you are aware it's the interpretation that's

[amibroker] Creating a surrogate for price?

2006-06-05 Thread orionsturtle
Question: How do I reference the first close in a data set, perform a calculation on it and that becomes the new surrogate close going forward? ie. Dow close 5 yrs ago = 9500 surrogate dow close = 9500+5 If I use: InitalSurrogateClose = ref(c,-1)+ 5 ; SurrogateClose =

RE: [amibroker] Applystop query

2006-06-05 Thread Terry
That's how it works. ApplyStop gives a Sell/Cover code == 2 (which is True just like a normal exit which == 1). -- Terry -Original Message- From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Z Sent: Monday, June 05, 2006 01:55 To: amibroker@yahoogroups.com

RE: [amibroker] Creating a surrogate for price?

2006-06-05 Thread Terry
Not sure what you are really after. What you did was create a reference to YESTERDAY's close. It will change every day as you discovered. If you just want the first close of the data to remain constant, try this: InitalSurrogateClose = C[0] + 5; Gets and stores the very first piece of data

Re: [amibroker] Creating a surrogate for price?

2006-06-05 Thread Tomasz Janeczko
Hello, In addition to that, if you want to accumulate 5 over subsequent days (so it adds 5 to every bar after initial one)you can use: Surrogate = Close[ 0 ] + Cum( 5 ); Best regards,Tomasz Janeczkoamibroker.com - Original Message - From: Terry To:

[amibroker] Re-dimension Close array to add next day closing price

2006-06-05 Thread burtsmagic
I am trying to re-dimension the Close array by increasing its size in order to add the next day closing price and calculating the next day signal using a built-in indicator that Do Not Provide An Array Argument (Hope someone at AmiBroker catches the hint). I've use a _vbscript_ to function

[amibroker] Indicator code execution

2006-06-05 Thread cpescho
Im working on some seasonal indicator but had problems with it. I stripped the code to the problem related part, see below. It counts the number of years within a symbol. As soon as i click on apply indicator it displays the correct year count, but then everything disappears and the yc is set

[amibroker] Re: Conditional Color in Title

2006-06-05 Thread troll
--- In amibroker@yahoogroups.com, troll [EMAIL PROTECTED] wrote: Re conditional color in title Thanks so much Terry Steve - your helpful comments helped me solve this one. ( Also didn't realize my 52 week high formula needed to be corrected to exclude current week as Steve kindly

[amibroker] Re: Creating a surrogate for price?

2006-06-05 Thread orionsturtle
Thank you both!!! I do believe that is what I'm looking for. --- In amibroker@yahoogroups.com, Tomasz Janeczko [EMAIL PROTECTED] wrote: Hello, In addition to that, if you want to accumulate 5 over subsequent days (so it adds 5 to every bar after initial one) you can use: Surrogate =

[amibroker] Interprocess communication between AFL and .NET

2006-06-05 Thread soundscribe_studios
My .NET system creates parameters, sends them to AB, runs the AFL, gets the results from the backtester, adjusts the parameters and repeats many times. I'm currently using the Windows clipboard (ClipboardSet(values)) as the interprocess communication mechanism between AFL and .NET and it works

[amibroker] Re: Vertical time zones

2006-06-05 Thread traderix2003
Hi, try this: tn = TimeNum(); Color = IIf( tn =08 AND tn = 14, colorBlue,colorLightBlue); Plot( 1, , Color, styleArea | styleOwnScale, 0, 1); Changing the last 1 you can change the width put it on the whole pane or make a ribbon below the chart traderix --- In

Re: [amibroker] Re: Vertical time zones

2006-06-05 Thread Alan
Hi, Thanks Alan traderix2003 wrote: Hi, try this: tn = TimeNum(); Color = IIf( tn =08 AND tn = 14, colorBlue,colorLightBlue); Plot( 1, , Color, styleArea | styleOwnScale, 0, 1); Changing the last 1 you can change the width put it on the whole pane or make a ribbon

Re: [amibroker] Interprocess communication between AFL and .NET

2006-06-05 Thread Tomasz Janeczko
Hello, Write a plugin using ADK in C++that will "talk" to your .NET app. Best regards,Tomasz Janeczkoamibroker.com - Original Message - From: soundscribe_studios To: amibroker@yahoogroups.com Sent: Monday, June 05, 2006 7:39 PM Subject: [amibroker] Interprocess

[amibroker] Re: Interprocess communication between AFL and .NET

2006-06-05 Thread soundscribe_studios
Thanks Tomasz. I thought you might say that. Would the plugin approach execute faster than the clipboard? 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 other support

[amibroker] UNSUBSCRIBE

2006-06-05 Thread Sam Zimmerman
PLEASE UNSUBSCRIBE ME FROM THIS LIST From: "Phsst" [EMAIL PROTECTED]Reply-To: amibroker@yahoogroups.comTo: amibroker@yahoogroups.comSubject: [amibroker] Quick ? about Variable NamesDate: Sun, 04 Jun 2006 00:24:46 -MIME-Version: 1.0X-Originating-IP: 66.94.237.48X-Sender: [EMAIL

[amibroker] Controlling the Zoom Level

2006-06-05 Thread Ken Close
Is it possible to control the dates which appear on the bottom axis from code? Alternatively, can I save a layout with the last 3 months showing; then save another layout with 6 months showing, and recall one or the other. I have tried but it seems the date span is not saved nor controlled by

[amibroker] Controlling the Layout in NEW WINDOW

2006-06-05 Thread Ken Close
When I open a new window, it appears to stick in the last Global Layout I saved, which is not what I want. I do not see a way to control the layout that opens with NEW WINDOW. Is there a way and what is it. Thanks for any help on this minor issue. Ken -- No virus found in this outgoing

Re: [amibroker] Controlling the Layout in NEW WINDOW

2006-06-05 Thread Tomasz Janeczko
Hello, It is using default template (not default layout). The difference is that template is for single window while layout is multi-window. Default template can be saved using right click on chart, then Template-Save as default. Best regards, Tomasz Janeczko amibroker.com - Original