[amibroker] Re: AUTOMATIC ANALYSIS REPLACE WATCHLIST FEATURE NOT WORKING

2010-09-08 Thread bistrader
the ranking numbers from 1 to the end. --- In amibroker@yahoogroups.com, bistrader bistra...@... wrote: I believe I found a problem with one of AmiBroker's Automatic Analysis features. The feature, 'Replace Watchlist with the Results', allows one to create an exploration of a watchlist, sort

[amibroker] AUTOMATIC ANALYSIS REPLACE WATCHLIST FEATURE NOT WORKING

2010-09-07 Thread bistrader
I believe I found a problem with one of AmiBroker's Automatic Analysis features. The feature, 'Replace Watchlist with the Results', allows one to create an exploration of a watchlist, sort the watchlist say on UPI, and then replace the original watchlist with this UPI ranked ticker list.

[amibroker] Re: Rotational Trading periods with no buys

2010-09-04 Thread bistrader
My guess is that the equity curve is flat (holding no ETFs) when positionscore is less than zero. Check you positionscores via exploration to see if this is the case and then just add large number to positionscore, say 1, to make all positive and run again. --- In

[amibroker] SIMPLE APPLYSTOP QUESTION

2010-08-27 Thread bistrader
Want to exit at NEXT day close when get to 5%. So, if get to 5% today, then would exit next market day at the closing price. I have the following but it exits TODAY and not next day. What am I doing wrong? SetTradeDelays(1, 1, 1, 1); ApplyStop( stopTypeProfit, stopModePercent, 5, 0, 0 );

[amibroker] Re: SIMPLE APPLYSTOP QUESTION

2010-08-27 Thread bistrader
, stopModePercent, 5, 2, 0 ); BR, Joe --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Want to exit at NEXT day close when get to 5%. So, if get to 5% today, then would exit next market day at the closing price. I have the following but it exits TODAY and not next day

[amibroker] Re: Optimizer target with genetic optimization

2010-08-24 Thread bistrader
Mike and others, Using this example, I would type the following as the Optimization target. CAR*(100 - abs(MDD)) Yet, if I want to see these values in the walk forward stats, don't I have to add something like the following to the end of the afl? Or, is there some way to tell AmiBroker to

[amibroker] Re: Optimizer target with genetic optimization

2010-08-24 Thread bistrader
, Tomasz Janeczko amibroker.com On 2010-08-24 18:53, bistrader wrote: Mike and others, Using this example, I would type the following as the Optimization target. CAR*(100 - abs(MDD)) Yet, if I want to see these values in the walk forward stats, don't I have to add something like

[amibroker] Re: Optimizer target with genetic optimization

2010-08-24 Thread bistrader
argument to bo.addcustommetric). Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Mike and others, Using this example, I would type the following as the Optimization target. CAR*(100 - abs(MDD)) Yet, if I want to see these values in the walk forward stats

[amibroker] Re: Point Figure afl in AmiBroker

2010-08-23 Thread bistrader
Thanks. Looks like what I was looking for but will have to study. Thanks again. --- In amibroker@yahoogroups.com, hagus99se hans.gustavs...@... wrote: --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Is there a Point Figure afl that comes with AmiBroker

[amibroker] Re: Point Figure afl in AmiBroker

2010-08-23 Thread bistrader
, bistrader a écrit : Is there a Point Figure afl that comes with AmiBroker? If not, is there a Stocks and Commodities afl or any afl out there that is Point Figure?

[amibroker] Re: what is the difference between these two code lines

2010-08-22 Thread bistrader
Howard, One comment, and somewhat beyond the answer to the original question. I like to convert impulse conditions to state (or your level) prior to and'g via Flip prior to the following. This is not always needed and is sometimes not wanted, but in most cases it is. The two are combined to

[amibroker] Point Figure afl in AmiBroker

2010-08-22 Thread bistrader
Is there a Point Figure afl that comes with AmiBroker? If not, is there a Stocks and Commodities afl or any afl out there that is Point Figure?

[amibroker] Re: Why does adding 10000 to PositionScore cause problems?

2010-07-20 Thread bistrader
Herman and TJ and others. Thanks. Was not thinking of the 7 digit / 32 bit. Caught me off guard. I am wondering if one needs to in any way take this into account when selecting a value to add to positionscore when one wants all values to be positive??

[amibroker] Re: AFL code for 20DMA break out

