Re: [amibroker] Bar number of first trade in CBT

2010-02-20 Thread Thomas Z.
You could iterate through all bars and at every through the list of open positions and set a flag when an open trade is available. Best regards, Thomas Web: www.PatternExplorer.com http://www.PatternExplorer.com/ Am 20.02.2010 20:05, schrieb Markus Witzler: Hello, I need to retrieve the bar

Re: [amibroker] How to overlay a line on price?

2010-02-20 Thread Thomas Z.
One way would be to import the data through the import wizard and overlay them thereafter through the foreign() function. Best regards, Thomas Web: www.PatternExplorer.com http://www.PatternExplorer.com/ Am 20.02.2010 22:44, schrieb Ding: Hi, I have a data series in excel. The first column

Re: [amibroker] saving database with commandline command

2010-02-09 Thread Thomas Z.
Hello, It should work with the following two lines: AB = new ActiveXObject(Broker.Application); *AB.SaveDatabase(); * Best regards, Thomas Web: www.PatternExplorer.com http://www.PatternExplorer.com/ Am 09.02.2010 22:05, schrieb labratno9: Hi, I was wondering if it is possible to save the

Re: [amibroker] Re: saving database with commandline command

2010-02-09 Thread Thomas Z.
Hello, there is a detailed description in the AmiBroker help, search for AmiBroker's OLE Automation Object Model I recommend to take a look at it. Best regards, Thomas Web: www.PatternExplorer.com http://www.PatternExplorer.com/ Am 09.02.2010 23:25, schrieb labratno9: Hi Thomas, can you

Re: [amibroker] nested IIF statement, can this be refined?

2010-02-06 Thread Thomas Z.
Hello, I don't know what you use for your variables: DnPenSum and DnPenCount, therefore i wrote the code below with dummy values. Probably it does what you are trying to do. It searches at every bar for DnPenSum[j] / DnPenCount[j] 0 and checks all the previous bars until it finds one or the

Re: [amibroker] Re: 3d graph works incorrectly in Windows 7

2010-02-01 Thread Thomas Z.
Hi, I had exactly the same problem, but only Windows 7 RC Now I use official Windows 7 Ultimate edition and everything works fine. Do you maybe use the RC edition? Best regards, Thomas Web: www.PatternExplorer.com http://www.PatternExplorer.com/ Am 01.02.2010 13:58, schrieb vagrio26:

AW: [amibroker] Biggest shortcoming of AFL scripting language

2009-11-05 Thread Thomas Z.
I would also prefer the short way. Coloring would be good to identify them easily. Another solution would be to use a prefix like s for static: sAvg1Period Thomas www.patternexplorer.com -Ursprüngliche Nachricht- Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im

AW: [amibroker] Help!! simple looping problem???

2009-11-01 Thread Thomas Z.
Hi, you need to change it to: ResLine[i] = H[i-1]; Thomas www.patternexplorer.com -Ursprüngliche Nachricht- Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im Auftrag von christianvost Gesendet: Sonntag, 1. November 2009 10:37 An: amibroker@yahoogroups.com Betreff:

AW: [amibroker] Re: Help!! simple looping problem???

2009-11-01 Thread Thomas Z.
to zero, after each iteration? I'm assuming that this code correction goes in at line 7? could you please make the correction to the looping sample and re-post? I'd really appreciate it. Many thanks, Chris. --- In amibroker@yahoogroups.com, Thomas Z. t...@... wrote: Hi, you need to change

AW: [amibroker] Re: Help!! simple looping problem???

2009-11-01 Thread Thomas Z.
- Original Message - From: Thomas Z. mailto:t...@patternexplorer.com To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 4:29 PM Subject: AW: [amibroker] Re: Help!! simple looping problem??? Hi, //Resline.afl // OneHigh = H; TwoHigh = Ref( H, -1 ); ThreeHigh = Ref

RE: [amibroker] bo.ExitTrade and pos.BarsInTrade in CBT

2009-09-04 Thread Thomas Z.
Do you maybe don't use the low-level approach? long BarsInTrade bars spent in trade (counting starts from 0) Note however that the value of zero is available only when trade is just opened in low-level approach, so normally you would see numbers = 1 (all other reporting in AB remains as it was,

RE: [amibroker] Exporting data from amibroker

2009-08-30 Thread Thomas Z.
Hi, we need your csv export code to show you the changes you need to do. However in this file you probably have somewhere the call of function name() which returns the symbol name like ABC.NS So you need to replace it there by your market. One way would be to use a simple iif statement:

