[amibroker] Re: anybody try to launch broker thro c#

2009-01-13 Thread tuzo_wilson
--- In amibroker@yahoogroups.com, "murthysuresh" wrote: > > i seem to get compile errors and obviously am doing something wrong. If you want to continue the approach you started then you will have to use the System.Reflection namespace to use late binding. For example: Type brokerT

[amibroker] Re:A New Look at RSI

2009-01-13 Thread richpach2
This is just an untested idea but, one could use IIF statement UP = IIf(C > O, (C-O), 0); //store UP value in UP variable array (if Upday then UPvalue = Close-Open, if not an UPday then = 0 U = EMA(UP, period); //smooth UP array Can you post a link to this article so, I can uderstand the idea a

[amibroker] Re:A New Look at RSI

2009-01-13 Thread richpach2
Hi Carl, Is this article available on the net? Do you have a URL you can post? Regards Richard --- In amibroker@yahoogroups.com, "Carl Vanhaesendonck" wrote: > > Hi Dick, > > > > To me those 2 formulas are slightly different. As a metter of fact > (coïncidence!) there is also an excellent

RE: [amibroker] Help With McClellan Osc

2009-01-13 Thread larypowell
Howard, I appreciate the help, but am getting a syntax error, maybe someone with eSignal can assist? Thanks, Larry _ From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Howard B Sent: Tuesday, January 13, 2009 2:26 PM To: amibroker@yahoogroups.com Subj

[amibroker] Off Topic - Finger lenght may predict financial success!!!

2009-01-13 Thread Jerry Gress
Hello All, Researchers at the University of Cambridge (that's in England) found when the ring finger is longer than the index finger, traders make 11 times more than their counter parts. Article below, might have to past. http://www.comcast.net/articles/news-science/200

[amibroker] Re: Futures Trading, Scalling out - Backtest

2009-01-13 Thread Pete
This did not help. But thanks for responding. I am already using zero trade delays. Back to the drawing board. Pete :-) \--- In amibroker@yahoogroups.com, "onelkm" wrote: > > This is what was posted a while back regarding scaling out; hope > it helps > Larry > > Re: [amibroker] Re: Scaling

[amibroker] anybody try to launch broker thro c#

2009-01-13 Thread murthysuresh
i seem to get compile errors and obviously am doing something wrong. Type brokerType; object brokerObject; brokerType = Type.GetTypeFromProgID("Broker.Application"); brokerObject = Activator.CreateInstance(brokerType); object commentary=brokerObject.Commentar

[amibroker] Set max number of bars to be displayed in a chart?

2009-01-13 Thread tradinghumble
Hello, I'm looking for a way to display only the last 2 days for example (15 mins chart) in a chart... is there a way to accomplish it? I have multiple small charts and every time I restart AB they display the number of bars to load (from preferences) -- I'm trying to work around that behaviour.

Re: [amibroker] Help With McClellan Osc

2009-01-13 Thread Howard B
Hi Lary -- The McClellan Oscillator is based on the number of advancing issues minus the number of declining issues. Subtract a slower exponential moving average of that from a faster moving average of that. Looking at this web site: http://forum.esignalcentral.com/showthread.php?s=91481c8fcaafc

Fw: [amibroker] Re: PairTrading on Amibroker

2009-01-13 Thread loveyourenemynow
www.r-project.org/ i think somebody has also developed a AB R plugin n-vector means it is not only a pair, but a system of n securities which are co-integrated --- In amibroker@yahoogroups.com, "Huanyan" wrote: > > And what is "R", is it some other software ? > > When backtesting pairs trading

Re: [amibroker] Re: Telechart Volume Data Error when read by Amibroker

2009-01-13 Thread Steve Dugas
Hi Werner - In my experience using plugins like TC and QP, any changes along those lines, if AB even allows you to make them, are likely to be overwritten the next time the plugin reads the 3rd-party DB, which you must do from time to time if you want to get new issues, etc. One thought, if you

[amibroker] Display next day's target Buy or Sell

2009-01-13 Thread Andy
Where in AmiBroker software does it display the next day's Buy or Sell targets? I take it that the script that I'm using just uses EOD data to compute a Buy or Sell signal for the next trading session when backtesting. I see the variables "BuyPrice" and "SellPrice" but like to report it for the

[amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread bruce1r
This thread was getting long :) Try this - // Lookback interval - example covers > 1 week window = 8; // Test with true condition = first of week Condition = IIf( DayOfWeek() < Ref( DayOfWeek( ), -1 ), 1, 0 ); bi = BarIndex( ); //-- THIS DOES THE WORK -

[amibroker] Re: How NOT to show all the built-in metrics in the backtester?

