Re: [amibroker] Misunderstanding of Arrays

2010-08-26 Thread Steve Dugas
Hi - REF operates on the entire array like most other AB functions. It shifts the array by the number of bars you specify. You can plot a couple of different REF's to see it in action. When you need to use IF with an array, use IIF instead - MARY = IIF( Ref( Lowest_ROC_NUM, 0 ) == 9, 10, 0 );

Re: [amibroker] buy/sell rules for different market regimes

2010-06-24 Thread Steve Dugas
Hi - Try this way Buy = IIF( C MA( C, 200 ), BullBuyCond, BearBuyCond ); Similar for sell, short, cover. - Original Message - From: Paolo pcavat...@gmail.com To: amibroker@yahoogroups.com Sent: Thursday, June 24, 2010 2:07 PM Subject: [amibroker] buy/sell rules for different market

Re: [amibroker] Re: buy/sell rules for different market regimes

2010-06-24 Thread Steve Dugas
). Thanks for your suggestion anyway, Paolo --- In amibroker@yahoogroups.com, Steve Dugas sjdu...@... wrote: Hi - Try this way Buy = IIF( C MA( C, 200 ), BullBuyCond, BearBuyCond ); Similar for sell, short, cover. - Original Message - From: Paolo pcavat...@... To: amibroker

Re: [amibroker] Re: buy/sell rules for different market regimes

2010-06-24 Thread Steve Dugas
Mike beat me to it...he must live closer to the server... 8 - ) - Original Message - From: Steve Dugas sjdu...@comcast.net To: amibroker@yahoogroups.com Sent: Thursday, June 24, 2010 2:49 PM Subject: Re: [amibroker] Re: buy/sell rules for different market regimes You could stack

