[amibroker] Re: Req Can we have afl showing gravity bars with color? please help

2010-09-06 Thread Mike
g-strategy/Using_The_Heikin_Ashi_Technique_D_Valcu.pdf I have not used this indicator, so do your own research. But, yes, it certainly can be done. Mike --- In amibroker@yahoogroups.com, "ford7k" wrote: > > > Hi afl experts with exposure along multiple platforms, > A friend of mine uses tr

[amibroker] Re: AllowSameBarExit

2010-09-03 Thread Mike
on whether your system is allowed to exit or not. Mike --- In amibroker@yahoogroups.com, "palward" wrote: > > I am quite puzzled by the following; hope someone can help. > I am designing a stock system that exits on the close one bar after an > established open position. Bel

[amibroker] Re: Performance

2010-08-31 Thread Mike
category. If you want to include your own charts in the report, you can add any AFL file to the directory \Formulas\Report Charts For example; You could write your own table chart that displayed the average trade result for each month rather than the change in equity. In the example above, every monthly cell in the table would show 50%. Mike

[amibroker] Re: Definitive Guide to AFL

2010-08-30 Thread Mike
Herman made a typo in his response, it should have read Howard Bandy, not Howard Bundy. You can review the content of his books here: http://www.blueowlpress.com/#books Mike

[amibroker] Re: Performance

2010-08-29 Thread Mike
profit/loss % Winners profit/loss % Losers profit/loss % etc. The only time the values would be different would be if too low an initial equity prevented you from entering a trade compared to a higher initial equity. Mike --- In amibroker@yahoogroups.com, tstudent wrote: > > Think to

[amibroker] Re: Misunderstanding of Arrays

2010-08-26 Thread Mike
The important thing to realize is that Ref returns an *array*. The "if" statement is expecting a *single* boolean value, not an array of booleans. See common coding mistakes in the user guide: http://www.amibroker.com/guide/a_mistakes.html Mike --- In amibroker@yahoogroups.com,

[amibroker] Re: Writing the openpos.Handle value

2010-08-26 Thread Mike
penpos.Handle ) ); If you have an open ticket, it would be worth adding StrFormat and _TRACE to the fix request so that they all work for doubles. Mike --- In amibroker@yahoogroups.com, "whitneybroach" wrote: > > Just as a follow-up, I heard from Tomasz off-line. > > At the m

[amibroker] Re: Help understanding difference between Old Backtester vs Individual Backtest

2010-08-24 Thread Mike
ht be affecting your trades is that the old backtester does not recognize scale-in/out, as discussed in the pyramiding section of the guide: http://www.amibroker.com/guide/h_pyramid.html Here are some reporting differences: http://www.amibroker.com/guide/w_report.html Mike --

[amibroker] Re: Date of a Past Price Bar

2010-08-24 Thread Mike
Try this: printf (tname + " saw a highest Close of " + WriteVal(HighestV, 1.2) + ", " + WriteVal(HighestS, 1.0) + "-bars ago on " + NumToStr(ValueWhen(Close == HighestV, DateTime()), formatDateTime)); Mike --- In amibroker@yahoogroups.com, Mubashar Virk wrote: &

[amibroker] Re: Optimizer target with genetic optimization

2010-08-24 Thread Mike
27;ve pointed out, the results would be very misleading. Mike --- In amibroker@yahoogroups.com, "bistrader" wrote: > > Mike, > > I now understand via Tomasz and your replies. Yet, I tried without custom > backtester code and by that I means that I typed CAR*(10

[amibroker] Re: Optimizer target with genetic optimization

2010-08-24 Thread Mike
thematical formula. In your example you would need to enter CARTimes100LessMdd as the optimization target in the settings (i.e. the same value passed as the Title argument to bo.addcustommetric). Mike --- In amibroker@yahoogroups.com, "bistrader" wrote: > > Mike and others,

[amibroker] Re: Optimizer target with genetic optimization

2010-08-23 Thread Mike
Go to the Automatic Analysis window, click on the Settings... button, change to the Walk Forward tab, change the value for "Optimization target". Mike --- In amibroker@yahoogroups.com, "DougOriard" wrote: > > When running one of the genetic optimizers, like cmae or

[amibroker] Plotting or otherwise identifying Scale in, Scale out Trade Points

2010-08-22 Thread Mike
I have no difficulty running scale in, scale out systems, but I need to see where the scale in scale out points occur, not just the final closed trades. Anyone have a solution? Thank you. Mike

[amibroker] Re: Max. Drawdowns greater than "L. Tot. Loss"?

2010-08-16 Thread Mike
e can also be shown where loser total loss is less in the sense of being more negative than max system drawdown). However, if you feel that you've solved your problem, then no need to reply further. Mike --- In amibroker@yahoogroups.com, "michaels_musings" wrote: > >