RE: [amibroker] backtester - trade object question

2009-08-19 Thread Thomas Z.
The trade object has a property called IsLong. It is false if it is a short trade, otherwise true. Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Nick Willemse Sent: Wednesday, August 19, 2009 7:13 PM To:

RE: [amibroker] Ninja Trader strategy conversion

2009-08-19 Thread Thomas Z.
Ninja Trader uses C# and even own classes and their methods. So there is no quick way to convert the code automatically. You need to be able to read and write both languages, C# and AFL. I have a very good C# knowledge, so I can help you if you want. Just send me a private mail. Thomas

RE: [amibroker] help with code

2009-08-08 Thread Thomas Z.
Hello, check out the exrem() and flip() function. Thomas www.PatternExplorer.com -Original Message- From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of austin.lawrence24 Sent: Saturday, August 08, 2009 12:47 PM To: amibroker@yahoogroups.com Subject:

RE: [amibroker] PlotShape

2009-08-02 Thread Thomas Z.
Hello, You need to plot the price and to call Equity(1). Short = Cross(C, MA(C, 50)); Cover = 0; ApplyStop( stopTypeNBar, stopModeBars, 1 ); Equity(1); Plot(C, Price, 1, 128); PlotShapes( Cover* shapeDownArrow, colorRed, 0, H ); Thomas www.PatternExplorer.com

RE: [amibroker] Oanda API Plug In

2009-07-14 Thread Thomas Z.
As far as i know there is a huge monthly fee in order to use the API Thomas www.PatternExplorer.com -Original Message- From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of frankphd_us Sent: Tuesday, July 14, 2009 6:59 PM To: amibroker@yahoogroups.com Subject:

RE: [amibroker] the last trace up to the listing

2009-07-12 Thread Thomas Z.
Hello, you might find _TRACE(!CLEAR!); to clear the internal log window useful. Thomas www.PatternExplorer.com -Original Message- From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of reinsley Sent: Sunday, July 12, 2009 9:30 AM To: amibroker@yahoogroups.com

RE: [amibroker] Re: Valuewhen issue

2009-06-27 Thread Thomas Z.
: x = valuewhen(y, z, 1); Wouldn't x be the exact value of z for the same bar as the first y==1? How does that return an array? If so, how do I iterate through the values? Thanks! --- In amibroker@yahoogroups.com, Thomas Z. t...@... wrote: Valuewhen returns a array

RE: [amibroker] Trying to understand BarCount

2009-06-17 Thread Thomas Z.
Hello, BarCount is just the complete number of bars of a symbol. Therefore there is only one value of BarCount. If your history includes 100 entries, then BarCount is 99 and so your loop has to stop before 100 is reached, because arrays are zero based. Thomas www.PatternExplorer.com

RE: [amibroker] break statement for loop

2009-06-05 Thread Thomas Z.
Sure, it's break; don't forget the semicolon. Thomas www.PatternExplorer.com -Original Message- From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of bigitop Sent: Friday, June 05, 2009 10:38 PM To: amibroker@yahoogroups.com Subject: [amibroker] break

RE: [amibroker] looping question

2009-05-11 Thread Thomas Z.
Hello zeek, the j-loop is executed if your condition inside the i-loop is true. A)You could start your j loop also at the position of i. The value of i is already available, therefore it not necessary to start j at the same position. However it's easier to initialize j with i if you

RE: [amibroker] simple High value question

2009-03-29 Thread Thomas Z.
Buy = Cross(C, MA(C, 100)); PrevBarHH = HHV(Ref(H, -1), 20); HHPreviousNBars = ValueWhen(Buy, PrevBarHH); Plot(C, Close, colorLightBlue, 128); PlotShapes(Buy * shapeUpArrow, colorGreen, 0, L, -12); Plot(HHPreviousNBars, HHPreviousNBars, colorRed, 1); Thomas www.PatternExplorer.com From:

RE: [amibroker] 'Symbol Information' update from text

2009-03-11 Thread Thomas Z.
Hi, i think the only way is to read the description in help: Import ASCII to assure that the import does what you need. Thomas www.PatternExplorer.com -Original Message- From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Md. Habibur Rahman Sent: Wednesday,

RE: [amibroker] lastvalue challenges

2009-02-22 Thread Thomas Z.
Hello, you can do this with the barsSince() function. For example: Condition = barsSince(Buy) 50; Thomas www.PatternExplorer.com -Original Message- From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of murthysuresh Sent: Sunday, February 22, 2009 5:15 PM