2009-01-13 Thread ozzyapeman
I asked this Q on the board a few weeks ago, and the consensus was "no". But you can export the report using OLE and run an exploration showing only the columns you want: http://finance.groups.yahoo.com/group/amibroker/message/132540 --- In amibroker@yahoogroups.com, "huanyanlu" wrote: > > Hi

[amibroker] Re: Futures Trading, Scalling out - Backtest

2009-01-13 Thread onelkm
This is what was posted a while back regarding scaling out; hope it helps Larry Re: [amibroker] Re: Scaling out example code does NOT work Re: Scaling out example code does NOT work Hi Howard, Thanks for the reply. I have recently learned from Tomasz that trade delays must be all set to ZE

[amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread sidhartha70
Thanks Ed. I'll take a look at this idea. --- In amibroker@yahoogroups.com, "Edward Pottasch" wrote: > > hi, > > you could shift the array. > > for instance jj1 is an array with 1 and 0 > > then: > > // calculate bars since last occurunce of 1 > kk1 = BarsSince(jj1); > // shift jj by that a

Re: [amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread Edward Pottasch
hi, you could shift the array. for instance jj1 is an array with 1 and 0 then: // calculate bars since last occurunce of 1 kk1 = BarsSince(jj1); // shift jj by that amount and so remove the last occurrence of 1, save result in jj2 jj2 = Ref(jj1,-LastValue(kk1)-1); // now shift jj2 back by

Re: [amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread Edward Pottasch
hi, you could shift the array. for instance jj1 is an array with 1 and 0 then: // calculate bars since last occurunce of 1 kk1 = BarsSince(jj1); // shift jj by that amount and so remove the last occurrence of 1, save result in jj2 jj2 = Ref(jj1,-LastValue(kk1)-1); // now shift jj2 back

[amibroker] Help With McClellan Osc

2009-01-13 Thread larypowell
I am trying to get McClellan Osc to work with eSignal data The following formula does not seem to work, any advice would be appreciate. /* McClellan Oscillator */ Graph0 = EMA( AdvIssues("$advq",(C))-DecIssues("$declq",(C)), 19 ) - EMA( AdvIssues("$advq",(C))-DecIssues("$declq",(C)

[amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread sidhartha70
Well lets just look at a pretend array... I think that puts it in its simplest context Effectively what I'm trying to do is replicate EXACTLY the functionality of BarsSince() but instead of starting from the most current array element and moving backwards, I want to start a specified number of

[amibroker] Yahoo Real-Time quotes web address

2009-01-13 Thread raintree26
Real-time quotes available here http://billing.finance.yahoo.com/realtime_quotes/signup?.src=quote&.refer=quote

Re: [amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread wavemechanic
Don't have time now to think about it and it would be easier if you posted the code instead of working with a moving target. However, off the top of my head you might be able to avoid looping by using brute force. For example, if the range is 5 bars then you could test the 5th bar back with ii

[amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread sidhartha70
SelectedValue() works Bill... Thanks. However, the problem I'm having is that I'm using this in AFL code and I want it to complete the historical array if you like, not just off a SelectedValue() but with each value of Sum(x,range) as ir changes... which it's looking like is not possible. Horribl

Re: [amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread wavemechanic
OK. Yes, need selectedvalue. - Original Message - From: wavemechanic To: amibroker@yahoogroups.com Sent: Tuesday, January 13, 2009 7:42 AM Subject: Re: [amibroker] Re: Finding the last true value in an array... Have you tried it or are just "not sure"? Works for me and ca

[amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread sidhartha70
Nope, I've tried it Bill... I get an Error 5, Argument #3 has incorrect type on the ValuneWhen() line... --- In amibroker@yahoogroups.com, "wavemechanic" wrote: > > Have you tried it or are just "not sure"? Works for me and can move to any bar and get the "selectedvalue". If in doubt use sel

[amibroker] Re: Telechart Volume Data Error when read by Amibroker

2009-01-13 Thread wernerg97
Thanks Steve, Putting that code into every indicator that uses volume is going to be a drag but I guess that's the only choice. Is there a way to permanently embedd the corrected volume for that day into Amibroker's database so that it overrides the data that it mis- reads in Telechart? --- I

Re: [amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread wavemechanic
Have you tried it or are just "not sure"? Works for me and can move to any bar and get the "selectedvalue". If in doubt use selectedvalue(sum()). - Original Message - From: sidhartha70 To: amibroker@yahoogroups.com Sent: Tuesday, January 13, 2009 6:01 AM Subject: [amibroker]

[amibroker] Re: Finding the last true value in an array...

2009-01-13 Thread sidhartha70
Actually Bill, not sure this works... since the 3rd argument in ValueWhen() is required to be a number and not an array. Could use LastValue() to turn it into a number, but of course this only returns the value from the right hand edge of the chart... so it wouldn't work historically... which is wh