[amibroker] Re: Max. Drawdowns greater than "L. Tot. Loss"?

2010-08-16 Thread Mike
at the charts for each of the positions that were open at that date to see which symbols were dragging equity down and which were pulling it up. Mike --- In amibroker@yahoogroups.com, "michaels_musings" wrote: > > Hi Keith, > > I think you missed what the data is say

[amibroker] Re: How to configure CAME to look for a Optimization target MINIMUM

2010-08-08 Thread Mike
The drop list from which to choose the metric for optimization is an editable field. Just type in the name (case sensitive) of your metric instead of choosing from the default list of metrics. Mike --- In amibroker@yahoogroups.com, "Matthias" wrote: > > > > Hi, >

[amibroker] Re: Formula assistance

2010-08-04 Thread Mike
le to find the exact pivot points and any backtest based on looking into the future will give grossly exagerated results. Try doing a search in the group for keywords such as pivot, etc. to get an idea of how people are handling a similar problem. Mike --- In amibroker@yahoogroups.com, &qu

[amibroker] Re: Exit if L < L of Entry Bar

2010-08-04 Thread Mike
You're right. Sorry, I was not paying close enough attention. That's a pretty good reason to experiment with the ApplyStop approach. Though, ApplyStop can be difficult to understand at times. Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > T

[amibroker] Re: Exit if L < L of Entry Bar

2010-08-04 Thread Mike
I believe that your understanding of stopTypeLoss is correct. stopTypeTrailing will move up over time to hang from from new highest highs. So no, stopTypeTrailing is not tied to the entry bar values. Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Th

[amibroker] Re: Query of Data

2010-08-04 Thread Mike
Use Automatic Analysis window to run an Exploration on all quotations of all symbols. Then use AddColumn to add whatever columns you want. http://www.amibroker.com/guide/h_exploration.html You can use the File button to export as a .csv file. Mike --- In amibroker@yahoogroups.com, Vishvesh

[amibroker] Re: Exit if L < L of Entry Bar

2010-08-04 Thread Mike
). However, Buy = High >= 50; Sell = 50 > High; will produce redundant signals (since the price can remain above the threshold for an extended duration) and using BarsSince will not give you the value at the time of the original Buy, but rather at the time of the most recent redundant signal.

[amibroker] Re: How to close at the same day?

2010-08-04 Thread Mike
e forum. Using timeframe functions might work here too. But again, I haven't played with those yet either. Mike --- In amibroker@yahoogroups.com, "chuck_win" wrote: > > Mike, > > If I use 5-m data for intraday trading, how to sell at close on same day? > > Thanks. &g

[amibroker] Re: Exit if L < L of Entry Bar

2010-08-04 Thread Mike
You could probably just use ApplyStop with a dynamic stop level. e.g. (untested) ApplyStop(stopTypeLoss, stopModePoint, BuyPrice - Low, ...); Alternatively, you could try ValueWhen combined with ExRem e.g. (untested) Sell = Low < ValueWhen(ExRem(Buy, Sell), Low); Mike --- In amibro

[amibroker] Re: FW: 64 bit Results

2010-08-03 Thread Mike
the Harpertown's to shame. So I can't imagine how incredibly fast that setup would be. Mike --- In amibroker@yahoogroups.com, "af_100" wrote: > > Hello, > > Everybody needs more power > I've got some unique requirements I have been struggling with.

[amibroker] Re: Set specific symbol by code to use in optimization?

2010-08-03 Thread Mike
ortEx.exe for "Command" (e.g. C:\Program Files\AmiBroker\ReportEx.exe) Enter Reports\results.rlst for "Arguments". Enter the path to AmiBroker root directory for "Initial Directory" (e.g. C:\Program Files\AmiBroker) Click on Close Now you can open the Reports anytime

[amibroker] Re: Set specific symbol by code to use in optimization?