RE: [amibroker] Enter Trades At Price of Previous Bar's High

2009-01-28 Thread Thomas Z.
With BuyPrice you can define the entry price. However, you have to be carefully, because basically you can define any price. Here is a simple way without slippage: Buy = High ref(High, -1); BuyPrice = max(ref(High, -1), Open); Thomas Zmuck www.PatternExplorer.com -Original Message-

RE: [amibroker] Re: Curing AmiBroker slowdowns with a system restore

2009-01-05 Thread Thomas Z.
Yes, it works this way. However, USB is slowly. I rather recommend a second internal backup disc or a external disc that you could connect through eSata. It is easy to restore the complete partition(s). The wizard helps to do it. I would take some minutes to study the manual, even if you are not

RE: [amibroker] Re: To Get Average traded Price for CURRENT DAY

2009-01-03 Thread Thomas Z.
Hello, the code should do what you need. DayChange = Day() != Ref(Day(), -1); AvgTradePrice = Null; CurDayBars = 0; CurDayCloseSum = 0; for (i = 0; i BarCount; i++) { if (DayChange[i]) { CurDayCloseSum = C[i]; CurDayBars = 1; }

RE: [amibroker] How to get portfolio level current equity in backtesting?

2008-12-28 Thread Thomas Z.
You can't access current equity at portfolio backtests directly without using the CBI. But you can define the positionsize as percentage of current equity: PositionSize = -25; // invest 25% of portfolio equity in single trade Check out the CBI documentation if you want to access the equity bar

RE: [amibroker] EMA Cross - optimize

2008-12-14 Thread Thomas Z.
Hi, you can set a delay in Automatic Analysis window - Settings - Trades It is also possible through the code, function: SetTradeDelays() Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Kobus Sent: Monday, December 15, 2008 7:00

RE: [amibroker] Alert

2008-12-11 Thread Thomas Z.
Hello, The only way is to open the alert tool in AA and scan all your desired symbols. Basically one could have a database with thousands of symbols and each symbol could be opened in each of the possible 20 sheets. Also in every sheed it could be opened in multiple charts with different codes.

RE: [amibroker] AD Line formual .... help

2008-12-10 Thread Thomas Z.
I've corrected your code... _SECTION_BEGIN(ADLine Clssic); aI = Foreign(~StocksAdv,X); dI = Foreign(~StocksDec, X); UncI = Foreign(~StocksNC,X); ad = aI / dI; Difference = (aI)-(DI) / ( UncI + 1 ); DiffSqrt = IIf( Difference 0, sqrt( Difference ), - sqrt( - Difference ) ); //ADLine =

RE: [amibroker] ATR formula in AmiBroker

2008-12-07 Thread Thomas Z.
Hello, the ATR uses Wilders smoothing while you used simple smoothing. Here is the code that matches the build-in calculation. TrueRange = Max( H - L, Max( abs( H - Ref( C, -1 ) ), abs( L - Ref( C, -1 ) ) ) ); myATR = Wilders(TrueRange, 3); Plot(myATR, myATR, colorBlue, 1); Thomas

RE: [amibroker] Re: Display Current Time on Chart

2008-11-27 Thread Thomas Z.
Hello, RequestTimedRefresh( 1 ); Title = Current Time = + Now( format = 2 ); Use the interval() function to calculate the remaining seconds. Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pete Sent: Friday, November 28, 2008 6:37 AM

RE: [amibroker] lowestsince?

2008-11-21 Thread Thomas Z.
Hi, it returns the lowest close since the second recent Macd - zero cross. Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of faked Sent: Friday, November 21, 2008 9:42 PM To: amibroker@yahoogroups.com Subject: [amibroker] lowestsince? Hi

RE: [amibroker] Adding custom metrics

2008-11-17 Thread Thomas Z.
(); } System... 2008/11/16 İlhan Ketrez [EMAIL PROTECTED] Hello,   Not complete yet but AddToComposite hint seems to be enough for me.. Thank you very much. 2008/11/16 Thomas Z. [EMAIL PROTECTED] Hello, it is be possible. You have to store the CCI Value through AddToComposite for each symbol and have

RE: [amibroker] Adding custom metrics

2008-11-17 Thread Thomas Z.
is the link: http://finance.groups.yahoo.com/group/amibroker/message/119866   Thank you again to everybody for sharing their knowloedge in the group.   Best regards, Ilhan Ketrez     On Mon, Nov 17, 2008 at 8:30 PM, Thomas Z. [EMAIL PROTECTED] wrote: Hi, I have fixed your code: Buy = Cross( C, MA