Re: [amibroker] Help with a Plot(AFL containing IIF AFL's

2010-06-19 Thread Steve Dugas
Hi Ron - Unless something has changed, the Style arg won't take an array, i.e. style must be the same for all bars. I think a workaround like this using multiple plot statments would probably work... Plot( IIF( tXa, yFe50, NULL ), a, colorRed, styleDots ); Plot( IIF( aXt, yFe50, NULL ), a,

Re: [amibroker] Help with a Plot(AFL containing IIF AFL's

2010-06-19 Thread Steve Dugas
oops! 2nd line should say styleLine...forgot to change it when I copied/pasted the 1st line... - Original Message - From: Steve Dugas To: amibroker@yahoogroups.com Sent: Saturday, June 19, 2010 9:49 PM Subject: Re: [amibroker] Help with a Plot(AFL containing IIF AFL's

Re: [amibroker] How Do You Handle Plotting Huge Max/Min Values In An Indicator?

2010-06-11 Thread Steve Dugas
Hi - How about something like this... RelPct = YourCalc; RelPct = Max( Min( RelPct, 50 ), -50 ); - Original Message - From: jorgen_wallgren jorgen.wallg...@gmail.com To: amibroker@yahoogroups.com Sent: Friday, June 11, 2010 10:59 PM Subject: [amibroker] How Do You Handle Plotting Huge

Re: [amibroker] Wow what a plunge !

2010-05-06 Thread Steve Dugas
That was me, I decided to sell off a few holdings... 8 - ) Sorry about that !! 8 - ) Seriously, perhaps program trading kicking off more program trading? - Original Message - From: Fred Tonetti To: amibroker@yahoogroups.com Sent: Thursday, May 06, 2010 3:16 PM

Re: [amibroker] AB 5.29, Windows 7 (64bit) and i7

2010-03-14 Thread Steve Dugas
Hi - I am guessing that your computer is multi-core? AB is not written for multi-threaded optimization - I have a quad-core, 1 instance of AB uses 25% of total CPU power so I run 4 instances side-by-side when optimizing to keep the CPU maxed out. I don't think I have heard of a 6-core machine

Re: [amibroker] Could someone comment on how this loop is executed (Basic)

2010-02-16 Thread Steve Dugas
Hi - untested but you can try something like this... emaCross = Cross( EMA1, EMA2 ); cumCross = Cum( emaCross ); thirdCross = emaCross AND ( cumCross % 3 == 0 ); Steve - Original Message - From: m.kuschel31 m.kusche...@yahoo.com To: amibroker@yahoogroups.com Sent: Friday, February 12,

Re: [amibroker] Re: Projecting prices

2010-02-12 Thread Steve Dugas
be very simple. Thank you for your help. Marius --- In amibroker@yahoogroups.com, Steve Dugas sjdu...@... wrote: Hi - What did you have in mind? Fred can correct me if I'm wrong, but I always imagined it was written for someone who wanted to trade at the close but only gets EOD data

Re: [amibroker] ZigZag-Indicator

2010-02-12 Thread Steve Dugas
Hi - I have seen several user-coded versions of the Zig over the years, I think there is one or two in the library and probably a couple in previous posts, you might get lucky with those or at least they could give you some starting code to tweak. Steve - Original Message - From:

Re: [amibroker] Re: Projecting prices

2010-02-11 Thread Steve Dugas
in a backtest procedure as it only determines a required price for tomorrow. Please correct me if I'm wrong. Regards, Marius --- In amibroker@yahoogroups.com, Ara Kaloustian a...@... wrote: Thanks Steve A - Original Message - From: Steve Dugas To: amibroker

Re: [amibroker] Help with Parameter error

2010-02-08 Thread Steve Dugas
Remove the words default=. It is just there for informational purposes. - Original Message - From: benjamin.bolsa benjamin.bo...@yahoo.com To: amibroker@yahoogroups.com Sent: Monday, February 08, 2010 8:15 AM Subject: [amibroker] Help with Parameter error I have one AFL Formula but

Re: [amibroker] Problem removing OptimizerSetEngine(cmae);

2010-01-31 Thread Steve Dugas
Hi - Exhaustive optimizer can crash if the opt has too many steps and it eventually runs out of memory. Does the crash happen well into the opt? Steve - Original Message - From: James To: amibroker@yahoogroups.com Sent: Sunday, January 31, 2010 6:26 PM Subject: [amibroker]

Re: [amibroker] What are static variables used for?

2010-01-30 Thread Steve Dugas
Hi -I think the big thing with static vars is that they can be shared, i.e. you can create a var in one chart and save it with StaticVarSet(), then you can access it from other charts or from AA with a call to StaticVarGet(). Steve - Original Message - From: Pmxgs pm...@vizzavi.pt To:

Re: [amibroker] PremiumData Question

2010-01-14 Thread Steve Dugas
Hi Richard - Your upcoming plugin sounds great, just wondering if it will be 64-bit? With 64-bit computers and OS's increasingly becoming the norm and 64-bit AmiBroker waiting in the wings, it would be real nice if just one maintenance-free data provider could provide a 64-bit API/plugin and

Re: [amibroker] PremiumData Question

2010-01-14 Thread Steve Dugas
From: Steve Dugas sjdu...@comcast.net To: amibroker@yahoogroups.com Date: Thu, 14 Jan 2010 11:24:01 -0500 Hi Richard - Your upcoming plugin sounds great, just wondering if it will be 64-bit? With 64-bit computers and OS's increasingly becoming the norm and 64-bit AmiBroker

Re: [amibroker] PremiumData Question

2010-01-14 Thread Steve Dugas
BTW, could anyone tell me, when subscribing to Norgate data, how many computers does their license cover? Thank you! Steve - Original Message - From: Steve Dugas To: amibroker@yahoogroups.com Sent: Thursday, January 14, 2010 12:22 PM Subject: Re: [amibroker] PremiumData

Re: [amibroker] PremiumData Question

2010-01-14 Thread Steve Dugas
-- From: Steve Dugas sjdu...@comcast.net To: amibroker@yahoogroups.com Sent: Thu, January 14, 2010 11:10:45 AM Subject: Re: [amibroker] PremiumData Question BTW, could anyone tell me, when subscribing to Norgate data

Re: [amibroker] Assistance request with a Custom Indicator

2010-01-14 Thread Steve Dugas
Hi - You can try this... StartDate = ParamDate( Start Date, 1/4/2010 ); Plot (IIF( DateNum() StartDate, NULL, ROC(Foreign(^AORD,C)),1), All Ords, colorWhite,styleThick); ... Steve - Original Message - From: pacific5_au pacific5...@yahoo.com To: amibroker@yahoogroups.com Sent:

Re: [amibroker] Assistance request with a Custom Indicator

2010-01-14 Thread Steve Dugas
Oops, put the param in the wrong place, this one looks better... Plot (IIF( DateNum() StartDate, NULL, ROC(Foreign(^AORD,C),1)), All Ords, colorWhite,styleThick); - Original Message - From: Steve Dugas sjdu...@comcast.net To: amibroker@yahoogroups.com Sent: Thursday, January 14, 2010

Re: [amibroker] Average MAE/MFE

2010-01-03 Thread Steve Dugas
Hi - I believe it is only the Professional Edition that has MAE / MFE. Steve - Original Message - From: James To: amibroker@yahoogroups.com Sent: Sunday, January 03, 2010 1:59 PM Subject: Re: [amibroker] Average MAE/MFE I must be overlooking this feature. I just

Re: [amibroker] Does anyone do FX backtesting?

2009-12-26 Thread Steve Dugas
Hi - You can turn off that range checking by adding this to your code - SetOption( PriceBoundChacking, False ); Steve - Original Message - From: Potato Soup To: amibroker@yahoogroups.com Sent: Saturday, December 26, 2009 2:50 AM Subject: Re: [amibroker] Does anyone do FX

Re: [amibroker] Does anyone do FX backtesting?

2009-12-26 Thread Steve Dugas
Oops, screwed that up pretty good. Try this one instead - SetOption( PriceBoundChecking, False ); - Original Message - From: Steve Dugas To: amibroker@yahoogroups.com Sent: Saturday, December 26, 2009 11:44 AM Subject: Re: [amibroker] Does anyone do FX backtesting? Hi

[amibroker] OT - US Traders Tax

2009-12-22 Thread Steve Dugas
Hi - For those interested in signing, here is another petition regarding the proposed US Traders Tax. It would seem there are those in Congress who have latched onto this idea as a way to raise revenue for just about anything and everything, pretty much abandoning the pretense of forcing Wall

Re: [amibroker] How to use custom indicator

2009-12-21 Thread Steve Dugas
Hi - Probably best to look at AA and charting as seperate modules, they do not see each other. You can save your variables to memory using StaticVarSet() and retrieve them using StaticVarGet(), then they will be visible to charts and AA, but better yet is to just write one code that includes

Re: [amibroker] Traders Tax

2009-12-08 Thread Steve Dugas
Thanks for posting Jerry. There is also this one, it has been around longer and has 63,000 signatures so far. I have signed both. Steve http://www.rallycongress.com:80/no2tradertax/1536/tell-congres-to-block-trader-tax/ - Original Message - From: Jerry Gress

Re: [amibroker] Re: What's a good k ratio,and thoughts on when k ratio clashes with MDD and Shar

2009-12-01 Thread Steve Dugas
Hi - For CAR, the user guide gives the formula used by AB... AmiBroker is one of the few programs that calculates annual returns correctly and will give you correct value of 20% as shown in the example above. The formula that AmiBroker uses for annual return calculation is as follows:

Re: [amibroker] Comparing Two Symbols Error Problem

2009-11-28 Thread Steve Dugas
Foreign() will return the entire array, just call it once, assign to a variable and then reference the variable. Your 2nd call has the correct format so you can just do this y = Foreign(, Close); // current price for x = ref( y, -260 ); - Original Message - From: Alan

Re: [amibroker] Walk Forward Test - How would you...

2009-11-13 Thread Steve Dugas
built-in Standard Particle Swarm Optimizer? - Original Message - From: Howard B To: amibroker@yahoogroups.com Sent: Friday, November 13, 2009 5:32 AM Subject: Re: [amibroker] Walk Forward Test - How would you... Hi Dubi -- What is SPSO? Thanks, Howard On

Re: [amibroker] AmiBroker 25x times faster!

2009-11-10 Thread Steve Dugas
Yep, I suppose it is human nature that when everything is going great, people just go about their business, mostly posting when they have a question or a problem. It is nice to see someone posting the good stuff, reminds me why we are all still here. AB rocks! 8 - ) - Original Message