2010-08-03 Thread Mike
Michael, Sorry, I believe that I have mislead you. I suspect that I was thinking about individual backtests, as opposed to individual optimizations. Mike --- In amibroker@yahoogroups.com, "michaels_musings" wrote: > > Uhg! > > Still can't get this to do this

[amibroker] Re: OT: Windiws Mail

2010-07-30 Thread Mike
Ed, I don't use TWS. But, if TWS is 32 bit, are you running with a 32 bit java? Likewise for 64 bit java for a 64 bit TWS (if 64 bit TWS even exists). Mike --- In amibroker@yahoogroups.com, "Edward Pottasch" wrote: > > yes thanks I have checked that before and it even h

[amibroker] Re: Using BuyStop and SellStop orders - How does it work?

2010-07-30 Thread Mike
High >= BuyStop; Mike --- In amibroker@yahoogroups.com, "pcmoxon" wrote: > > Sorry, I don't think I explained myself very well. The issue I am having is > that the BuyStop & SellStop are not being executed in the correct location. > It seems that as soon as a

[amibroker] Re: Definition of backtester object properties

2010-07-28 Thread Mike
://finance.groups.yahoo.com/group/amibroker/message/114784 Mike --- In amibroker@yahoogroups.com, "raymondpconnolly" wrote: > > > > Mike, > > thanks for the info I've spent a week trying to get to the bottom of these > property relationships and unless I missed somethin

[amibroker] Re: Definition of backtester object properties

2010-07-28 Thread Mike
One thing to keep in mind is that open position gains are not added to the Cash property and are thus not available for taking additional positions (i.e. the taking of positions is dependent upon the availability of Cash). http://finance.groups.yahoo.com/group/amibroker/message/148014 Mike

[amibroker] Re: Definition of backtester object properties

2010-07-27 Thread Mike
A reply that I made to an earlier thread might be helpful. Note that despite the verbal description in the link below, I seem to recall that AmiBroker stores bo.MarginLoan as a negative number that gets added to equity. http://finance.groups.yahoo.com/group/amibroker/message/127764 Mike

[amibroker] Re: question for Custom Backter specialists

2010-07-27 Thread Mike
Ed, Try moving the calculation of bi_start inside the CBT code. if (Status("action") == actionPortfolio) { bi_start = ...; } Mike --- In amibroker@yahoogroups.com, "Edward Pottasch" wrote: > > hi, > > I am working on code that allows for the combination o

[amibroker] Re: Trading Systems, Position Sizing and Monte Carlo Analysis

2010-07-26 Thread Mike
ting equity curves to get such information as average performance, best performance, worst performance, etc. Mike --- In amibroker@yahoogroups.com, "Matthias K." wrote: > > Hi, > > > > Indeed this is a very interesting topic. Many thanks go to Howard Bandy, it

[amibroker] Re: New System Question

2010-07-26 Thread Mike
Yup, on one of my builds I have a large side panel fan that sits recessed inside the case pulling air from the outside in. The Thermalright's did not fit and I had to step down to the Zalmans. Mike --- In amibroker@yahoogroups.com, Paul D wrote: > > I actually agree that the T

[amibroker] Re: Yet another new system question/problem

2010-07-24 Thread Mike
Sounds like an overclock gone bad. I wrote my own IO equivalent and came across similar errors when running on an 8 core system overclocked to 4.0 Ghz. Reducing the overclock (and necessary voltages) down to 3.8 Ghz got me back to the races again :) Mike --- In amibroker@yahoogroups.com

[amibroker] Re: New System Question

2010-07-24 Thread Mike
://www.thermalright.com/new_a_page/product_page/product_cpu_cooler_1366.html That was almost 2 years ago, but they were unbeatable then, and one heck of a lot cheaper than all the $$$ that I poured into liquid cooling! However, I did have a lot of fun putting together the liquid cooled system ;) Mike

[amibroker] Re: Just started looking at forex and am frustrated...

2010-07-24 Thread Mike
You can add your own custom metrics and display them with more decimal points. How to add: http://www.amibroker.com/guide/a_custommetrics.html How to control decimal places (sse AddCustomMetric method): http://www.amibroker.com/guide/a_custombacktest.html Mike --- In amibroker@yahoogroups.com

[amibroker] Re: Stop loss / Take Profit on same candles