2010-07-19 Thread bistrader
Many this will get you going. MaCond = C MA(C,20); RocValue = Roc(C,1) == 0;// or whatever level you want FlatCond = Sum(RocValue, 5) = 1; HistRocValue = Ref(Roc(C,1),-5);// or did you mean 6 DownCond = HistRocValue - Ref(HistRocValue, -6) 0; Buy = MaCond And FlatCond And DownCond: Sell = ?

[amibroker] Why does adding 10000 to PositionScore cause problems?

2010-07-19 Thread bistrader
I have an afl with PositionScore at 77.904854 for one ticker. PositionScore also has negative values for certain tickers for certain dates. So, I add 1 to PositionScore as I want all PositionScore values to be positive. I do so as followings and notice that 77.904854 changes to

[amibroker] Re: SIMPLE LEARNING QUESTION

2010-07-12 Thread bistrader
will display that string). A longer (a more proper form is): printf(Before function call); printf(VariableA = + VariableA ); printf(VariableB = + VariableB ); Best regards, Tomasz Janeczko amibroker.com On 2010-07-12 18:24, bistrader wrote: The following is from AmiBroker

[amibroker] Re: Optimization issues

2010-07-11 Thread bistrader
Hard to tell. Not enough info provided. Backtest on default values used within optimization statements should create your 60/10 results and if not then correct detault values and also check optimization statements to make sure correct. Just guessing here as very little info provided in

[amibroker] HOW TO ADD LINE COUNT TO EXPLORATION AFL

2010-07-09 Thread bistrader
I would like to add a line count as the left most column to several of my exploration afls. The first row would be 1, followed by 2, etc., all the way to the end. How can this be done in AmiBroker?

[amibroker] Re: Entries and Exits

2010-07-08 Thread bistrader
Roger, There are a number of afls based on technical analysis that TJ wrote based on articles in Stocks and Commodities. We can access them by going to the member's section of AmiBroker. --- In amibroker@yahoogroups.com, Robert robertnd...@... wrote: Hi members, I am new to amibroker and

[amibroker] Re: PLOT OVERLAY AFL FOR RECESSIONS

2010-07-07 Thread bistrader
) { Plot(isRecession, RecessionOverlay, recBarColor, styleOwnScale|styleArea|styleNoLabel,0,1); } //The end --- In amibroker@yahoogroups.com, notanaiqgenius notanaiqgen...@... wrote: Hi BisTrader, No need to study it (unless you want to). It should work if you just do the following: 1) copy

[amibroker] Re: PLOT OVERLAY AFL FOR RECESSIONS

2010-07-06 Thread bistrader
Ribbon,C)==0; Plot(REC, Recession, colorYellow,styleOwnScale|styleArea|styleNoLabel , 0,1); Sebastian --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Paul, Thanks. Two items. First, I would like the overlay to extend from the top to the bottom of the chart

[amibroker] Re: PLOT OVERLAY AFL FOR RECESSIONS

2010-07-06 Thread bistrader
Wow. Need to study. More work than expected. Most is ready the csv file and converting to 1s and 0s it appears. Thanks for sharing. --- In amibroker@yahoogroups.com, notanaiqgenius notanaiqgen...@... wrote: Sebastian and bistrader, That is a very clean, fast, and simple solution

[amibroker] Re: PLOT OVERLAY AFL FOR RECESSIONS

2010-07-04 Thread bistrader
(isRecession,Close,Close); PlotOHLC( rOpen, rHigh, rLow, rClose, RecessionOverlay, recBarColor, styleCandle); --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: I would like to create an overlay afl that has recession periods in a color that can be selected via

[amibroker] PLOT OVERLAY AFL FOR RECESSIONS