Re: [amibroker] Re: Ami is exiting without an exit command

2009-11-03 Thread Steve Dugas
Same here, I stopped pressing Enter a year or more ago, now I just click on the param name to close the slider. Also agree is doesn't happen every time and is tough to pin down why it happens sometimes and not others. I can say that I only have EOD data so I don't think it is due to streaming

Re: [amibroker] Help? Strange Foreign Function Behavior

2009-10-31 Thread Steve Dugas
Hi - Probably a dumb question but is PSIG a valid ticker in your DB? I don't see it in my DB and I believe SetForeign will just return the current ticker if it can't find the one requested. SetForeign seems to work fine for me... Steve - Original Message - From: Mike

Re: [amibroker] help with HighestSince in loop

2009-10-25 Thread Steve Dugas
- Original Message - From: James To: amibroker@yahoogroups.com Sent: Sunday, October 25, 2009 6:52 PM Subject: [amibroker] help with HighestSince in loop In the code below, I cannot use an array after HighestSince. Can someone help explain how can I achieve this

Re: [amibroker] Re: activeX ..how to perform EXPLORE() on current symbol only using ActiveX`

2009-10-19 Thread Steve Dugas
is this selected. AA.RangeMode = RngMode.RngMode_ALL ' all quotes AA.LoadFormula(AflFile) AA.LoadSettings(AbSettings) AA.Explore() ' Any advice is immensely appreciated. Gajanan --- In amibroker@yahoogroups.com, Steve Dugas sjdu...@... wrote: Hi - I think

Re: [amibroker] Re: MA cross with %filter

2009-10-19 Thread Steve Dugas
Hi - Close, it is Exrem that removes all signals until opposite signal is generated. Flip, after a True, will continue to return True until it comes to a True in the 2nd array. I think it is convenient to look at it as Signal ( buy, sell, use Exrem ) vs. State ( in long, in short, use Flip ) In

Re: [amibroker] MA cross with %filter

2009-10-18 Thread Steve Dugas
Hi - Have a look at the Flip() function, once price enters your buy zone it can return a 1 until it enters your sell zone. Steve - Original Message - From: levibreidenbach lev...@comcast.net To: amibroker@yahoogroups.com Sent: Friday, October 16, 2009 4:47 PM Subject: [amibroker] MA

[amibroker] Fw: [holygrailsm] Stratfor - George Friedman interview on Financial situation

2009-10-18 Thread Steve Dugas
Hey TJ, we will have to get together in 2050 or so for the big victory party! Please leave some room in your social calender... 8 - ) Steve - Original Message - From: Stan Sztaba To: holygrai...@yahoogroups.com Sent: Sunday, October 18, 2009 5:03 PM Subject: [holygrailsm] Stratfor

Re: [amibroker] activeX ..how to perform EXPLORE() on current symbol only using ActiveX`