2010-07-23 Thread Mike
well served by using ApplyStop function. I believe that a profit target stop and a maximum loss stop would accomplish what you describe. http://www.amibroker.com/guide/afl/afl_view.php?id=20 Mike --- In amibroker@yahoogroups.com, "thomasoxford3rd" wrote: > > hello fellow AB

[amibroker] Re: Set specific symbol by code to use in optimization?

2010-07-22 Thread Mike
If you do want to do it by scripting, just pass the correct argument to the Backtest method of the Analysis object and still run against the single watchlist of all desired symbols. Mike --- In amibroker@yahoogroups.com, "Mike" wrote: > > You do not need any scripting to do t

[amibroker] Re: Set specific symbol by code to use in optimization?

2010-07-22 Thread Mike
You do not need any scripting to do that. Just select a watchlist in the AA window then click on the arrow of the Optimize button to choose the old backtester (backtests each symbol one by one, generating unique reports along the way). Mike --- In amibroker@yahoogroups.com, "michaels_mu

[amibroker] Re: Help setting a stop loss

2010-07-22 Thread Mike
want to first make sure that the previous Low was actually lower than the Open! Mike --- In amibroker@yahoogroups.com, "scottr" wrote: > > I would like to code a maximum stop loss that is triggered if the low of the > day hits the low on the day before my entry to a long posi

[amibroker] Re: New System Question

2010-07-22 Thread Mike
ur licence on a more powerful single machine, that happens to be owned by Amazon and accessed (by one person at a time) over the web, is probably still within the limitations of the licence. Mike --- In amibroker@yahoogroups.com, "michaels_musings" wrote: > > --- In amibr

[amibroker] Re: New System Question

2010-07-22 Thread Mike
vendor, some use VNC others use remote desktop. If that is sufficient for your needs, then it would be a viable alternative. I don't do real time trading, so can't answer that. Mike --- In amibroker@yahoogroups.com, "Rob" wrote: > > But Mike, that would never be real

[amibroker] Re: New System Question

2010-07-22 Thread Mike
allel. For that you must purchase license for every machine you are using simultaneously." http://www.amibroker.com/kb/2008/07/05/single-license-use-on-multiple-computers/ Mike --- In amibroker@yahoogroups.com, "michaels_musings" wrote: > > --- In amibroker@yahoogroups.com, &

[amibroker] Re: Backtest Report Long/Short trades columns?

2010-07-22 Thread Mike
short = more signals = different positions taken = different redundant signals skipped = different outcome. Mike --- In amibroker@yahoogroups.com, Keith McCombs wrote: > > Ron -- > You are using portfolio back testing. So, when your system goes long, > it is reinvesting profits f

[amibroker] Re: Combining RSI custom and Divergence indicator

2010-07-21 Thread Mike
Bharat, It's pretty self explanatory. If you're still having trouble, post sample code or send it to support. Mike --- In amibroker@yahoogroups.com, "bharat" wrote: > > mike, > If you have tried it in any of your AFL.pl post it here so that I can > im

[amibroker] Re: Combining RSI custom and Divergence indicator

2010-07-21 Thread Mike
You haven't experimented enough ;) Start by setting all plots to styleOwnScale. Mike --- In amibroker@yahoogroups.com, "bharat" wrote: > > I have already experimented with styleOwnScale and styleLeftAxisScale but it > did not solve my problem so I have posted my

[amibroker] Re: How to configure CAME to look for a Optimization target MINIMUM

2010-07-19 Thread Mike
custom metrics for more detail: http://www.amibroker.com/guide/a_custommetrics.html Set custom target on WFA settings (applies to regular optimization too, not just walk forward): http://www.amibroker.com/kb/2008/02/12/getting-started-with-automatic-walk-forward-optimization/ Mike --- In

[amibroker] Re: pl, give logic

2010-07-19 Thread Mike
BuyPrice = Close; SellPrice = High; Note that what you are asking for is not realistic. You can never know what the High will be until after it has happened. Any backtest results you get will be grossly exaggerated. Mike --- In amibroker@yahoogroups.com, "prasantaroy36&qu

[amibroker] Re: Combining RSI custom and Divergence indicator

2010-07-18 Thread Mike
Read the documentation for Plot and use one of styleOwnScale or styleLeftAxisScale for one of the Plots such that it does not share the same scale as the other. http://www.amibroker.com/guide/afl/afl_view.php?id=114 Mike --- In amibroker@yahoogroups.com, Infinity Home Loans wrote: > >