RE: [amibroker] Adding custom metrics

2008-11-15 Thread Thomas Z.
Hello, it is be possible. You have to store the CCI Value through AddToComposite for each symbol and have to load it in the CBI through the foreign function. Additionally you have to use a loop to iterate through all bars and all closed trades to add the CCI value from the bar where the trade

RE: [amibroker] Re: Pattern Explorer Add-In

2008-10-16 Thread Thomas Z.
Hello, sorry, i was out of office. Kind regards, Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of awbe2005 Sent: Thursday, October 16, 2008 2:29 PM To: amibroker@yahoogroups.com Subject: [amibroker] Re: Pattern Explorer Add-In --- In

RE: [amibroker] Bar chart without openprice

2008-09-13 Thread Thomas Z.
Hi, PlotOHLC(C, H, L, C, O == C Chart, colorBlack, 128); Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of awbe2005 Sent: Saturday, September 13, 2008 12:56 PM To: amibroker@yahoogroups.com Subject: [amibroker] Bar chart without

RE: [amibroker] Re: Bar chart without openprice

2008-09-13 Thread Thomas Z.
very much. What is 128 for? --- In amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com , Thomas Z. [EMAIL PROTECTED] wrote: Hi, PlotOHLC(C, H, L, C, O == C Chart, colorBlack, 128); Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com mailto:amibroker

RE: [amibroker] Re: Back Test / Forward Test vs REALITY

2008-08-28 Thread Thomas Z.
Hi, under normal circumstances you will probably have 1 pip. However during news it can be really more. Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ozzyapeman Sent: Thursday, August 28, 2008 7:42 PM To: amibroker@yahoogroups.com

RE: [amibroker] Position Size Question

2008-07-29 Thread Thomas Z.
Hello, basically you can set it for every bar(entry) separately. Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of slipthruthecracks Sent: Tuesday, July 29, 2008 7:01 PM To: amibroker@yahoogroups.com Subject: [amibroker] Position Size

RE: [amibroker] Easy question again

2008-07-21 Thread Thomas Z.
Hello, You can do this with the following code: Period = 20; LowestClose= LLV(C, Period); RSIatLowestClose = ValueWhen(LowestClose, RSI()); CurCloseToPastClose = C / LowestClose; CurRSI_To_RSIatLowestClose = RSI() / RSIatLowestClose; Thomas www.PatternExplorer.com From:

RE: [amibroker] Easy question again

2008-07-21 Thread Thomas Z.
Thomas Z. [EMAIL PROTECTED]: I guess it is possible to get the price, simply by writting ValueWhen(LowestClose, Close); right? Yes, correct. You can also even get any other value. There is an additional optional parameter that allows to get the value of the last n-th recent occurrence. Example

RE: [amibroker] What is your Largest AFL file?

2008-07-08 Thread Thomas Z.
Hello Ken, My system framework includes 4800 lines. A Backtest over my complete futures portfolio (41 symbols) takes approximately 30 seconds. So there are no problems also even with a large amount of code lines. However it also depends on the type of calculation that your code does and as

RE: [amibroker] Quick code question please

2008-04-27 Thread Thomas Z.
Hello, one quick idea: AbsHighDiff = abs(H - Ref(H, -1)); Dev = AbsHighDiff / (0.01 * H); ASH = Dev 1; // Almost same high // Absolut difference between current // and past High is less then 1% // compared to current High Filter = ASH; AddColumn(ASH, ASH); AddColumn(Dev, Dev); Plot(Dev,

RE: [amibroker] Quick code question please

