Re: [amibroker] Re: Scale in

2010-03-28 Thread Sidney Kaiser
booker, thanks, I'll go thru it tomorrow. Sid --- On Sun, 3/28/10, booker_1324 wrote: From: booker_1324 Subject: [amibroker] Re: Scale in To: amibroker@yahoogroups.com Date: Sunday, March 28, 2010, 7:09 PM Here is some code that I got from bits and pieces from this message board. I believe

[amibroker] Re: Scale in

2010-03-28 Thread booker_1324
Here is some code that I got from bits and pieces from this message board. I believe that Mike and others posted some of the code. It is a good start for you to try. SetTradeDelays(0, 0, 0, 0); MaxOpenTrades = GetOption("MaxOpenPositions"); if (Status("stocknum") == 0) { _TRACE("DBGVIEWCL

[amibroker] Scale In

2010-03-28 Thread Sidney Kaiser
Mike, thanks for the link to that message.  It looks like Carl V. and I are working on the same system.  .  I did a search on ScaleIn  but didn't come up with much.  Yahoo searching is such a crap shoot.  There are a few things in your code that I'll need to study to see what they are doing but

[amibroker] Trading from Amibroker

2010-03-28 Thread Antonio Jordao Jr
Does anyone knows a plugin or program that allows me to communicate Amibroker with Excel and send the BUY and SELL orders to it? I am not able to trade from Amibroker in my country, but I do have some trading softwares here that can receive inputs from Excel. If I could link both, I will be abl

[amibroker] Re: Scale in

2010-03-28 Thread Mike
Hi There were a few threads recently on the topic of scaling in. Start with this one and see if it helps (p.s. do a search on sigScaleIn for more posts). http://finance.groups.yahoo.com/group/amibroker/message/146956 Mike --- In amibroker@yahoogroups.com, Sidney Kaiser wrote: > > > Trying to

[amibroker] Re: Stepping thru loop

2010-03-28 Thread Mike
Booker, Your crossover example would be a future leak only if you made use of the fact at bar X that a crossover did or did not happen at some later point, say bar X + Y. It's not so much an issue of having used a loop to gather the information. But rather, that the information gathered is bei

[amibroker] Scale In csv file [1 Attachment]

2010-03-28 Thread Sidney Kaiser
H, the csv file didn't make it...trying again on that part.   Sid

[amibroker] Scale in

2010-03-28 Thread Sidney Kaiser
Trying to code up Larry Connors TPS entry conditions.    I finally have to figure out how to scale into a position.  Reading though the help files and old emails I thought I understood it, butapparently not. I was thinking the first buy line would buy one lot and then the other buys (current

[amibroker] get currently open trades

2010-03-28 Thread nunopires2001
Hi, I am testing a trading system setting max open positions = 10. I would like to add some conditions, based on currently number of open positions. Lets say, if I have less than 5 open positions I will make my buy conditions less restrictive. Is this possible to do with Amibroker? Thanks

[amibroker] Re: Logic Block

2010-03-28 Thread Rob
Worked it out Herman... using BarIndex() is the way to do it... Thanks --- In amibroker@yahoogroups.com, "Rob" wrote: > > Yeah I thought of that Herman... problem is I don't know if that element > where the 4 was will actually contain a 4 or another number... could contain > a 6 or an 8... etc

[amibroker] Re: Logic Block

2010-03-28 Thread Rob
Yeah I thought of that Herman... problem is I don't know if that element where the 4 was will actually contain a 4 or another number... could contain a 6 or an 8... etc Ummm... maybe I'm looking only at a looping solution. I hate looping. --- In amibroker@yahoogroups.com, Herman wrote: > > Pe

Re: [amibroker] Logic Block

2010-03-28 Thread Herman
Perhaps something along this line (untested). Note you look forward from array2, if it finds a 4 four places ahead you substitute a newvalue Array2 = iif( ref( array1), 4) == 4, newvalue, Array2); herman > Hi All, > I seem to have a hit a logic block... not sure why. > Let's say I hav

[amibroker] Logic Block

2010-03-28 Thread Rob
Hi All, I seem to have a hit a logic block... not sure why. Let's say I have the following array, 0 0 0 0 0 0 0 0 4 0 0 0 0 0 Now, lets say when I see the number 4, I want to change the value in another array 4 elements back (yes, the number relates to the number of elements back I want to cha

[amibroker] Re: Is saving a Trading Desktop image possible?

2010-03-28 Thread Rob
I have used Deskpot before... but not the one you mention. Right now I don't have a need... but may again in the future. In my experience there is no disadvantage. They are very useful pieces of software (as a mac user I am used to 'spaces' so wanted something similar for Windows). As long as t

[amibroker] Re:Foreign Function

2010-03-28 Thread jollypollyanna
To simplify changing from one index to the next for explorations/scans/back testing, I have to tried to implement a Param switch to be used from the "Parameters" settings in AA. Although it looks like it could work, it doesn't. [:-?] Probably because "ticker" is not being connected through "Index"

Re: [amibroker] Re: Is saving a Trading Desktop image possible?

2010-03-28 Thread Herman
Thanks Rob, so they these programs Virtual Desktops... this looks like a nice product: http://www.otakusoftware.com/deskspace/see/ Reasonably priced to. If I leave my computer on all the time, or let it go to sleep, this product would save me a lot of time. I wonder what the disadvantages

Re: [amibroker] Array returned from function seems to be empty within Custom Backtester

2010-03-28 Thread Tomasz Janeczko
Hello, Code inside custom backtester is executed with ~~~EQUITY as current ticker And Equity at the point of preprocess is flat (= initial equity). You would need to use SetForeign if you want to use different ticker http://www.amibroker.org/userkb/2008/03/16/amibroker-custom-backtester-interface

[amibroker] Re: Is saving a Trading Desktop image possible?

2010-03-28 Thread Rob
Take a look here Herman... http://lifehacker.com/5358291/five-best-virtual+desktop-managers or http://www.sevenforums.com/virtualization/2137-virtual-desktop-7-a-3.html

[amibroker] Array returned from function seems to be empty within Custom Backtester

2010-03-28 Thread jacek_lempart
Hi All, Could anyone tell me why ALWAYS anything returned by ATR() is 0.0 within the for loop in the Custom Backtester? I will be extremely grateful for your hints here. regards /* CODE */ SetCustomBacktestProc(""); if( Status("action") == actionPortfolio ){ bo = GetBacktesterObject();

[amibroker] Re: Stepping thru loop

2010-03-28 Thread booker_1324
Mike, First I want to thank you for your detailed answer and all the help you have given me. I think that I understand what you are saying but I will have to ponder it some more. I gather that the loop is the culprit by allowing the highs and lows to gather information. So am I correct in s

[amibroker] sig.Reason (for exit)

2010-03-28 Thread wml67
Say, the exit condition you have set in your formula is happily satisfied. Incidentally, on the very same bar, the N-bar stop also works. Which exit reason would you like to be shown in the report? If you're debugging your stops - than, probably, N-bar. But if you're evaluating the overall strateg

[amibroker] IB Controller from C++ plugin

2010-03-28 Thread tiedemj
Assume it's possible to call IB Controller directly from an AmiBroker c++ plugin. Can anybody show how to do it in native c++? Best regards

[amibroker] Re: Stepping thru loop

2010-03-28 Thread Mike
Booker, Sounds like the code is fine for your intended usage (i.e. dynamically changing chart for reference during live trading, with the understanding that the labels will jump around as new data comes in). AmiBroker's check for future leaks is limited. It cannot possibly analyze all your log