2010-07-03 Thread bistrader
I would like to create an overlay afl that has recession periods in a color that can be selected via parameter with default of light gray. I can come up with the beginning and ending dates for each period, but am not how to proceed. Getting lost on how to best define (i.e., maybe 1 if in

[amibroker] Re: Rotational Trading question

2010-04-28 Thread bistrader
Interesting. Have not used. I read, but do not totally understand. For example, I can not find PositionScoreShort and PositionScoreLong. Does anyone have a short and simple afl example? --- In amibroker@yahoogroups.com, re_rowland rowl...@... wrote: Yes, look into:

[amibroker] Re: Question about SetTradeDelays

2010-04-16 Thread bistrader
PositionScore=100-RSI(14) provides the score for the day in question. No delay. SetTradeDelays(1,1,1,1) would delay the buys, sells, shorts and covers by 1 day. --- In amibroker@yahoogroups.com, Tony M pqj...@... wrote: I have a question when use both SetTradeDelays and PositionScore.

[amibroker] BATMAN UTIL IN AB REPORT EXPLORER

2010-03-31 Thread bistrader
Fred or anyone else that knows. I am using Batman 2.4 but would like to suppress all of the Batman Util that end up in AmiBroker's Report Explorer. If I run 20 backtests via Batman, then I get 40 reports in AB's Report Explorer. I like to go into Report Explorer to look at the charts and it

[amibroker] Re: emailer.exe file in AB directory.Kaspersky found backdoor.win32.RAdmin.bp trojan

2010-03-21 Thread bistrader
Very good blog/info --- In amibroker@yahoogroups.com, Tomasz Janeczko gro...@... wrote: Hello, That is FALSE positive. You should report it to anti-virus vendor that they have bug in their program. You should probably read this:

[amibroker] HOW TO EXCLUDE 3. PROFIT TABLE.AFL FROM REPORT EXPLORER

2010-03-21 Thread bistrader
Is there a way to remove 3 Profilt Table.afl chart from Report Explore's Charts display. I went to Formulas, then report charts and changed the extension of file from afl to aflorig thinking that this would remove it but this does not work. Anybody know how to remove? I know that I can add

[amibroker] Re: coding help please

2010-03-21 Thread bistrader
highest( ARRAY ) --- In amibroker@yahoogroups.com, naresh kumar nambisan nareshbahr...@... wrote: friends, the function hhv(close, 10) will give the highest close value of the preceding 10 candles.is there any function with which i can get the second highest close value?? thx in

[amibroker] Re: AMIBROKER SUPPORT - INDIVIDUAL BACKTEST

2010-03-20 Thread bistrader
, is there a special reason why you don't want to run an initial exploration to filter out those symbols that don't satisfy your date requirements? Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: I wrote to AB support, but have not heard from them on how I might change

[amibroker] Re: AMIBROKER SUPPORT - INDIVIDUAL BACKTEST

2010-03-20 Thread bistrader
. --- In amibroker@yahoogroups.com, bistrader bistra...@... wrote: Mike, Good idea. Tried via following and did not remove or otherwise identify short history tickers. To answer your question, I understand how to do with 2 step process, but this is not at all productive. I want to run a number

[amibroker] Re: rotational trading buying time

2010-03-20 Thread bistrader
AND or --- In amibroker@yahoogroups.com, Howard B howardba...@... wrote: Hi Donald -- Does something like this work for you? TradingDay = 15; dn = Day(); newMonth = (dn=TradingDay) (Ref(dn,-1)TradingDay); Thanks, Howard On Sat, Mar 20, 2010 at 7:36 AM, donald_brown_48367

[amibroker] Re: AMIBROKER AFLS FOR PORTFOLIO EQUITY CHART AND UNDERWATER EQUITY CHART

2010-03-18 Thread bistrader
Didn't know. Thanks. --- In amibroker@yahoogroups.com, Mike sfclimb...@... wrote: They are included as part of the product. C:\Program Files\AmiBroker\Formulas\Report Charts Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Wanted to set up Layout with Portfolio

[amibroker] AMIBROKER SUPPORT - INDIVIDUAL BACKTEST

2010-03-18 Thread bistrader
I wrote to AB support, but have not heard from them on how I might change afl to identify (ideal) or exclude tickers in a watchlist with short history when running Individual Backtests I run individual basktests on a watchlist, but do not want to get stats for tickers with history that does

[amibroker] AMIBROKER AFLS FOR PORTFOLIO EQUITY CHART AND UNDERWATER EQUITY CHART

2010-03-17 Thread bistrader
Wanted to set up Layout with Portfolio Equity Chart and Underwater Equity Chart as in AA's report explorer under Chart. Are these afls posted someplace?

[amibroker] Re: combining two conditions for buy or sell signals

2010-03-13 Thread bistrader
Might want to use Flip on Condition1 and 3 prior to ANDing. Say have cross today, but MA20 is still going down. Then, the next day MA is trending up, but condition1 has already crossed. Sorry, no buy signal. So, am thinking Flip. --- In amibroker@yahoogroups.com, Joris Schuller jschul...@...

[amibroker] Re: lost

2010-03-12 Thread bistrader
Does not sound right. Look in lower right corner and make sure you are in correct database. --- In amibroker@yahoogroups.com, rhw8 rwells...@... wrote: I opened my Amibroker and found that all my chart layouts and all my watchlists are gone. What a disaster. Any way to recover?

[amibroker] Re: Amiquote does not updade Amibroker database

2010-03-12 Thread bistrader
Did you try to download just a few tickers by opening AB, then AQ and then typing in just a few tickers and see if it works? Did you make sure your database is local only (i.e., use local database)? --- In amibroker@yahoogroups.com, nunopires2001 nunopires2...@... wrote: Hello, I have a

[amibroker] INDIVIDUAL BACKTEST VS BACKTEST PROBLEM

2010-03-09 Thread bistrader
I use an afl for backtesting the reference ticker and this works fine. I use the same afl for individual backtesting of each symbol in a watchlist and this does not work the way I want it to. The problem is with the start date. Say that I am backtesting from 4/1/2004 to today, and say also

[amibroker] Re: How to Force AmiBroker to Hold Buy Only for 30 days

2010-02-28 Thread bistrader
--- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: I tried the ref approach but it uses market days and I need 30 calendar days. As for subsequent buy signal, the clock would not start again as the security is still on a buy. I should have been clearer. Thanks. I'll continue

[amibroker] Re: How to Force AmiBroker to Hold Buy Only for 30 days

2010-02-28 Thread bistrader
Ended up using SetOption(HoldMinDays, HoldMinCalDays) which works as long a signal is in state form. Would like to figure out how to use DaysSince1900() as feel more in control. --- In amibroker@yahoogroups.com, bistrader bistra...@... wrote: Yes, I have a function to convert 30 calendar

[amibroker] HOW TO TRADE PAIRS IN AMIBROKER

2010-02-28 Thread bistrader
Would like to trade one ETFa when signal on a Buy and ETFb when same signal on a Sell. Is there a productive way to do this? I know a sloppy way of doing this but it takes too much maintenance and time. It is: 1. Place ETFb in a watchlist and point to this watchlist via AA Filter. 2. Add

[amibroker] Re: HOW TO TRADE PAIRS IN AMIBROKER

2010-02-28 Thread bistrader
= -25; --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Would like to trade one ETFa when signal on a Buy and ETFb when same signal on a Sell. Is there a productive way to do this? I know a sloppy way of doing this but it takes too much maintenance and time

[amibroker] Re: How to Force AmiBroker to Hold Buy Only for 30 days

2010-02-27 Thread bistrader
--- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Hello, I have a regular backtest with Buy and Sell statements. Is there a way to force the buy ONLY to stay on a buy for 30 days? Example: Buy = true 20 calendar days ago; Sell = true 8 calendar days ago; Buy - true

[amibroker] How to Force AmiBroker to Hold Buy Only for 30 days

2010-02-26 Thread bistrader
Hello, I have a regular backtest with Buy and Sell statements. Is there a way to force the buy ONLY to stay on a buy for 30 days? Example: Buy = true 20 calendar days ago; Sell = true 8 calendar days ago; Buy - true yesterday; Want to force Buy to stay on buy for total of 30 days and then

[amibroker] Trade's [SignalPairTrade] in AmiBroker

2010-02-25 Thread bistrader
Hi, I would like to prepare an afl that is like SignalPairTrade in the Trade program world. Trade is a program what uses data from FastTrack. Here is an example to trade RCMCX or TLT using a signal. [SignalPairTrade] Signal = SigRcmcx Fund= RCMCX Index = TLT

[amibroker] Re: Mutual funds are outperforming ETFs big time, but they shouldn't...why?

2010-02-23 Thread bistrader
Hard to tell based on limited info provided. Could do something simple to check. Take a trade for a mutual fund and for you selected ETF. Write down the buy price, sell price and performance for a few trades. Check the prices to make sure correct, in you case closing prices. Check the

[amibroker] Re: Batman Filter Exclude Index

2010-02-11 Thread bistrader
You can include and exclude what you like just line in AmiBroker's AA window. Open AB and click on filter. Say you want to include watchlist 10 which has all of your ETF, but exclude watchlist 11 which has leverage ETFs. Your AA analysis will therefore include all ETFs other than leverage

[amibroker] Re: Fund Rotation and Foreign

2010-02-09 Thread bistrader
Lets see ... 1. Place all to select from in watchlist. 2. Use filter and select this watchlist. 3. Use SetOption to set MaxOpenPositions to 3 and not just worstrankheld. So, will pick 3 top only. 4. Decide when you want to rotate as yours is set so can happen any market day which might be what

[amibroker] Re: Using multiple symbols in a trading system without back testing.

2010-02-09 Thread bistrader
You could. Go to AmiBroker user site and look at afls written to support Stocks and Commodities articles. Try this one ... SC Traders' Tips Issue 11/2009 A Seasonal System For Soybean Futures It used Foreign as you want. --- In amibroker@yahoogroups.com, frederic_holland user276...@... wrote:

[amibroker] Re: Fund Rotation and Foreign

2010-02-09 Thread bistrader
4. Just noticed that your posting talked about using monthly data, so may need TimeFrameSet(inMonthly); at top of your afl. Could also just leave daily and multiple monthly periods shown by say 22 for 22 average market days per month. --- In amibroker@yahoogroups.com, bistrader bistra

[amibroker] HOW TO RUN BATMAN WITH DOS BATCH FILE

2010-02-07 Thread bistrader
Would appreciate an example bat file that runs separate Batman batches. Does anyone have an example on how to do?

[amibroker] BAT FILE EXAMPLE FOR BATMAN

2010-02-04 Thread bistrader
I have two batch runs in Batman, called 01Batch, 02Batch, etc., and would like to run several of these with a dos bat file. Does anyone have an example?

[amibroker] PROBLEMS WITH AMIBROKER 5.296 AND USE OF KEY STROKES

2010-01-15 Thread bistrader
I have been using AB 5.2 and recently installed 5.296. Twice to make sure as I was having the following problems. I can not AB 5.296 to respond to key strokes!! AB 5.296 is NOT response to key strokes and this causes the problem. Here is what I do. 1. Click on the AB icon to open AB and it

[amibroker] Re: PROBLEMS WITH AMIBROKER 5.296 AND USE OF KEY STROKES

2010-01-15 Thread bistrader
) ; ALT f Sleep(3000) Send(S); S for Save ; Exit AmiBroker Sleep(2000) Send(!f) ; ALT f Sleep(2000) Send(X); X for Exit ; Done --- In amibroker@yahoogroups.com, bistrader bistra...@... wrote: I have been using AB 5.2 and recently installed 5.296. Twice to make sure