2008-04-27 Thread Thomas Z.
= Ref ( High, -1 ); Sell = L Ref(LLV(L,2),-1); SellPrice = Ref(LLV(L,2),-1); Short = tblyesterday AND LowerLow; ShortPrice = Ref ( Low, -1 ); Cover = H Ref( High, -2 ); On Sun, Apr 27, 2008 at 10:07 AM, Thomas Z. [EMAIL PROTECTED] wrote: Hello, one quick idea: AbsHighDiff = abs(H - Ref(H

RE: [amibroker] Quick code question please

2008-04-27 Thread Thomas Z.
= Dev Error 29. Variable 'dev' used without having been initialized. - On Sun, Apr 27, 2008 at 12:14 PM, Thomas Z. [EMAIL PROTECTED] wrote: You could use tbh = Dev 1; // where 1 can be modified. As lower this value as smaller the difference. Thomas www.PatternExplorer.com

RE: [amibroker] Quick code question please

2008-04-27 Thread Thomas Z.
] Quick code question please Thanks Can anyone show me how I can specify pips and not percentage? On Sun, Apr 27, 2008 at 3:42 PM, Thomas Z. [EMAIL PROTECTED] wrote: Of course you need the other code lines too: AbsHighDiff = abs(H - Ref(H, -1)); Dev = AbsHighDiff / (0.01 * H); tbh = Dev 1

RE: [amibroker] Pattern Searching within AB

2008-02-26 Thread Thomas Z.
Hello, take a look on my website: www.PatternExplorer.com Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chorlton_c_hardy Sent: Wednesday, February 27, 2008 5:18 AM To: amibroker@yahoogroups.com Subject: [amibroker] Pattern Searching

RE: [amibroker] AmiBroker 5.05.1 BETA

2008-02-12 Thread Thomas Z.
Hello Tomasz, i'm surprised about the Walk Forward optimizaton. It's really excellent. Is it maybe already somehow possible to opimize for custom backtest stats or do you plan to implement it? Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf

RE: [amibroker] Charting - Priority for Trading Arrows?

2008-02-10 Thread Thomas Z.
Hi, you could try graphzorder = 1; Even the order in which you are ploting is important. Thomas www.PatternExplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of david.weilmuenster Sent: Sunday, February 10, 2008 5:23 PM To: amibroker@yahoogroups.com Subject:

AW: [amibroker] Loop within loop

2008-01-26 Thread Thomas Z.
Hello, i have modified your code and removed the k-loop which makes it easier. I haven't fully checked everything but it seems to work correct. Slippage needs to be implemented. Let me know if it works as expected. I have added shapes and a stop line. Buy = 0; Sell = 0; Stop = Null; StopArray =

AW: [amibroker] Loop within loop

2008-01-26 Thread Thomas Z.
Hello, i have added the SetBarsRequired function. Please use the attached file. Even the code format is correct, compared to Rich-Text. Thomas www.PatternExplorer.com Von: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von cristianc22 Gesendet: Samstag, 26. Jänner 2008 16:13

AW: [amibroker] Re: Loop within loop

2008-01-26 Thread Thomas Z.
how it works. Thanks again, Cristian --- In amibroker@yahoogroups.com, Thomas Z. [EMAIL PROTECTED] wrote: Hello, i have modified your code and removed the k-loop which makes it easier. I haven't fully checked everything but it seems to work correct. Slippage needs to be implemented. Let

AW: [amibroker] Re: Loop within loop

2008-01-26 Thread Thomas Z.
. It is working perfectly. It does what I need it to do. I am running some optimizing now with different stoploss and target prices. --- In amibroker@yahoogroups.com, Thomas Z. [EMAIL PROTECTED] wrote: Hello Christian, i've sent it to your private mail address. Thomas www.PatternExplorer.com

RE: [amibroker] simulator problems

2008-01-07 Thread Thomas Z.
Hello, there is already a build-in Simulator called Bar Replay. You can find it under Tools - Bar Replay Kind regards Thomas Zmuck www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Sent: Sunday, January 06, 2008 6:06 PM To:

RE: [amibroker] Question on ValueWhen usage

2008-01-02 Thread Thomas Z.
Hello, basically your code checks if current close is than current close. Therefore you can't receive buy signals. Not sure what you are trying to code, but probably you want to buy when the close is 10% below the highest close from the last 250 bars. The following code would do this: HC =

RE: [amibroker] hard coding when to trade open/close

2008-01-01 Thread Thomas Z.
Hello, yes, you can do this through using BuyPrice, SellPrice, ShortPrice, CoverPrice Example to buy always on open price. BuyPrice = 0pen; Example for symbol based BuyPrice: BuyPrice = IIf(Name() == SymbolA, Open, IIf(Name() == SymbolB, Close, Close)); Kind regards Thomas Zmuck

RE: [amibroker] Finding a valuewhen

2007-12-28 Thread Thomas Z.
Hello, maybe the code below makes what you are trying to do: BuyStop = ValueWhen(L == LLV(L,10),H,1); Plot(C, C, colorLightBlue, 128); Plot(BuyStop, BuyStop, colorGreen, 1); Kind regards Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [amibroker] What am I overlooking in generating color bar???

2007-10-31 Thread Thomas Z.
Not sure how the final logic should be, but probably you can figure it out by using a loop as shown below: for(i = 2; i BarCount; i++) { if(V3[i-1] 0 AND V3[i-1] V3[i-2]) Color[i] = colorGreen; else Color[i] = colorRed; } Kind regards, Thomas Zmuck www.PatternExplorer.com

RE: [amibroker] Why does it take so long to apply edits?

2007-09-04 Thread Thomas Z.
Hello, Maybe you are calculating a complete array inside a loop. Post your loop to check. Kind regards Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Brown Sent: Tuesday, September 04, 2007 11:25 PM To:

RE: [amibroker] getting an error in my if statement

2007-08-25 Thread Thomas Z.
You need a loop and then you could write if(barsback[i] 6) The other way would be to use IIF() Regards Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lifes_student_1 Sent: Saturday, August 25, 2007 8:28 PM To: amibroker@yahoogroups.com

RE: [amibroker] Re: OLE: How to save reports ?

2007-05-30 Thread Thomas Z.
not understanding what you're trying to do.. Are you wanting to retrieve the watchlist number being backtested in the backtest AFL so that you can retrieve the tickers? d _ From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Z. Sent: Wednesday, May 30, 2007 12:39

RE: [amibroker] Re: Timeframe seting.

2007-05-30 Thread Thomas Z.
Hello, The reason that you haven't received any response is that there is a very detailed description in the AmiBroker help which is necessary to read in order to understand and use the time frame functions. Look for: Multiple Time Frame support in AFL Than post your code if you have troubles.

RE: [amibroker] Re: Strange error message: Außerh alb des Bereichs

2007-05-22 Thread Thomas Z.
Bereichs SetBarsRequired(10,10); On May 22, 2007, at 12:50 PM, Thomas Z. wrote: Hi Dennis, as far as I see in the preferences it is no more possible to deactivate Quick AFL. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf

RE: [amibroker] Re: opposite of NULL available ?

2007-05-14 Thread Thomas Z.
value) and go from there... Joseph Biran -Original Message- From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Z. Sent: Sunday, May 13, 2007 12:20 AM To: amibroker@yahoogroups.com Subject: RE: [amibroker

RE: [amibroker] opposite of NULL available ?

2007-05-13 Thread Thomas Z.
: Sunday, May 13, 2007 1:22 AM Subject: RE: [amibroker] opposite of NULL available ?   !NULL or NOT NULL  ??   Joseph Biran From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Z. Sent

RE: [amibroker] opposite of NULL available ?

2007-05-13 Thread Thomas Z.
available ? Thomas, Are you asking for a really big number like infinity? 1/0? Dennis On May 13, 2007, at 3:19 AM, Thomas Z. wrote: Hello, i would like to initialize a variable (short stop) of my loop with endless value, not search if a value is endless. Is there any way ? Otherwise I

RE: [amibroker] How to find the second lowest Low of the donchian channel ?

2007-05-12 Thread Thomas Z.
Hello Bill, thanks for your help. I have tried a similar way but the problem is that it would detect it always when a new low is detected. I need to know the at every bar in the chart the 2nd lowest low. Yesterday I thought that I know the solution, but I have seen now that it isn't correct. Can

[amibroker] opposite of NULL available ?

2007-05-12 Thread Thomas Z.
Hello, does anyone know if the opposite of NULL is available ? I want to use an unlimited value inside my loop to start. Thomas http://www.patternexplorer.com/ www.patternexplorer.com

RE: [amibroker] How to find the second lowest Low of the donchian channel ?

2007-05-11 Thread Thomas Z.
Hello, i have figured it out myself already. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Sent: Friday, May 11, 2007 3:21 PM To: amibroker@yahoogroups.com Subject: [amibroker] How to find the second lowest Low of the donchian

RE: [amibroker] Re: Formula doesn't work on 15 minute chart

2007-05-06 Thread Thomas Z.
eliminated the condition1b and condition11b both and I still do not get any trades. Tom --- In amibroker@yahoogroups.com, Thomas Z. [EMAIL PROTECTED] wrote: Hi Tom, It works fine here, but only if I unmark the Condition1b. As far as I see the Value is to high. Cond1=Condition1a

RE: [amibroker] Re: Formula doesn't work on 15 minute chart

2007-05-05 Thread Thomas Z.
Hi Tom, It works fine here, but only if I unmark the Condition1b. As far as I see the Value is to high. Cond1=Condition1a;// AND Condition1b; Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of professor77747 Sent: Saturday, May 05, 2007 6:33

RE: [amibroker] OLE - resize report window

2007-05-03 Thread Thomas Z.
Hi Dingo, thanks, i will do it with AutoIt. Thomas http://www.patternexplorer.com/ www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dingo Sent: Thursday, May 03, 2007 4:58 PM To: amibroker@yahoogroups.com Subject: RE: [amibroker] OLE -

RE: [amibroker] AmiBroker 4.94.0 BETA released

2007-05-03 Thread Thomas Z.
WOW Really amazing, thanks a lot ! Thomas www.patternexplorer.com -Original Message- From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Janeczko Sent: Thursday, May 03, 2007 6:26 PM To: amibroker@yahoogroups.com Subject: [amibroker] AmiBroker 4.94.0 BETA

RE: [amibroker] OLE - resize report window

2007-05-03 Thread Thomas Z.
Dingo, do you have any idea how i could automatically start the AutoIt script after the OLE script ? Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Z. Sent: Thursday, May 03, 2007 5:35 PM To: amibroker@yahoogroups.com Subject: RE

RE: [amibroker] OLE - resize report window

2007-05-03 Thread Thomas Z.
Of Thomas Z. Sent: Thursday, May 03, 2007 12:36 PM To: amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com Subject: RE: [amibroker] OLE - resize report window Dingo, do you have any idea how i could automatically start the AutoIt script after the OLE script ? Thomas

RE: [AmiBroker] AmiBroker 4.91.0 BETA release caused problem w Pattern Explorer

2007-04-05 Thread Thomas Z.
Hello, i have made the PatternExplorer compatible with Amibroker 4.91 beta. Please download the new release from the website: http://www.patternexplorer.com Kind Regards Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Don Lindberg Sent:

RE: [amibroker] Use AFL to do intraday testing

2007-03-31 Thread Thomas Z.
As far as i know it is only possible through Settimeframe function. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dralexchambers Sent: Saturday, March 31, 2007 4:32 PM To: amibroker@yahoogroups.com Subject: [amibroker] Use AFL to do

RE: [amibroker] Re: forex daily data

2007-03-27 Thread Thomas Z.
realtime give me too. tks --- In amibroker@yahoogroups.com, Haresh Patel [EMAIL PROTECTED] wrote: I request u to please send me MT3 and MT4 Plugin for Amibroker --- In amibroker@yahoogroups.com, Thomas Z. tzg@ wrote: I can send you plugins for MT3 and MT4. Just send me

RE: [amibroker] Re: forex daily data

2007-03-27 Thread Thomas Z.
PROTECTED] On Behalf Of hareshbhai patel Sent: Monday, March 26, 2007 7:19 PM To: amibroker@yahoogroups.com Subject: RE: [amibroker] Re: forex daily data HAVE U SENT IT AS ATTACHMENTS??? IF SO YES, THERE IS NO ANY ATTACHMENTS, SIR, PL CHECK IT Thomas Z. [EMAIL PROTECTED] wrote: I have sent