[amibroker] Re: Sum and Stdev , wierd behaviour of stdev

2010-07-15 Thread Mike
I agree. I never noticed that page in the guide before. Description of the parameters at the point of the actual function descriptor would be far more discoverable. Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Hello, > > A short definition

[amibroker] Re: Sum and Stdev , wierd behaviour of stdev

2010-07-14 Thread Mike
ng that the period is different at each bar. Compare that to the Fixed plot which is constant at a level of 5. Mike --- In amibroker@yahoogroups.com, "aaryan111" wrote: > > I guess, sum() is behaving the ideal way :), > > The most important thing here is, > AMIBROKER

[amibroker] Re: Sum and Stdev , wierd behaviour of stdev

2010-07-14 Thread Mike
Are you sure that it is not just taking the last value of the array, as opposed to the corresponding value. All documented usage shows it taking a scaler. You might want to pay very close attention to what you're getting there. Mike --- In amibroker@yahoogroups.com, "aaryan111"

[amibroker] Re: Backtest - reference account balance to workout lots size

2010-07-14 Thread Mike
SetOption). Second, the multiple equity values may be due to beginning and ending equity for the bar. Check to see if the position size makes sense using the final equity of the previous bar in the calculation, in which case that would confirm both points above. Mike --- In amibroker@yahoo

[amibroker] Re: Req Help me get afl code line for % change in price

2010-07-14 Thread Mike
Have a look at the user guide for ROC http://www.amibroker.com/guide/afl/afl_view.php?id=126 Mike --- In amibroker@yahoogroups.com, "ford7k" wrote: > > Hi afl experts > > I run my scan or exploration. > I get c,close price. > I cant get % change > % change

[amibroker] Re: Am I in a trade? Am I long or short?

2010-07-14 Thread Mike
uration of longs. Same principle for shorts. Mike --- In amibroker@yahoogroups.com, "notanaiqgenius" wrote: > > > > > > > Hi Spacebass, > > It depends on whether you are trading multiple symbols. If you are trading > multiple symbols, then

[amibroker] Re: checking MA when buying

2010-07-13 Thread Mike
same bar as a green up arrow. Plot(Close, "Price", colorDarkGrey, styleBar); Plot(MAFlag, "MAFlag", colorBlue, styleHistogram | styleOwnScale); PlotShapes(ExRem(Buy, Sell) * shapeUpArrow, colorGreen); PlotShapes(ExRem(Sell, Buy) * shapeDownArrow, colorRed); Mike --- In amibr

[amibroker] Re: Backtest - reference account balance to workout lots size

2010-07-13 Thread Mike
. 3. See the user guide for adding custom metrics on a trade by trade basis: http://www.amibroker.com/guide/a_custommetrics.html Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Hi Mike, > > Your math is obviously correct. > > Nonetheless, I'

[amibroker] Re: back testing formula: please help me

2010-07-13 Thread Mike
= False; Or to change your settings to be Long only. Same arugment applies for Short only formulas. Mike --- In amibroker@yahoogroups.com, "s.momtaz" wrote: > > hi. i am new in amibroker and also amibroker group. today i want to put a > formula copied from afl library of ami

[amibroker] Re: Coding question

2010-07-13 Thread Mike
Buy = Sum(Close > EMA(Close, 50), 5) == 5; Same idea for Sell. Mike --- In amibroker@yahoogroups.com, "jhjh" wrote: > > How would I go about creating code to establish that my indicator must be X > for Y days before having the appropriate output? > > Simple e

[amibroker] Re: checking MA when buying

2010-07-12 Thread Mike
(i.e. bo.Backtest(1)) since you are not adding individual trade metrics. Mike --- In amibroker@yahoogroups.com, "chuck_win" wrote: > > Hi, > > What I am doing is: > 1). count MA(close, 6) < MA(close, 9) at buy when open gap > %x. > 2). show the count on optim

[amibroker] Re: Backtest - reference account balance to workout lots size

2010-07-12 Thread Mike
FL as g) SetPositionSize(P, spsPercentOfEquity); I haven't run any testing, so check it for yourself. Check also if AmiBroker still behaves if P >= 1. Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Mike, > > Thanks for your reply (I hope I did not

[amibroker] Re: Backtest - reference account balance to workout lots size

2010-07-12 Thread Mike
. including the price multiplier) and you should get what you are wanting. Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Taking another look at the results, I've just noticed that Mike's formula > would "theoretically"