[amibroker] Re: PROBLEMS WITH AMIBROKER 5.296 AND USE OF KEY STROKES

2010-01-15 Thread bistrader
virtual keystrokes. Best regards, Tomasz Janeczko amibroker.com On 2010-01-15 20:24, bistrader wrote: I have been using AB 5.2 and recently installed 5.296. Twice to make sure as I was having the following problems. I can not AB 5.296 to respond to key strokes!! AB 5.296

[amibroker] Re: Sort Watchlists anyway you want

2010-01-11 Thread bistrader
Lets say you want to sort based on some mathematical process. Say, CAR/MDD or UPI. Then, just do an Exploration and afterwards right click on the AA window over any ticker and save the entire order to whatever watchlist you like, even the original watchlist for the tickers. Easy. Simple.

[amibroker] Re: RSI(2) and AddToComposite

2010-01-08 Thread bistrader
I believe you could also start with something like the following, with your rsi code added, and do via regular bactest, plot or whatever. function CountWatchList( listnum ) { // retrive comma-separated list of symbols in watch list list = CategoryGetSymbols( categoryWatchlist, listnum ); Count

[amibroker] Re: Volume Indictor Help!

2010-01-08 Thread bistrader
_SECTION_BEGIN(Volume); Plot( Volume, _DEFAULT_NAME(), IIf( V Ref(V,-1), ParamColor(Up Color, colorGreen ), ParamColor(Down Color, colorRed ) ), ParamStyle( Style, styleHistogram | styleThick, maskHistogram ) ); _SECTION_END(); --- In amibroker@yahoogroups.com, Richard aree...@... wrote: Help

[amibroker] Re: Popup Question for JavaScript code to run multiple AmiBroker Backtests

2010-01-05 Thread bistrader
WScript.Echo because it is modal and LOCKS the execution! Instead use AFL's built-in PopupWindow function http://www.amibroker.com/guide/afl/afl_view.php?popupwindow Best regards, Tomasz Janeczko amibroker.com On 2010-01-04 20:38, bistrader wrote: Thanks. This pops up a window

[amibroker] Re: HOW DO I GET AT ATTACHMENTS

2010-01-05 Thread bistrader
Attachments. Click on this link to see all the attachments. Then select the attachment you want. Regards, Alan reinsley wrote: I send mine with ThunderBird BR Le 04/01/2010 20:54, Alan Northam a écrit : Click on Visit Your Group Click on Attachments bistrader

[amibroker] Re: HOW DO I GET AT ATTACHMENTS

2010-01-05 Thread bistrader
. Correct --- In amibroker@yahoogroups.com, Alan Northam a...@... wrote: Click on Visit Your Group Click on Attachments bistrader wrote: I bet this is a dumb question, but I will ask it anyway. Periodically, I read a reply posting stating to look at the attachment to the posting

[amibroker] Re: Popup Question for JavaScript code to run multiple AmiBroker Backtests

2010-01-04 Thread bistrader
Thanks. This pops up a window until I click on ok. I would like window to pop up for 5 seconds for each i value and then for 10 seconds when loop is done. So, no clicking on ok, but rather having the pop up window in place for defined seconds. --- In amibroker@yahoogroups.com,

[amibroker] Re: How do I update my ticker list?

2010-01-03 Thread bistrader
. That should be all there is too it. Regards, Alan wernkra wrote: Hi Alan and Bistrader. Thanks for the comments. My old data are in a watchlist. I do not mind putting them into a database either. If this is more convenient. Just HOW ? Thanks. Wern

[amibroker] Re: How do I update my ticker list?

2010-01-03 Thread bistrader
be all there is too it. Regards, Alan wernkra wrote: Hi Alan and Bistrader. Thanks for the comments. My old data are in a watchlist. I do not mind putting them into a database either. If this is more convenient. Just HOW ? Thanks

[amibroker] Re: How do I update my ticker list?

2010-01-01 Thread bistrader
You can load tls and csv via Amiquote (AQ). Both are txt files. Both work even though tls is the standard. One way it to copy and paste your Word tickers into Excel, make sure all tickers are in column A with nothing else in column B, etc.,and then save as whatever.csv. Then, open in AQ and

[amibroker] Re: AB database is corrupted, lost all of my symbols

2009-12-31 Thread bistrader
Check and do the basics. Close AB and then open it. Make sure in the correct database. Make sure File\Database settings info is all correct. Make sure that if plugin used that you subscription to actual data has not run out (e.g., at least one data provided shows all prices a null if data

[amibroker] NEED SIMPLE HELP ON JAVASCRIPT FOR AMIBROKER BACKTESTS

2009-12-28 Thread bistrader
I have a JavaScript that runs 10 backtests on the same afl. This works fine, but I wanted to add some popup windows that I saw for a vsbacis program. I did a bunch of googles. Lots of stuff, but no help. Here is what I have and need help with. var i = 1;// In the end, a loop will take i

[amibroker] Popup Question for JavaScript code to run multiple AmiBroker Backtests

2009-12-24 Thread bistrader
I have a JavaScript file the runs 10 backtests on the same afl. I did a bunch of googles to find out how to pop up a window for telling me when each of these 10 has been completed and when the entire job is completed. Here is what I came up so far and need help. var i = 1;// A loop will take

[amibroker] Re: Help on AFL to export closingprices only to .csv file

2009-12-22 Thread bistrader
Do so. --- In amibroker@yahoogroups.com, h3po h3p...@... wrote: Hi, thanks, I found the solution, with excellent help from Support. I can post the code if anyone's interested.. --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: I will look around as I seem to remember

[amibroker] Re: Help on AFL to export closingprices only to .csv file

2009-12-21 Thread bistrader
Sorry Mike, did see your Transpose reply or I would not have provided same. Here is an afl to place each Stock Name in row from any watchlist. Is this what hjansenvanrensburg is looking for? // Start WatchListNo = Param(WatchListNo, 0, 0, 63, 1); list = CategoryGetSymbols( categoryWatchlist,

[amibroker] Re: Help on AFL to export closingprices only to .csv file

2009-12-21 Thread bistrader
++ ) { fputs( symbol + ,, fh ); } fclose( fh ); --- In amibroker@yahoogroups.com, bistrader bistra...@... wrote: Sorry Mike, did see your Transpose reply or I would not have provided same. Here is an afl to place each Stock Name in row from any watchlist. Is this what

[amibroker] Re: Help on AFL to export closingprices only to .csv file

2009-12-21 Thread bistrader
I will look around as I seem to remember something on this posted here. Until then, you can always use Excel to shift the column of tickers to a row of tickers. Just hightlight the column, copy it, paste special using transpose and the column will end up as a row. --- In

[amibroker] Re: How do I delete a symbol from a Database via an afl?

2009-12-19 Thread bistrader
(); } bistrader wrote: I know how to manually delete a symbol from a database. And, I know how to remove a symbol from a watchlist or group via an afl, but I can NOT figure out how to delete a symbol from a watchlist or group via an afl. An example on how to delete a symbol from a database via