RE: [amibroker] Re: forex daily data

2007-03-27 Thread Thomas Z.
instructions as per readme file, but failed. I request you to pl guide me more and oblige sir. Have a nice day Thomas Z. [EMAIL PROTECTED] wrote: Yes, as attachments to you privately. It contains two files with about 1 MB. Please contact me privately if you haven’t received it, I will try

RE: [amibroker] Re: forex daily data

2007-03-26 Thread Thomas Z.
and MT4 Plugin for Amibroker --- In amibroker@yahoogroups.com, Thomas Z. [EMAIL PROTECTED] wrote: I can send you plugins for MT3 and MT4. Just send me a private email if you are interested. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED

RE: [amibroker] Hold and Valuewhen functions

2007-03-21 Thread Thomas Z.
I think you are wondering because setups on following bars overwrite the first setup and therefore they are producing new setup prices. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bernardedmond01 Sent: Wednesday, March 21, 2007 4:15 AM

RE: [amibroker] Import list

2007-03-20 Thread Thomas Z.
Hello, there are very detailed instructions in the amibroker help. Search for import ascii Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flydbus320 Sent: Tuesday, March 20, 2007 2:52 PM To: amibroker@yahoogroups.com Subject: [amibroker]

RE: [amibroker] Is this code for CROSS search ok? Help please