2009-10-17 Thread Steve Dugas
Hi - I think this will do it... Steve AA.ApplyTo = 1; // 0=all symbols, 1=current symbol, 2=use filter - Original Message - From: gajanan gajan...@gmail.com To: amibroker@yahoogroups.com Sent: Saturday, October 17, 2009 10:30 PM Subject: [amibroker] activeX ..how to perform

Re: [amibroker] Ram Jam after optimization problem

2009-10-13 Thread Steve Dugas
Hi - Yes it can be quite easy for optimizations to use up all memory and basically lock up your computer or generate an exception. I found that if I started using smaller opts and then gradually increased the size until it locked up I could get a pretty good idea of the upper step limit for

Re: [amibroker] Re: AB vers. 5.29

2009-10-11 Thread Steve Dugas
a similar issue... along with a separate issue regarding corrupted parameter lists (this is an old issue pre 5.29)... Anyway, I deleted broker.params file from the AB directory.. reloaded AB and now my symbol window seems to be correct... --- In amibroker@yahoogroups.com, Steve Dugas sjdu

Re: [amibroker] Re: AB vers. 5.29

2009-10-11 Thread Steve Dugas
mean the variable that they are assigned to...? TIA --- In amibroker@yahoogroups.com, Steve Dugas sjdu...@... wrote: Hi Rob - Years ago I had an issue with params, I would open AB and find many of the params kept reverting back to the defaults. That can happen if AB doesn't save them

Re: [amibroker] Re: AB vers. 5.29

2009-10-11 Thread Steve Dugas
Hi Ara - Have you tried retrieving the tickers from the QP database with the new 5.29 plugin to see if the assignments were still correct? Thanks! Steve - Original Message - From: Ara Kaloustian a...@san.rr.com To: amibroker@yahoogroups.com Sent: Sunday, October 11, 2009 4:44 PM

Re: [amibroker] AB vers. 5.29

2009-10-10 Thread Steve Dugas
Same here, things are messed up. I download mutual funds also, half the mutual funds are listed under ETF's. Most all the ETF's and common stocks are listed under Undefined. Something changed, either on the AB side or the QP side. I had switched over to Gary's plugin that retrieves the

Re: [amibroker] AB vers. 5.29

2009-10-10 Thread Steve Dugas
be corrupted or something...thanks! Steve - Original Message - From: Steve Dugas To: amibroker@yahoogroups.com Sent: Saturday, October 10, 2009 1:37 PM Subject: Re: [amibroker] AB vers. 5.29 Same here, things are messed up. I download mutual funds also, half the mutual funds

Re: [amibroker] AB vers. 5.29

2009-10-10 Thread Steve Dugas
] On Behalf Of Steve Dugas Sent: Sunday, 11 October 2009 6:51 a.m. To: amibroker@yahoogroups.com Subject: Re: [amibroker] AB vers. 5.29 Ara, one question if you don't mid - When you click on the Symbols tab, does your symbol tree come up with all tickers or do you have to click Refresh

Re: [amibroker] [Backtesting] Going long/short on a particular date - problem with weekends

2009-10-07 Thread Steve Dugas
Hi - This should sell on 14th or following market day... Sell = Day() = 14 AND Month() == 2; Sell = Sell AND NOT ref( Sell, -1 ); Steve - Original Message - From: miloslavhebky miloslavhe...@yahoo.com To: amibroker@yahoogroups.com Sent: Tuesday, October 06, 2009 6:15 AM Subject:

Re: [amibroker] Need help - for loop MACD() not incrementing in array

2009-10-07 Thread Steve Dugas
Hi - If you want to step through the array bar-by-bar, you should be using subscripts inside the loop that refer to the bar, e.g. MCAD[i] But unless you need the loop for something else, I think you could just remove the looping code at the top and use your regular array-based AFL to do what

Re: [amibroker] AB vers 5.29 - Sectors