[amibroker] How do I delete a symbol from a Database via an afl?

2009-12-18 Thread bistrader
I know how to manually delete a symbol from a database. And, I know how to remove a symbol from a watchlist or group via an afl, but I can NOT figure out how to delete a symbol from a watchlist or group via an afl. An example on how to delete a symbol from a database via an afl would be

[amibroker] Re: JavaScript Problem with Array

2009-12-08 Thread bistrader
? , : )); ts.Close();} Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Thanks Mike, but I want to be clear(er). My plan is to expand this simple example to get me at individual values in the array. In this case, the 10 values in the before.csv file provide information

[amibroker] Re: JavaScript Problem with Array

2009-12-07 Thread bistrader
, TristateUseDefault); line = ts.ReadLine(); // First line line = ts.ReadLine(); // Second line ts.Close(); ts = fso.OpenTextFile(after, ForWriting, true, TristateUseDefault); ts.WriteLine(line); ts.Close(); Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Am

[amibroker] Re: Copying Files to a Laptop

2009-12-07 Thread bistrader
A simple way ... 1. Zip AmiBroker and get zip file on second PC. 2. Delete AmiBroker on second PC or otherwise clean it up by at least deleting databases and formulas directories. 3. Do not open AmiBroker on second PC as of yet. Rather, install full version of AmiBroker on new PC now and after