[amibroker] Re: How to buy at the open the next day?

2010-07-12 Thread Mike
1. SetTradeDelays http://www.amibroker.com/guide/afl/afl_view.php?id=137 2. N-bar stop http://www.amibroker.com/guide/afl/afl_view.php?name=applystop 3. User guide main index (also Help from AmiBroker itself) http://www.amibroker.com/guide/ Mike --- In amibroker@yahoogroups.com, "s

[amibroker] Re: checking MA when buying

2010-07-11 Thread Mike
this and, I believe, you would have exactly what you're asking for. You would likely then want to change the names and output strings to refer to MA instead of ATR. But, there would be no further change in logic other than that one line. Mike --- In amibroker@yahoogroups.com, "chuck_w

[amibroker] Re: checking MA when buying

2010-07-11 Thread Mike
exploration: Filter = buyrule; AddColumn(MA(Close, 6), "MA(6)"); http://www.amibroker.com/guide/h_exploration.html Otherwise, add a custom metric to your backtest. Mike --- In amibroker@yahoogroups.com, "chuck_win" wrote: > > Hi, > > I do backtesting, and want t

[amibroker] Re: Optimization issues

2010-07-11 Thread Mike
Also, if you are using a non exhaustive optimizer (e.g. CMAE, Tribes, etc.) there is no guarantee that the optimal solution will be found. Mike --- In amibroker@yahoogroups.com, Howard B wrote: > > Hi AJ -- > > Are the settings the same? > > Are the issues being tested the

[amibroker] Re: Can NOT access MA inside CustomBacktestProc?

2010-07-10 Thread Mike
backtester code. Read the following thread, including Tomasz's descriptions of static arrays, for examples: http://finance.groups.yahoo.com/group/amibroker/message/146164 Mike --- In amibroker@yahoogroups.com, "chuck_win" wrote: > > I try to check MA inside Custom back

[amibroker] Re: Embarrassing question...

2010-07-10 Thread Mike
, or move the main initialization above the procedure usage. http://www.amibroker.com/guide/a_userfunctions.html Mike --- In amibroker@yahoogroups.com, "sidhartha70" wrote: > > I'm going to shame myself by asking a very simple question... why does the > following code pro

[amibroker] Re: Backtest - reference account balance to workout lots size

2010-07-10 Thread Mike
he AA Settings when rounding. SetPositionSize(( pctVolaRisk / 100 ) / ( ATR(period) * pointVal ), spsPercentOfEquity); Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > Mike, > > Just out of interest (as I've already solved this using CBT): > Is it poss

[amibroker] Re: How to add extra fields to the back test report(s) & Results window

2010-07-10 Thread Mike
And, perhaps more directly to your question: http://finance.groups.yahoo.com/group/amibroker/message/146164 Though, if using a newer version of AB, you can use static arrays as mentioned by Tomasz in the the thread. Mike --- In amibroker@yahoogroups.com, "Mike" wrote: > >

[amibroker] Re: How to add extra fields to the back test report(s) & Results window

2010-07-10 Thread Mike
Same answer as 5 hours ago ;) http://finance.groups.yahoo.com/group/amibroker/message/150894 Mike --- In amibroker@yahoogroups.com, "pcmoxon" wrote: > > Hi, can anyone tell me how to add extra fields to a backtest trade list > report and results window? > > For exa

[amibroker] Re: Defining logical range

2010-07-09 Thread Mike
Sorry, the predefined example should have read: varA = a[i]; varB = b[i]; varC = c[i]; not varA = a[index]; ... Mike --- In amibroker@yahoogroups.com, "Mike" wrote: > > To get you on your way to the more important stuff, the quick and dirty > solution would be to just

[amibroker] Re: AddColumn to optimize results?

2010-07-09 Thread Mike
http://www.amibroker.com/guide/a_custommetrics.html Mike --- In amibroker@yahoogroups.com, "chuck_win" wrote: > > I try to collect stats of an optimize by adding a custom column to the > results window. > > Thanks very much in advance. > > Charles >

[amibroker] Re: Defining logical range

2010-07-09 Thread Mike
values from file based on a single optimized variable (e.g. index). This would probably kill performance though. Mike --- In amibroker@yahoogroups.com, "jhjh" wrote: > > Suggestions on how to program the following? > > "a must be less than b, which must be less tha