2009-10-07 Thread Steve Dugas
Hi - I had a problem recently that in the symbol tree all markets, groups, etc were suddenly empty. Not sure when it started, I think either with addition of GICS support or when TJ recently updated the QP plugin and I had to revert from Gary's plugin back to TJ's. Anyway, I went to Symbol

Re: [amibroker] AB vers 5.29 - Sectors

2009-10-07 Thread Steve Dugas
: Steve Dugas To: amibroker@yahoogroups.com Sent: Wednesday, October 07, 2009 1:32 PM Subject: Re: [amibroker] AB vers 5.29 - Sectors Hi - I had a problem recently that in the symbol tree all markets, groups, etc were suddenly empty. Not sure when it started, I think either

Re: [amibroker] AB vers 5.29 - Sectors [1 Attachment]

2009-10-07 Thread Steve Dugas
:50 PM Subject: Re: [amibroker] AB vers 5.29 - Sectors I deleted the second Utilities label, but the tree structure is still there with the + box. - Original Message - From: Steve Dugas To: amibroker@yahoogroups.com Sent: Wednesday, October 07, 2009 10:32

Re: [amibroker] Getting Periodicity programmatically?

2009-09-30 Thread Steve Dugas
Interval() function - Original Message - From: Keith McCombs kmcco...@engineer.com To: amibroker@yahoogroups.com Sent: Wednesday, September 30, 2009 12:02 AM Subject: [amibroker] Getting Periodicity programmatically? Is there any way to programmatically determine the periodicity of a

Re: [amibroker] how to create combined ticker in Amibroker and chart it

2009-09-28 Thread Steve Dugas
Hi - Since you want to create a new ticker you could put your 5 starting tickers into a watchlist and then run AddToComposite() function over the list. You can read about AddToComposite by using Search tab in the user guide and also I think there is a very good tutorial by Herman in the files

Re: [amibroker] Help understanding array processing

2009-09-21 Thread Steve Dugas
Hi - I think you have run into the old recursive problem. In the first line... theHi[0] = C[0]; you set only the first bar of the Hi to the close. Don't know what the rest of the array is offhand, AB may initialize it to zero or null or something, otherwise I would think the values are

Re: [amibroker] Re: Help understanding array processing