[amibroker] Re: Rotational trade - how do I get the top 10% of stocks?

2009-12-06 Thread bistrader
I had this as well, but was thinking that I could not do within Rotational trading. You seem to be saying that you: (1) call function to get count say 99, (2) set maxopenpositions to round(count). Yes? --- In amibroker@yahoogroups.com, droskill drosk...@... wrote: Figured this out:

[amibroker] JavaScript Problem with Array

2009-12-06 Thread bistrader
Am trying to put together a simple JavaScript to eventually use with AmiBroker. This JavaScript should ... 1. Start out with the before.csv file. A,B,C,D,E,F,G,H,I,J 5,4,3,2,1,10,9,7,6,6 2. Skip the first line and read the 10 numbers into an array. 3. Write this array to a new after.csv file.

[amibroker] Re: Rotational trade - how do I get the top 10% of stocks?

2009-12-05 Thread bistrader
I have similar issues and can find no easy way to do this or to in general control maxopenpositions without getting heavy into CBT. I am thinking of controling with JavaScript which I am now learning. Here is my thought: (1) Run an exploration on an afl that counts the number of stocks

[amibroker] Re: MIKE - SIMPLE WRITELINE JAVASCRIPT FOR AMIBROKER USE QUESTION

2009-12-04 Thread bistrader
with try/catch. Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Mike, Thanks. I understand all except for 7. Might want to check for successful return values from any of the functions that return them, and handle exceptions when value is not what was expected. I