[amibroker] Re: Usage of BuyPrice = False and SellPrice = False?

2010-07-09 Thread Mike
entry/exit (e.g. Open). In the first case you would effectively be entering/exiting at the Low. In the latter case you would be entering/exiting at perhaps the Open, depending on your settings. Naturally, this would affect the performance and the availability of funds for later trades. Mi

[amibroker] Re: Request: How to Open a Chart and Apply an AFL via OLE

2010-07-09 Thread Mike
t has a LoadTemplate function and a Document property. Again, set the Name property of the Document to change the symbol. Mike --- In amibroker@yahoogroups.com, Progster wrote: > > Hi. > > Using OLE/jscript, I would like to do the following: > > 1.Start AB > 2.C

[amibroker] Re: Backtest - reference account balance to workout lots size

2010-07-09 Thread Mike
SetPositionSize((Risk * 0.01) / (ContractSize * ATR()), spsPercentOfEquity); Mike --- In amibroker@yahoogroups.com, "pcmoxon" wrote: > > Hi, > > I am trying to write some AFL so I can backtest various trading systems for > forex. > > One part of the system i

[amibroker] Re: AmiBroker 5.30.1 64-bit edition (experimental)

2010-07-08 Thread Mike
Dubi, According to Tomasz, CMAE is available in 64 bit. http://finance.groups.yahoo.com/group/amibroker/message/150820 Mike --- In amibroker@yahoogroups.com, "dubi1974" wrote: > > Hi Mike, > > Same machine, same optimization. > I am using Windows 7x64bit. CPU is

[amibroker] Re: AmiBroker 5.30.1 64-bit edition (experimental)

2010-07-08 Thread Mike
Bruce, Thanks for the info. I haven't got around to dissecting that optimizer yet. And, yes, I completely agree that a fixed seed option would be very useful. Mike --- In amibroker@yahoogroups.com, "Bruce" wrote: > > Mike - > > Minor correction and maybe more than

[amibroker] Re: AmiBroker 5.30.1 64-bit edition (experimental)

2010-07-08 Thread Mike
exactly the same number of backtests. Mike --- In amibroker@yahoogroups.com, "dubi1974" wrote: > > Hi, > > I tested it and compared an normal optimization process between 32bit and 64 > bit. On the same formula Amibroker 32-bit took more than 8 hours for the &g

[amibroker] Re: More precise CAGR calculation

2010-07-08 Thread Mike
t was superior to A, which is not at all the case. http://www.investorglossary.com/compound-annual-return.htm Mike --- In amibroker@yahoogroups.com, "engineering_returns" wrote: > > Hello AmiBroker - Experts, > often i do test strategies within a specific date range. The st

*[amibroker] Re: Does Portfolio Backtester always use signal price?

2010-07-07 Thread Mike
Unless, of course, the police yell "ExitAtStop set to 2!" In which case that's exactly what it means :) "ExitAtStop = 2 - check High-Low prices but exit NEXT BAR on regular trade price." Mike --- In amibroker@yahoogroups.com, Keith McCombs wrote: > > '

[amibroker] Re: Optimizer and Backtester losing trades

2010-07-07 Thread Mike
your backtest with detailed reporting (see AA Settings) and you will get a bar by bar breakdown of signals, entries, exits and reason for rejections. Mike --- In amibroker@yahoogroups.com, "michaels_musings" wrote: > > Anyone know how to get the Backtester and Optimizer to include a

[amibroker] Re: Does Portfolio Backtester always use signal price?

2010-07-07 Thread Mike
Trade delays apply only to Buy/Sell/Short/Cover, not stops. The exitatstop argument of ApplyStop dictates the timing of the stop. Mike --- In amibroker@yahoogroups.com, "graphman27" wrote: > > Keith: Well, let's say for example that I use exchange-traded funds that >

[amibroker] Re: Random Entries and Exits?

2010-07-06 Thread Mike
Try this: SetTradeDelays( 1, 1, 1, 1 ); SetPositionSize(2, spsPercentOfEquity); BuyPrice = O; SellPrice = O; Buy = mtRandomA() <= 0.4; // 40% chance of buy Sell = mtRandomA() <= 0.2; // 20% chance of sell Mike --- In amibroker@yahoogroups.com, "spacebass5000" wr

[amibroker] Re: Does running multiple instances of AB increase processing power?