2007-03-16 Thread Thomas Z.
Hello, You don't need a loop for that. Try the following code. It gives you a buy signal when the cross happened in the last 7 bars. And in explore mode it shows you the number of bars since the cross happened. indicator1 = MACD(); indicator2 = Signal(); BarsSinceCross =

RE: [amibroker] 15min data to Daily

2007-03-14 Thread Thomas Z.
Hello Alex, Ed has posted a code recently, just change your start and end time. startTime = 153000; EndTime = 163000; // assign an array tt having a value 1 inside the interval tt = IIf(TimeNum() = startTime AND TimeNum() = endTime,1,0); // high within interval htt = IIf(TimeNum() =

RE: [amibroker] AFL - screen for outliers

2007-03-12 Thread Thomas Z.
Hello Ara, i have checked your code and it works. Maybe you have different parameter values in AA and Chart, because they are not connected. So If you change your NumDevs parameter in AA, it will not be changed on the chart and if you change it in the chart, it will not be changed in AA. Thomas

RE: [amibroker] HELP IN WRITING REVERSAL FORMULA

2007-03-07 Thread Thomas Z.
Hi, This one will do the job: Buy = Low==LLV(L,6) AND Close Ref(Close,-1); Sell = High == HHV(H,6) AND Close Ref(Close,-1); Plot(C,C,colorLightBlue,styleBar); PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-12); PlotShapes(Sell*shapeDownArrow,colorRed,0,H,-12); Thomas www.patternexplorer.com