[amibroker] Re: please read this formula and tell what it is?

2009-12-03 Thread bistrader
i is element of array; i++ is counter for for statement. Loop goes thru all values. Better, in my opinion, is iff as defined below. --- In amibroker@yahoogroups.com, Ton Sieverding ton.sieverd...@... wrote: What about : color = iif(C0,colorgreen,colorred); Regards, Ton. -

[amibroker] Re: MIKE - SIMPLE WRITELINE JAVASCRIPT FOR AMIBROKER USE QUESTION

2009-12-03 Thread bistrader
was expected. 8. File usage looks fine to me. Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Mike, I am having problems creating a txt file via JavaScript for AmiBroker use so I create the following simple example. I want the txt file to be exactly

[amibroker] Re: How to save studies?

2009-12-03 Thread bistrader
I do the following. 1. Under Layers, I have Support and Resistence. I click on this first. 2. Add support and resistence to charts, including Fib retracements. 3. Click on Save All icon. Then, anytime I have Layer Support and Resistence with a check mark to the left, my charts have the relevant

[amibroker] Re: How can add more sheet to Amibroker

2009-12-03 Thread bistrader
I have AB5.20 as well. Went to preference, then Charting and there it is at the bottom. I have mine at 35 --- In amibroker@yahoogroups.com, Yves ylt...@... wrote: I'm have AB 5.20 and I can't add more sheet to Amibroker TOO I don't have the : NUMBER OF CHART SHEETS in Tools Preferences

[amibroker] Re: Help with More Complicated JavaScript Needed

2009-11-30 Thread bistrader
file. Since there may be overlap between stock names (e.g. A and AA), we rely on the commas as delimeters for complete names and search for ,A, and ,AA, respectively. Make sense? Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Thanks Mike. I did each, will do