2010-07-02 Thread Mike
/ Probably not much to be gained by doing so. There are examples of older software that did not perform well in a multi core environment, in which case setting the affinity was the solution. More info: http://en.wikipedia.org/wiki/Processor_affinity Mike --- In amibroker@yahoogroups.com, "Rob&qu

[amibroker] Re: How To Extend Arrays Into The Future?

2010-07-02 Thread Mike
Have a look at this link: http://finance.groups.yahoo.com/group/amibroker/message/133629 Mike --- In amibroker@yahoogroups.com, "michaels_musings" wrote: > > Hi Dave, > > As I understand it, you can't. > > The number of bars defines how large any array can

[amibroker] Re: Difference between raw and actual signals

2010-07-02 Thread Mike
http://www.amibroker.com/guide/h_portfolio.html Mike --- In amibroker@yahoogroups.com, "rus" wrote: > > Hello there AB people, > > Could anyone point out the difference between raw and actual signals > generated by the backtest code? > > Thanks, > Dre >

[amibroker] Re: How to mix systems

2010-07-01 Thread Mike
L Library which may be useful: http://www.amibroker.com/members/library/detail.php?id=1225 Mike --- In amibroker@yahoogroups.com, "Matthias" wrote: > > Keith and Mike, > > thank you very much for your helpful postings. Looks like I'll have a long > weekend :).

[amibroker] Re: How to make stops trigger as CLOSE +1

2010-07-01 Thread Mike
a master exploration that #include each of the multiple rule sets. Worse case scenario; remove the ApplyStop functionality from your existing script and keep running it in the backtester for signal generation. Just be sure to use the revised one for actual backtesting when doing system analysis

[amibroker] Re: How to make stops trigger as CLOSE +1

2010-07-01 Thread Mike
blem. If you want to run an Exploration each night to see what you should be trading the next day, just use AddColumn to output the values of BuyTrigger and SellTrigger instead of Buy and Sell respectively. Mike --- In amibroker@yahoogroups.com, "graphman27" wrote: > > I want to simp

[amibroker] Re: How to make stops trigger as CLOSE +1

2010-06-30 Thread Mike
e.g. SetTradeDelays(0, 0, 0, 0); Trigger = ...; Buy = Ref(Trigger, -1); BuyPrice = Close; Your signal still shows up Monday night. But, you don't act on it until Tuesday Close. That's what you're doing in real life anyway, so just make your code show the same. Mike --- In amibr

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread Mike
No. Order doesn't make a difference. Function declarations must come first, before they can be used. Backtesting code does not suffer the same restriction. Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Ok - one last question (sorry ;-) ) - I&#

[amibroker] Re: Simple Question regading OOP

2010-06-29 Thread Mike
It keeps the old value. Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > For my better understanding of OOP: > > When I copy an object property... > > e. g. > > CurrentEquity = bo.Equity; > > ... if the bo.Equity property changes afterw

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread Mike
ar ) ); // units = CurrentEquity * ( systemMMVolatilityPercent / 100 ) / Test[bar]; // sig.PosSize = sig.Price * units; } } bo.ProcessTradeSignals( bar ); } bo.PostProcess(); } Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Thank you Mike. > > My knowledge of th

[amibroker] Re: normalized plot question

2010-06-29 Thread Mike
I think that you're asking for this: firstbar = Status("firstvisiblebar"); Plot(Close / Close[firstbar], "Buy & Hold", colorDarkGrey, styleLine); Mike --- In amibroker@yahoogroups.com, "Chris DePuy" wrote: > > > > I'm trying to plot t

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread Mike
. Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Thank you Mike. > > My knowledge of the custom backtester is still pretty limited (my first > try), although I have been readining everything I could get my hands on. > > Now the ticker symbols the

[amibroker] Re: Percent Volatility Position Sizing

2010-06-28 Thread Mike
). Mike --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Hello, > > I'm *slightly* frustrated here, as I am trying to implement correct Percent > Volatility Position Sizing into AB (let alone Percent Risk Position Sizing > which should be even harder to cod

[amibroker] Re: New 3rd party toolset for AmiBroker

2010-06-24 Thread Mike
actual usage would be a far more useful contribution to the forum. Mike --- In amibroker@yahoogroups.com, "Anthony Faragasso" wrote: > > I agree...all are freely availableThere are other(s) doing the same > thing... > > Do you think any monetary considerations are

  1   2   3   4   5   6   7   8   9   10   >