2009-09-21 Thread Steve Dugas
a lot or does Ami only go back far enough to load the indicators correctly? I remember seeing something like that. Thanks Steve, Barry --- In amibroker@yahoogroups.com, Steve Dugas sjdu...@... wrote: Hi - I think you have run into the old recursive problem. In the first line... theHi[0

Re: [amibroker] Strange behaviour of foreign

2009-09-06 Thread Steve Dugas
Hi - Data retrieved via Foreign() is synchronized to the data of the current ticker, i.e. dates/times are aligned, so probably your data for DCO and ATN ends a little sooner than the others? Try plotting basic price chart and then changing the current ticker to see if those tickers have one

Re: [amibroker] Please help in my formula

2009-08-29 Thread Steve Dugas
Hi - You can shift the arrays to the left by using Ref with a positive number... CPctOne = ref( CPct0, 1 ); CPctTen = ref( CPct0, 10 ); PlotShapes( IIF( CPctOne... PlotShapes( IIF( CPctTen... Steve - Original Message - From: Vinay Gakkhar. To: Amibroker Sent: Saturday, August

Re: [amibroker] Please help in my formula [1 Attachment]

2009-08-29 Thread Steve Dugas
*[Attachment(s) from Steve Dugas included below] Hi Vinay - Your code seems to work fine on my computer...is this what it is supposed to look like? Steve - Original Message - From: Vinay Gakkhar. vgakk...@yahoo.co.uk To: amibroker@yahoogroups.com Sent: Saturday, August 29, 2009 9:24

Re: [amibroker] dynamic color and decimal places in chart title

2009-08-05 Thread Steve Dugas
Hi - you can use NumToStr() function for title formatting... Title= Pctval = + EncodeColor(SelectedValue(dyn_col)) + NumToStr( pctval, 1.2 ) + %; Steve - Original Message - From: doedau don.edwa...@doir.wa.gov.au To: amibroker@yahoogroups.com Sent: Wednesday, August 05, 2009 2:38

Re: [amibroker] AmiBroker 5.27.0 ALPHA released

2009-08-03 Thread Steve Dugas
Hi TJ - Re the new QP plugin, I think you are aware that Gary has added Morningstar industry classification ( tickers !HMxxx ) and that your old plugin would not retrieve these tickers from QP for some reason and that Gary has released a modified version of your plugin that will retrieve these

Re: [amibroker] RestorePriceArrays()

2009-07-31 Thread Steve Dugas
SetForeign(MSFT); Replaces the price arrays ( OHLC etc ) of the current ticker with those of MSFT Plot( Ultimate(), Ultimate from MSFT, colorRed ); Plots the Ultimate Oscillator derived from MSFT prices. That's just a simple example, there is lots of stuff you can do, for example you could

Re: [amibroker] Re: NAAIM Presentation -- How to Build an Effective Trading System

2009-07-23 Thread Steve Dugas
Hi - Go to www.blueowlpress.com , click on activities, scroll about 3/4 of the way down, see 2 presentations, Atlanta and Irvine. Steve - Original Message - From: Paolo Cavatore pcavat...@gmail.com To: amibroker@yahoogroups.com Sent: Thursday, July 23, 2009 4:24 AM Subject: [amibroker]

Re: [amibroker] Re: AmiBroker 5.26.5 BETA released

2009-07-12 Thread Steve Dugas
Hi - In case you might find it useful, I often use a little piece of code like this to lock in charts for different tickers... Steve Ticker = ParamStr( Ticker, CURRENT ); if ( Ticker != CURRENT ) { SetForeign( Ticker, True, True ); TickerName = Ticker; } else TickerName =

Re: [amibroker] Re: AmiBroker 5.26.5 BETA released

2009-07-12 Thread Steve Dugas
of the operations in AB that requires a heavier overhead. 2. difficult to use this method when you have he same piece of code (insert linked) on 8 charts all looking at different symbols... --- In amibroker@yahoogroups.com, Steve Dugas sjdu...@... wrote: Hi - In case you might find it useful, I often use

Re: [amibroker] how to feed data from tdameritrade (quotetracker)

2009-07-06 Thread Steve Dugas
Hi - There is currently no TDAM plugin and as far as I know TJ is not writing one. If you are a programmer, perhaps you could use their API docs to write one, or the easier approach would be to turn on QT's internal server, feed TDAM data into QT, and then follow the directions in AB's user

Re: [amibroker] Auto trading with TD AMERITRADE

2009-07-06 Thread Steve Dugas
Hi - Please see my earlier post that I just sent a minute ago. Steve - Original Message - From: livinloud_1104 kapishmoh...@yahoo.com To: amibroker@yahoogroups.com Sent: Sunday, July 05, 2009 12:22 PM Subject: [amibroker] Auto trading with TD AMERITRADE Hello, I am looking for an

[amibroker] Attachments

2009-07-05 Thread Steve Dugas
Hi TJ - Don't know how you or the others feel about it, but if you are interested, here are some instructions I saw that allows a group owner to change their preferences so that full attachments are sent out again instead of only links to them. I always liked receiving the full attachments. 8

Re: [amibroker] No quotesplus plugin

2009-06-17 Thread Steve Dugas
Hi - If I remember right, I *think* it will only show up if you already have QP installed when you install AmiBroker. Also FYI, Gary at QP has updated TJ's plugin to give you a choice of either their old IRL sector / industry assignments or thier new Morningstar structure. In fact I beleive

Re: [amibroker] Re: A question of style

2009-06-17 Thread Steve Dugas
I find this little utility almost indispensible when tweaking different versions of my AFL's, and it's free to boot! http://download.cnet.com/Files-Compare-Tool/3000-2248_4-10315688.html - Original Message - From: James To: amibroker@yahoogroups.com Sent: Wednesday, June 17,

Re: [amibroker] How to code a Adaptive StDev()

2009-06-13 Thread Steve Dugas
How to code a Adaptive StDev()Hi Herman - Not sure how fast it would be but possibly something along these lines? function xStDev( priceArray, Periods) // Periods 25 { global BBTop, BBBot; Periods = Max( 2, Min( 25, Periods ) ); BreakPoint = Min( 25, Highest( Periods ));

Re: [amibroker] How to code a Adaptive StDev()

2009-06-13 Thread Steve Dugas
++ ) { VarSet( SD + i, StDev( PriceArray, i ); } AdaptSD = 0; for( i = 2; i = BreakPoint; i++ ) { CurrSD = VarGet( SD + i ); AdaptSD = IIF( Periods == i, CurrSD, AdaptSD ); } return AdaptSD; } - Original Message - From: Steve Dugas

Re: [amibroker] How to code a Adaptive StDev()

2009-06-13 Thread Steve Dugas
to code a Adaptive StDev() Steve, I did not realize that I could append a number to a string in AFL without converting it first with NumToStr( i, 0.0). It looks like I have been missing a big shortcut all this time. BR, Dennis On Jun 13, 2009, at 1:26 PM, Steve Dugas wrote

Re: [amibroker] Re: Walk Forward Testing - Varies by Computer?

2009-06-06 Thread Steve Dugas
Hi Howard - between QP and Norgate, just wondering if you ever followed up on the differences in data and if you found one to be noticably cleaner than the other? Thanks very much! Steve - Original Message - From: Howard B To: amibroker@yahoogroups.com Sent: Saturday, June

[amibroker] Backtester / Optimizer Take Multipe Codes?

2009-06-06 Thread Steve Dugas
Hi TJ / All - I just was wondering if you think it might be possible / desirable someday to make the backtester / optimizer work like the charting currently works, i.e. instead of PICK one code to work with, we could ADD a code and then ADD one or more additional codes, and they would be kept

Re: [amibroker] Re: Newbie Array / Looping Question

2009-06-05 Thread Steve Dugas
Hi - There is a page in the users guide that lists which functions will accept an array for the Periods arg, the rest expect a constant... http://www.amibroker.com/guide/a_varperiods.html Steve - Original Message - From: brian_z111 brian_z...@yahoo.com To: amibroker@yahoogroups.com

Re: [amibroker] Peakbars

2009-06-02 Thread Steve Dugas
Hi - it uses the Zig function to determine the peaks, so change is the % change needed for a new legs of the zig zag. See Zig function for more details. Steve - Original Message - From: lucianomt lucian...@gmail.com To: amibroker@yahoogroups.com Sent: Tuesday, June 02, 2009 4:16 PM

Re: [amibroker] Question re price field parameter

2009-05-30 Thread Steve Dugas
I believe that TJ initializes his ParamField variable to -1, which is the first plot on the chart, and that name is added at the bottom of the param list. Try editing the default name of the original price plot to TEST to see what I mean. Steve - Original Message - From: Tony

Re: [amibroker] How to increment dates in a for loop?

2009-05-12 Thread Steve Dugas
I would think you could associate your dates to BarIndex() and increment that by 100, something like... BegISbar = Valuewhen( DateNum() == BegISdate, BarIndex() ); EndISbar = Valuewhen( DateNum() == EndISdate, BarIndex() ); ... for (FromISbarNum = BegISbar; FromISbarNum = EndISbar;

Re: [amibroker] What Can't Amibroker Do?

2009-04-30 Thread Steve Dugas
A couple of things I have been wanting for years that have not made it into AB yet - 1. Ability to use the Equity() line as feedback when trading NDO. The value of the current bar's equity changes when new data is downloaded and it becomes the next-to-last bar, causing signals to disappear or

Re: [amibroker] individual optimization

2009-04-22 Thread Steve Dugas
';' Microsoft Jscript compilation error. Is there something Im doing wrong? --- On Wed, 4/22/09, Steve Dugas sjdu...@comcast.net wrote: From: Steve Dugas sjdu...@comcast.net Subject: Re: [amibroker] individual optimization To: amibroker@yahoogroups.com

Re: [amibroker] individual optimization

2009-04-21 Thread Steve Dugas
Hi - You can try these, there are some directions at the top of the codes. You need to rename the .jsabc file back to .js ( jscript ). Only problem is you can't sort by ticker, you can see where I tried to add a sortable column via CBT for just the ticker but couldn't get it to work at the

Re: [amibroker] OT: Driver Scanner

2009-04-09 Thread Steve Dugas
Hi Ara - If you mean one of those apps that automatically tells you whenever a newer version of your software/drivers is available, I tried a couple of those over the years. Both times I eventually screwed up my computer by installing a newer driver that they found and recommended. My attitude

Re: [amibroker] Re: Discretionary Equity

2009-03-30 Thread Steve Dugas
Done. - Original Message - From: ang_60 ima_c...@yahoo.it To: amibroker@yahoogroups.com Sent: Monday, March 30, 2009 5:39 AM Subject: [amibroker] Re: Discretionary Equity --- In amibroker@yahoogroups.com, Steve Dugas sjdu...@... wrote: Hi - I was playing with TJ's discretionary

Re: [amibroker] Re: Discretionary Equity

2009-03-30 Thread Steve Dugas
Thank you Blair! Steve - Original Message - From: Blair snoopy.p...@gmail.com To: amibroker@yahoogroups.com Sent: Monday, March 30, 2009 4:26 PM Subject: [amibroker] Re: Discretionary Equity -Steve et All: For your variables, you might want to check out the UKB article 2.13

Re: [amibroker] BarsSince Question

2009-03-28 Thread Steve Dugas
First it finds the HHV(C,126). Presumably that will be a positive number ( i.e., TRUE ) on every bar, including the current bar, so BarsSince reports 0 bars since it was last true. Plotting the arrays can show you step-by-step how it arrives there... Steve D - Original Message -

Re: [amibroker] Re: Performance of anti virus programs

2009-03-26 Thread Steve Dugas
regards, Tomasz Janeczko amibroker.com - Original Message - From: Steve Dugas sjdu...@comcast.net To: amibroker@yahoogroups.com Sent: Thursday, March 26, 2009 4:53 PM Subject: Re: [amibroker] Re: Performance of anti virus programs Hi - FWIW, the latest Norton product has been seriously

Re: [amibroker] SETFOREIGN does not give me the correct answer ...

2009-03-24 Thread Steve Dugas
Hi - I don't believe SetForeign resizes the arrays, I think it just overwrites the contents. I ran into that in the past, I think what I did was to set the current ticker to an index or something with a very long history and then search for the first non-null value. Might want to do a quick

Re: [amibroker] Discretionary Equity

2009-03-22 Thread Steve Dugas
, March 21, 2009 8:52 PM Subject: Re: [amibroker] Discretionary Equity Very Nice Steve, thank you for the improvements, very nice. I use Discretionary Equity every day, will give it a try Monday (the next trading day). Jon --- On Sat, 3/21/09, Steve Dugas sjdu

Re: [amibroker] Discretionary Equity

2009-03-22 Thread Steve Dugas
Subject: Re: [amibroker] Discretionary Equity Very Nice Steve, thank you for the improvements, very nice. I use Discretionary Equity every day, will give it a try Monday (the next trading day). Jon --- On Sat, 3/21/09, Steve Dugas sjdu...@comcast.net wrote

[amibroker] Discretionary Equity

2009-03-21 Thread Steve Dugas
Hi - I was playing with TJ's discretionary equity code from a few years ago and made some changes, just thought I would post in case anyone might find it useful. Your discretionary trades will be lost when you shut down AB but I am having fun with it so may figure out how to write the trades to

Re: [amibroker] AmiBroker 5.23.0 BETA released

2009-03-04 Thread Steve Dugas
Hi TJ - Haven't had a chance to try the new column features yet but just wanted to say thank you, it looks like a great solution that you implemented !! BTW ( for anyone who might know ), is there going to be an AB conference this year? I thought it was usually in Feb but Feb is gone now and

Re: [amibroker] Retrieving DB name via AFL

2009-03-02 Thread Steve Dugas
GetDatabaseName() - Original Message - From: sidhartha70 sidharth...@yahoo.com To: amibroker@yahoogroups.com Sent: Monday, March 02, 2009 4:43 PM Subject: [amibroker] Retrieving DB name via AFL Hi All, Is there a way of returning the current DB name via AFL...? TIA

Re: [amibroker] Creating a Year over Year comparison screen

2009-02-13 Thread Steve Dugas
Hi - That is an idea, let me look at it over the long weekend, maybe I can add it. Steve - Original Message - From: Snoopy To: amibroker@yahoogroups.com Sent: Thursday, February 12, 2009 9:44 PM Subject: Re: [amibroker] Creating a Year over Year comparison screen Steve,

Re: [amibroker] Re: Creating a Year over Year comparison screen

2009-02-11 Thread Steve Dugas
Seasonality there to set Attached is the chart I end up on the third overlay along with the Parameters box and the updated afl too Thank you for your help MarkK From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Steve Dugas

Re: [amibroker] Re: Creating a Year over Year comparison screen

2009-02-11 Thread Steve Dugas
to it Thank you Mark From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Steve Dugas Sent: Wednesday, February 11, 2009 2:36 PM To: amibroker@yahoogroups.com Subject: Re: [amibroker] Re: Creating a Year over Year comparison screen

Re: [amibroker] Re: Creating a Year over Year comparison screen

2009-02-11 Thread Steve Dugas
@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Steve Dugas Sent: Wednesday, February 11, 2009 3:47 PM To: amibroker@yahoogroups.com Subject: Re: [amibroker] Re: Creating a Year over Year comparison screen Hi Mark - I just looked at the code you posted, looks like it has some

Re: [amibroker] Re: Broker and bank reliability: leave trading?

2009-02-09 Thread Steve Dugas
Hi - I was really worried about this stuff a few months ago when the whole world started collapsing and did a bit of research. I ended up distributing my funds better, I have it divided between 4 brokers now, a real PITA for trading but at least only 25% of the funds are at risk with any one

Re: [amibroker] Re: Date Sorting seems odd in Explore

2009-02-06 Thread Steve Dugas
Hi - I didn't try to reproduce your results, but perhaps if you added 3 seperate columns - Year(), Month() and Day(), then you could use the Shift key to do a multi-coilumn sort? Steve - Original Message - From: gmorlosky gmorlo...@yahoo.com To: amibroker@yahoogroups.com Sent:

Re: [amibroker] Is it possible to format the added metrics in custom backtester

2009-02-04 Thread Steve Dugas
Hi - from the users guide... bool AddCustomMetric( string Title, variant Value, [optional] variant LongOnlyValue, [optional] variant ShortOnlyValue , [optional] variant DecPlaces = 2 ) ...code would look something like this, last zero means no decimal places... bo.AddCustomMetric( MF,

  1   2   3   4   5   >