[amibroker] MIKE - SIMPLE WRITELINE JAVASCRIPT FOR AMIBROKER USE QUESTION

2009-11-30 Thread bistrader
Mike, I am having problems creating a txt file via JavaScript for AmiBroker use so I create the following simple example. I want the txt file to be exactly the following, but can not get the quotes to be included. I pick x of y for today. This is my final pick. These are My Winners for the

[amibroker] Re: MIKE - SIMPLE WRITELINE JAVASCRIPT FOR AMIBROKER USE QUESTION

2009-11-30 Thread bistrader
. --- In amibroker@yahoogroups.com, bistrader bistra...@... wrote: Mike, I am having problems creating a txt file via JavaScript for AmiBroker use so I create the following simple example. I want the txt file to be exactly the following, but can not get the quotes to be included. I pick x of y

[amibroker] Re: Help with More Complicated JavaScript Needed

2009-11-28 Thread bistrader
example in a user forum somewhere. Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: Mike, I did not see this and do not know how I missed it. I studied. I understand all of the basic code and loop. I do not understand first 4 lines and will do google search

[amibroker] Re: EMPTY A WATCHLIST WITH JAVA SCRIPT QUESTION

2009-11-26 Thread bistrader
; // this fakes out the AmiBroker AutoAnalyzer // and lets you run the program without an error indication. } - Original Message - From: bistrader To: amibroker@yahoogroups.com Sent: Wednesday, November 25, 2009 9:29 AM Subject: [amibroker] EMPTY A WATCHLIST WITH JAVA

[amibroker] Re: Help with More Complicated JavaScript Needed

2009-11-26 Thread bistrader
{ stock.WatchListBits = !(1 20); // Remove from watchlist 20 } } ab.RefreshAll(); // Your backtest here. // Your exploration here. } Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: I am working on a second JavaScript that I will post when done. I

[amibroker] Re: EMPTY A WATCHLIST WITH JAVA SCRIPT QUESTION

2009-11-26 Thread bistrader
while symbols that are found in your .csv file are added to the list, all in a single loop. See posting http://finance.groups.yahoo.com/group/amibroker/message/144269 Mike --- In amibroker@yahoogroups.com, bistrader bistrader@ wrote: I am working on a Java Script and am taking one step

[amibroker] Re: EMPTY A WATCHLIST WITH JAVA SCRIPT QUESTION

2009-11-26 Thread bistrader
Herman, Yes, I agree but there are several things that I am trying to do and am thinking that doing via JavaScript would be better for me. Also gives me an opportunity to find out (for me) what to do in afl and what to do in JavaScript. Learning. So far, I have found that using afl and

[amibroker] EMPTY A WATCHLIST WITH JAVA SCRIPT QUESTION

2009-11-25 Thread bistrader
I am working on a Java Script and am taking one step at a time. I want this section of the js to empty a watchlist. I have googled a lot and have commands that are javascript and visual basic. This is my error, but I am learning. Here is what I have on this should so far. Help appreciated.

[amibroker] HERE IS JAVA SCRIPT EXPLORATION AND EXPORT EXAMPLE

2009-11-24 Thread bistrader
Mike, Herman and others, Here is my Java Script to run an Exploration and then Export it to a csv file. This was the easy one. // Exploration_Example.js // This Java Script file should: // 1. Load a Database // 2. Run an exploration on an afl. // 3. Exports the exploration to a csv file.

[amibroker] Help with More Complicated JavaScript Needed

2009-11-24 Thread bistrader
I am working on a second JavaScript that I will post when done. I want it to do the following. 1. Makes watchlist 20 empty. 2. Reads Input1.csv symbols into watchlist 20. 3. Runs a backtest on MyBacktest.afl with filter at watchlist 20. 4. Then, runs an exploration on MyExploration.afl using

[amibroker] Re: JAVA SCRIPT SIMPLE QUESTIONS

2009-11-23 Thread bistrader
through In10 as well. Thanks for the example on using AutoIt rather than AutoIt running a JavaScript. I will look around to find documentation on how to set the range dates, etc in the AutoIt files. --- In amibroker@yahoogroups.com, Brenton Hill bphill0...@... wrote: Hi Bistrader If you're

[amibroker] Re: JAVA SCRIPT SIMPLE QUESTIONS

2009-11-23 Thread bistrader
@yahoogroups.com, bistrader bistrader@ wrote: I created the following Java Script to do an exploration on an afl and then export the exploration to a file. I have a few questions. 1. From a structure perspective, is there anything that I should include or exclude as I try to pick up Java

  1   2   >