RE: [amibroker] Re: HELP IN WRITING REVERSAL FORMULA

2007-03-07 Thread Thomas Z.
, 2007 4:52 PM To: amibroker@yahoogroups.com Subject: [amibroker] Re: HELP IN WRITING REVERSAL FORMULA --- In amibroker@yahoogroups.com, Thomas Z. [EMAIL PROTECTED] wrote: Hi, This one will do the job: Buy = Low==LLV(L,6) AND Close Ref(Close,-1); Sell = High == HHV(H,6) AND Close Ref(Close

RE: [amibroker] EMAs

2007-03-05 Thread Thomas Z.
Is it a huge difference ? Maybe the prices are different or missing data in one of them ? You could make a sum of the previous 200 closing prices and compare that. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rmurphynz Sent: Monday,

RE: [amibroker] Real time data link for nse stocks as Holi Gift from me

2007-03-04 Thread Thomas Z.
You just need to wait a few seconds. Try this link and wait about 5-10 seconds. http://www.4shared.com/file/10938127/95db1c0a/INTRA_15MIN.html Thomas http://www.patternexplorer.com/ www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sanjay

RE: [amibroker] email from AB

2007-02-27 Thread Thomas Z.
Hello Ara, i can confirm that it also doesn't work here. I have tested it on Windows XP, IE 6.0, Amibroker 4.90.3 and another partition with Windows Vista, IE 7.0, Amibroker 4.90.4 However alert email works fine. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL

RE: [amibroker] Ploting price related line

2007-02-18 Thread Thomas Z.
Plot(C,C,3,128); Plot(IIf(Close 20 AND Close 28,25,Null),,colorDarkGrey,styleNoTitle); Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jflynnnz Sent: Sunday, February 18, 2007 8:48 AM To: amibroker@yahoogroups.com Subject:

RE: [amibroker] Re: historical data for oel and gold needed

2007-02-18 Thread Thomas Z.
Thomas, The LME sells their data and also references other providers. http://www.lme.co.uk/dataprices.asp You might get what you want there. BrianB2. --- In amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com , Thomas Z. [EMAIL PROTECTED] wrote: Hello, does anyone know a source

[amibroker] historical data for oel and gold needed

2007-02-17 Thread Thomas Z.
Hello, does anyone know a source to download historical data for oel and gold ? Ideally 5 min data and at least 6-12 months. Thanks in advance ! Thomas www.patternexplorer.com

RE: [amibroker] AB-email

2007-02-15 Thread Thomas Z.
Hello, here also the same, however on my XP installation i use IE 6.0 currently. Thomas www.patternexplorer.com From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Yarwood Sent: Thursday, February 15, 2007 2:29 PM To: amibroker@yahoogroups.com Subject: RE:

RE: [amibroker] Please help me to Plot one Arrow

2007-02-13 Thread Thomas Z.
Hi, you need to redifine your buy condition to assure that the buy condition is not true all the bars. Another way would be to define a real Sell condition. This would allow you to use the exrem function. The code below hides all additional buys for 10 bars. Buy = MDI(14) 30 AND

  1   2   >