[amibroker] Trailing Time Period

2010-03-14 Thread rise_t575
Hallo, I'm brandnew to Amibroker and AFL (and the last time I've been coding was in my childhood) and trying my first steps here. Could someone give me at least a pointer how I could code the following scenario: A graph that counts the number of times a condition is met in a trailing "time wi

[amibroker] Intraday Settings different Instruments

2010-03-24 Thread rise_t575
Is it possible to define different intraday settings (e. g. trading hours) for say, stocks and futures with IB, within one single database? Thanks in advance!

[amibroker] Re: Intraday Settings different Instruments

2010-03-25 Thread rise_t575
tml > > Regards, dubi > > > --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Is it possible to define different intraday settings (e. g. trading hours) > > for say, stocks and futures with IB, within one single database? > > > > Thanks in advance! > > >

[amibroker] Grid & Snap-To for Windows

2010-03-29 Thread rise_t575
Hello, I have two pretty easy questions the solution of which I haven't figured out so far: 1.) Is there an automatic way to arrange chart windows in grid style (like 3x3)? 2.) Is there a snap-to-window feature in order to freely arrange multiple windows more easily (i. e. prevent overlapping

[amibroker] Re: Grid & Snap-To for Windows

2010-03-29 Thread rise_t575
rt chart chart chart chart chart chart chart chart chart chart chart --- In amibroker@yahoogroups.com, "Rob" wrote: > > Window > Tile horizontal or Tile Vertical...? > > Floating windows automatically snap. > > --- In amibroker@yahoogroups.com, "rise_t575" wr

[amibroker] Re: Grid & Snap-To for Windows

2010-03-29 Thread rise_t575
o it yourself I guess... > > --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > > > > > Rob, > > > > Thank you - floating windows do snap indeed (had missed this somehow). > > > > But Tile Horizontal or Tile Vertical on

[amibroker] Re: Quotes Plus EPS Rank?

2010-03-31 Thread rise_t575
Greetings, As a quick add-on to that question: How can I access the "Up to 20 quarters of eps and revenue numbers" which are obviously in the Quotes Plus database? Is this possible at all with the current AB version? Thanks in advance!

[amibroker] Automatic Analysis/Results -> Chart Focus

2010-04-02 Thread rise_t575
Happy Easter to all of you! Is there a way (that I missed) to get AB to automatically focus the chart to the signal bars (i. e. the bars where the trades take place) when I click on one of the ticker symbols in the "Results" frame? It's a bit tiresome to always scroll through the chart to find

[amibroker] Sell & ApplyStop

2010-04-15 Thread rise_t575
Hello, I guess I have a small problem with understanding the ApplyStop function. If I want to use the stop defined by the ApplyStop function as my only stop (e. g. stopTypeNBar for exiting after n days), the backtester still wants some condition for the "Sell" array (sell = ...), although I don

[amibroker] Re: Sell & ApplyStop

2010-04-15 Thread rise_t575
a value in there, the backtester won't work. > > Chris > > - Original Message - > From: rise_t575 > To: amibroker@yahoogroups.com > Sent: Thursday, April 15, 2010 1:19 PM > Subject: [amibroker] Sell & ApplyStop > > > > Hello, >

[amibroker] Re: Sell & ApplyStop

2010-04-16 Thread rise_t575
10); > ApplyStop(stopTypeNBar,stopModeBars,nbs); > > These settings, they work too. I've run some backtests today and they all > get out at 141 bars (day after the 140 default setting above). > > So, this is the proper way. > > I hope that helps. > > Chr

[amibroker] Entry signals only on day one of testing period

2010-05-17 Thread rise_t575
Hi all, I am looking for a way to... 1) Generate entry signals ON DAY ONE OF THE BACKTESTING PERIOD ONLY for stocks that fulfill one (or various) criteria on that day. 2) Hold all of these positions until the end of the backtesting period (or alternatively, for a specific number of bars). 3)

[amibroker] Re: Entry signals only on day one of testing period

2010-05-17 Thread rise_t575
Thanks again, Mike - this is of great help as I wasn't even aware of the STATUS function. Just perfect. Thanks! --- In amibroker@yahoogroups.com, "Mike" wrote: > > Buy = Status("firstbarinrange"); > Sell = Status("lastbarinrange"); // vs. BarsSince(Buy) >= ...; > > http://www.amibroker.com/guid

[amibroker] Backtest with non-existent data ;-)

2010-05-18 Thread rise_t575
Hi again, Sorry for the strange title, but I unfortunately I don't know of a better way to express this... I've just run a backtest of a time range pre-2000 with QP data and did not get one single trade (worked perfectly with post-2000 data). I've isolated the problem, but I don't know of a wa

[amibroker] Re: Backtest with non-existent data ;-)

2010-05-18 Thread rise_t575
ire the alert once, so if > going that route you would probably want to use a static variable to track > whether or not the alert was fired. > > Mike > > --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Hi again, > > > > Sorry for t

[amibroker] Re: Backtest with non-existent data ;-)

2010-05-18 Thread rise_t575
t; EPSRank itself and seen that there were no values. > > > > Hopefully that'll at least be enough to point you in a direction. > > > > Mike > > > > --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > >> Thanks a lot Mike, &

[amibroker] Re: Backtest with non-existent data ;-)

2010-05-18 Thread rise_t575
broker.com/guide/afl/afl_view.php?_trace > > If you are using CBT and "detailed result" you can also use > RawTextOutput method > from backtester interface. > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-05-19 00:21, rise_t575 wrote: > >

[amibroker] Re: AB's vertigo

2010-05-19 Thread rise_t575
While I am a fairly new AB user, may I take this opportunity to suggest a more modularized form of afl code organization (or even of AB itself - but that's off topic), which stresses (and gives a general framework for) the different essential elements of a trading system; i. e. indicators, ent

[amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins

2010-05-21 Thread rise_t575
Using Win7 64 bit with IB. I (and others) have recently had some nasty problems when running IB TWS with 64 bit Java, though (as usual, IB support is denying the existence of any problem). https://www.interactivebrokers.com/smf/index.php?topic=84200.0 Running IB TWS with 32 bit Java ru

[amibroker] Switching Optimization Variable from backtest code

2010-05-21 Thread rise_t575
Hallo all, Is there a way to use various optimization functions in the backtest code and switch them e. g. via the ParamList function? I've been trying to do this using some conditional code for the optimization functions, but it seems that the backtester is using every optimization function i

[amibroker] Re: Switching Optimization Variable from backtest code

2010-05-21 Thread rise_t575
Hey Herman, Thank you for your reply. I've already done that as an additonal feature (and it works), but I cannot change the variable being optimized itself (optimize for exit after x bars, optimize for RS Rank entry filter, etc) that way. The way I do it right now is writing various alte

[amibroker] Re: Switching Optimization Variable from backtest code

2010-05-21 Thread rise_t575
user wants to change the optimized variable. --- In amibroker@yahoogroups.com, "rise_t575" wrote: > Hey Herman, > > Thank you for your reply. > > I've already done that as an additonal feature (and it works), but I cannot > change the variable being optimized itself (o

[amibroker] Re: Switching Optimization Variable from backtest code

2010-05-21 Thread rise_t575
t;Vary Trading Mode -- ", > > "No|Yes", 0 ); > > > > if (Vary_TradingMode){ > > TradingMode = Optimize( "TradingMode", TradingMode_Param, 1, 3, 1) ; > > } > > else{ > > TradingMode = TradingMode_Default_Value ; > > } > > >

[amibroker] Configuring AB efficiently for parallel use of daily & intraday data

2010-06-09 Thread rise_t575
Hi all, Before I try to re-invent the wheel: What is the most efficient way of installing / configuring AB for daily (and possibly parallel) use for backtesting etc (Quotes Plus, daily data) and actual trading (Interactive Brokers, intraday data)? Two separate installations? Thanks very much i

[amibroker] Re: Value Investing with Amibroker?

2010-06-09 Thread rise_t575
Dennis, I'm doing this with the Quotes Plus database which has a build-in EPS rank, which you can access by using the following AFL code: EPSRank = GetExtraData( "EPSRank" ); I am still wondering if and how I can access the other fundamental data provided by the Quotes Plus database, though.

[amibroker] Interactive Brokers / Futures - Midpoint?

2010-06-09 Thread rise_t575
I usually use the (Bid-Ask) Midpoint when charting futures with IB's TWS charts as during times with low trading activity, the bid/ask moves around but there are not many actual trades. Thus, I consider the chart of the Midpoint a more accurate representation of price most of the time. As I hav

[amibroker] Re: Value Investing with Amibroker?

2010-06-09 Thread rise_t575
gt; enough to share these with the group some years ago. > > > > wrzec > > > > > > > > From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf > Of rise_t575 > Sent: Wednesday, June 09, 2010 5:09 PM > To: amib

[amibroker] Kinetick

2010-06-10 Thread rise_t575
Looks like an interesting new data feed (stocks, futures, forex - EOD & RT) - although I don't know how they are related to NinjaTrader: http://www.kinetick.com/ No - this is no ad or spam... ;-) I've just noticed them while playing around with NinjaTrader 7.

[amibroker] Percent Volatility Position Sizing

2010-06-28 Thread rise_t575
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 code if implimented correctly & in a non-specific, general way). The formula for the example of Volatilit

[amibroker] Re: How to mix systems

2010-06-29 Thread rise_t575
I'm pretty sure that TradingBlox Builder can do this. You code each system completely separately, and - as an overlay - in its GUI it has a convenient slider with which you can set the percent allocation for each system. On the risk management side, it has risk managment variables per system a

[amibroker] Re: AmiBroker running stinking slow on super fast new system ???

2010-06-29 Thread rise_t575
http://www.alienware.com/ ...? --- In amibroker@yahoogroups.com, "gmorlosky" wrote: > > I'm using alien technology (top secret Area 51 stuff) :-) > > --- In amibroker@yahoogroups.com, Keith McCombs wrote: > > > > Where on earth did you get the "50 times faster" from? > > > > On 6/27/2010 08:

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread rise_t575
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 _TRACE window is giving me are completely different (exclusive) than the ticker symbols that come up in the b

[amibroker] Re: How to mix systems

2010-06-29 Thread rise_t575
o it.. Would be a very big improvement.. > > > > --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > > > > > I'm pretty sure that TradingBlox Builder can do this. You code each system > > completely separately, and - as an ov

[amibroker] Re: How to mix systems

2010-06-29 Thread rise_t575
Oops - here's the URL: http://www.automated-trading-system.com/ --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Here is a blog from a system trader sharing his experience who started out > with Traders Studio (because it was less expensive than Trad

[amibroker] Re: How to mix systems

2010-06-29 Thread rise_t575
See below - I've realized this after a minute... --- In amibroker@yahoogroups.com, Keith McCombs wrote: > > rise -- > I think you forgot to add a link to the blog. > > On 6/29/2010 13:48, rise_t575 wrote: > > > > > > > > Here is a blog from a syst

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread rise_t575
ity, etc. all will play a role in allowing some signals to be > traded while filtering out others. > > Mike > > --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Thank you Mike. > > > > My knowledge of the custom backtester is still pr

[amibroker] Simple Question regading OOP

2010-06-29 Thread rise_t575
For my better understanding of OOP: When I copy an object property... e. g. CurrentEquity = bo.Equity; ... if the bo.Equity property changes afterwards, does the variable CurrentEquity change with it, or does it contain the old value? Thanks in advance!

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread rise_t575
ig.Symbol ); > _TRACE( NumToStr( dates[bar], formatDatetime ) + " " + > sig.symbol + " " + NumToStr( Test[bar] ) + " " + " " + NumToStr( bar ) > ); > // units = CurrentEquity * ( systemMMVolatilityPercent / 100 ) / > Test[bar];

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread rise_t575
Oh - forget my last question; I've just noticed it in the code. --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Thanks Mike. > > I'm using Quotes Plus as a database and had some problems recently (crashes > of AB when using too many GetExtraData

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread rise_t575
( NumToStr( dates[bar], formatDatetime ) + " " + > sig.symbol + " " + NumToStr( Test[bar] ) + " " + " " + NumToStr( bar ) > ); > // units = CurrentEquity * ( systemMMVolatilityPercent / 100 ) / > Test[bar]; > // sig.PosSize = sig.Price * units; >

[amibroker] Re: Percent Volatility Position Sizing

2010-06-29 Thread rise_t575
Thanks very much! --- In amibroker@yahoogroups.com, "Mike" wrote: > > 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 > > --

[amibroker] ApplyStop Internals

2010-07-08 Thread rise_t575
Hello, How does the ApplyStop function work internally - is there some array where the stop price values for each bar are stored (... and can I access them via the CBT)? Thanks in advance!

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

2010-07-09 Thread rise_t575
Just curious, What are you trying to achieve here? Standard Percent Volatility PS? Why do you multiply risk (how do you define risk) with 1%? --- In amibroker@yahoogroups.com, "pcmoxon" wrote: > > Hi, > > I am trying to write some AFL so I can backtest various trading systems for > forex. >

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

2010-07-09 Thread rise_t575
lation to determine the lots size to > trade. 'Risk' is a user input variable representing a percentage. > > Pete > > --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > > > > > Just curious, > > > > What a

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

2010-07-09 Thread rise_t575
The Percent Volatility Money Manager is online now at AB's AFL Libary: http://www.amibroker.com/members/library/detail.php?id=1306 --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > > > > I've coded exactly what I think that you want

[amibroker] Re: ApplyStop Internals

2010-07-09 Thread rise_t575
Bump. --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Hello, > > How does the ApplyStop function work internally - is there some array where > the stop price values for each bar are stored (... and can I access them via > the CBT)? > > Thanks in advance! >

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

2010-07-10 Thread rise_t575
Made a small change to the code; now the URL has changed: http://www.amibroker.com/members/library/detail.php?id=1307 --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > The Percent Volatility Money Manager is online now at AB's AFL Libary: > >

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

2010-07-10 Thread rise_t575
Mike, Just out of interest (as I've already solved this using CBT): Is it possible to code the following exact position sizing formula without using CBT? I think not, as one needs the updated current equity during the backtest (as with all PS models): psUnits = int( currEquity * ( pctVolaR

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

2010-07-12 Thread rise_t575
etPositionSize. AmiBroker will do the calculation for > how many shares that translates to, using the minimum shares size in the AA > Settings when rounding. > > SetPositionSize(( pctVolaRisk / 100 ) / ( ATR(period) * pointVal ), > spsPercentOfEquity); > > Mike > > ---

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

2010-07-12 Thread rise_t575
0; /* IMPORTANT: Set it also in the Settings: Initial Equity */ Risk = 0.01*Capital; PositionSize = (Risk/TrailStopAmount)*BuyPrice; ApplyStop( 2, 2, TrailStopAmount, 1 );" --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Mike, Tomasz, anyone: > >

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

2010-07-12 Thread rise_t575
d b) the actual entry bar (as for the correct way of doing this, the ATR value used for the ps calculation should be the actual ATR value of that specific entry bar). In order to change this, I guess you'd end up using CBT as well. --- In amibroker@yahoogroups.com, "rise_t575"

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

2010-07-12 Thread rise_t575
> is the ATR on a bar by bar basis, NOT a static value. Also, the position size > is calculated symbol by symbol, NOT once for all. > > Run the test using the proper fraction (i.e. including the price multiplier) > and you should get what you are wanting. > > Mike > >

[amibroker] Re: place of CBT in code?

2010-07-13 Thread rise_t575
My way of understanding this is that internally, the AB engine runs CBT code after the rest of the script code has been run, *regardless* of where it is placed within the script. --- In amibroker@yahoogroups.com, "chuck_win" wrote: > > "The custom backtest code is run *after* the rest of the

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

2010-07-13 Thread rise_t575
Price}; > > You can then say: > f) TotalPos = currEquity * P > > Which is expressed in AFL 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

[amibroker] Re: OT: Windows 7 - Mail Live Contacts

2010-07-14 Thread rise_t575
You might want to try Mozilla Thunderbird. Been using it for years, and it's running fine on Win7. --- In amibroker@yahoogroups.com, "Ara Kaloustian" wrote: > > I just switched to WIN 7 and using Mail Live for email program (with gmail > address). > > The contacts features seem to be very pri

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

2010-07-14 Thread rise_t575
Does anyone know *why* this option in the settings for Long/Short/Long & Short has been implemented? I mean, if there's a "Buy" variable in the code, the system includes going long, if there's a "Short" variable in the code, the system includes going short. Quite simple. Why does one need a s

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

2010-07-14 Thread rise_t575
cting things. > > 2. Try adding SetBarsRequired( sbrAll, sbrAll ); to the top of your code and > see if that makes a difference. > > 3. See the user guide for adding custom metrics on a trade by trade basis: > > http://www.amibroker.com/guide/a_custommetrics.html > > Mik

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

2010-07-14 Thread rise_t575
Mike, I've used your ps formula & switched to "Detailed Log" in the BT settings. I've chosen a trade somewhere in the middle of the backtest, so that current equity is not identical to the initial equity. I'm getting the following info: Trade Date: 2004-07-27 Enter Long, T, Price: 25.34, S

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

2010-07-14 Thread rise_t575
ition sizing (AA Settings option or 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 tha

[amibroker] Incorrect value of bo.Equity ...?

2010-07-15 Thread rise_t575
Hello, The following are the (debug) outputs of a tested position sizing algorithm. I've attached a) part of the code , b) the output of the _TRACE() function from within the CBT code (the TRACE function had been placed within the most inner "if{}" code block), and c) the output of the AA Resul

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

2010-07-15 Thread rise_t575
Hello, A short definition within each page of the AFL Function Reference/AB manual what type of parameter (scalar/array) is expected/allowed for the corresponding function would be a better place for this old known fact. That's where most people look at in such cases. --- In amibroker@yahoog

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

2010-07-15 Thread rise_t575
> discoverable. > > Mike > > --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > > > > > Hello, > > > > A short definition within each page of the AFL Function Reference/AB manual > > what type of parameter (scalar/arr

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

2010-07-15 Thread rise_t575
, > Tomasz Janeczko > amibroker.com > > On 2010-07-15 16:25, rise_t575 wrote: > > > > Hello, > > > > A short definition within each page of the AFL Function Reference/AB manual > > what type of parameter (scalar/array) is expected/allowed for the > >

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-15 Thread rise_t575
ts and the debugging logs are exactly identical when UsePrevBarEquityForPosSizing is True and when it is False. Is this some bug or isn't that setting being used when using CBT for position sizing? Thanks in advance! --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > He

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

2010-07-16 Thread rise_t575
ds, > Tomasz Janeczko > amibroker.com > > On 2010-07-15 18:37, rise_t575 wrote: > > > > Tomasz, > > > > Thanks for your reply. > > > > When I say "most", I obviously haven't counted them - it' just that to me > > (ok - thi

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-16 Thread rise_t575
ar or current bar equity, depending on setting, > and it will affect the size > of position open (if you are using spsPercentOfEquity or otherwise depend on > available equity) > > Recommended reading: > http://www.amibroker.org/userkb/2008/03/16/amibroker-custom-backtester-inte

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-16 Thread rise_t575
Btw - could you (or someone else) tell me where these equity values within the AA Results list (Detailed Log) are derived from that are stated after e. g. "ENTER LONG,..." lines? Thanks. --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Tomasz,

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-16 Thread rise_t575
equity, depending on setting, > and it will affect the size > of position open (if you are using spsPercentOfEquity or otherwise depend on > available equity) > > Recommended reading: > http://www.amibroker.org/userkb/2008/03/16/amibroker-custom-backtester-interface-2/ > >

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-16 Thread rise_t575
broker@yahoogroups.com, Tomasz Janeczko wrote: > > Hello, > > Sorry, the method name is actually UpdateStats() > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-07-16 14:06, rise_t575 wrote: > > > > Probably I'm blind, but I cannot find a

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-16 Thread rise_t575
e system that has 100% winning trades, because it is > using future leak in > position sizing. > That is the reason AmiBroker DOES NOT use close equity of current bar for > position sizing. > It either uses previous bar close equity or equity value at the open. > > Best regards, &g

[amibroker] Re: OT: Windows 7 - Mail Live Contacts

2010-07-16 Thread rise_t575
14, 2010 2:13 AM > Subject: Re: [amibroker] Re: OT: Windows 7 - Mail Live Contacts > > > > > all these things are possible in Windows Live Mail. > > address book you have to go to bottom left corner and chose "contacts" (I > believe because I ha

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-16 Thread rise_t575
ker DOES NOT use close equity of current bar for > position sizing. > It either uses previous bar close equity or equity value at the open. > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-07-16 15:29, rise_t575 wrote: > > > > I see - thanks. >

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-16 Thread rise_t575
ly processes signals but also does what > UpdateStats() is doing therefore > you should not mix both since exposure will be counted twice. > > Using low-level mode avoids that. > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-07-16 18:56, rise_t575 w

[amibroker] Re: Incorrect value of bo.Equity ...? AB ALWAYS using equity of previous bar PS

2010-07-16 Thread rise_t575
d at the end of > > this article: > > http://www.amibroker.org/userkb/2008/03/16/amibroker-custom-backtester-interface-2/ > > > > ProcessTradeSignals not only processes signals but also does what > > UpdateStats() is doing therefore > > you should not mix both since exposure will b

[amibroker] Feature Suggestion: Tabs for Parameters window

2010-07-17 Thread rise_t575
Tomasz, I think it could be a great feature to allow user-defined tabs within the AA's "Parameters" window - similar to the tabs within AA's "Settings" window. This would give users the possibility for creating complex, categorized & well designed parameter menus as a second dimension to the "_

[amibroker] Rejecting Trades

2010-07-17 Thread rise_t575
Hello, I've noticed using mid-level CBT that when I set the position size to zero for the signal in question (the reason for setting it to zero is slightly complicated & not that important here - some data needed for a subsequent calculation is {empty}), the trade is marked as "rejected" in AA'

[amibroker] Re: Feature Suggestion: Tabs for Parameters window

2010-07-19 Thread rise_t575
Bump. --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Tomasz, > > I think it could be a great feature to allow user-defined tabs within the > AA's "Parameters" window - similar to the tabs within AA's "Settings" window. > &g

[amibroker] Re: Rejecting Trades

2010-07-19 Thread rise_t575
Bump. --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > Hello, > > I've noticed using mid-level CBT that when I set the position size to zero > for the signal in question (the reason for setting it to zero is slightly > complicated & not that im

[amibroker] Re: Feature Suggestion: Tabs for Parameters window

2010-07-19 Thread rise_t575
other > docking windows. Since docking windows can be docked as tabs that would > create nested "tabs inside tabs" that would > be unreadable/too convoluted. > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-07-19 14:14, rise_t575 wrote: > > >

[amibroker] Re: Rejecting Trades

2010-07-20 Thread rise_t575
// end if exit > > > 2010/7/17 rise_t575 > > > > > > > Hello, > > > > I've noticed using mid-level CBT that when I set the position size to zero > > for the signal in question (the reason for setting it to zero is slightly > > complic

[amibroker] Re: Rejecting Trades

2010-07-20 Thread rise_t575
ize to zero if you want to reject single trade > BUT continue to handle lower-ranked signals. > > If you want to SKIP one signal, without affecting others, you should set > Price property of that signal to -1 (minus one). > > Best regards, > Tomasz Janeczko > amibroker.com

[amibroker] Re: Rejecting Trades

2010-07-20 Thread rise_t575
setting price = -1, price then is an extremely high number and the trade is rejected as funds are always insufficient (except for the case that my name is Scrooge McDuck...). Correct? --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > > > > Tomasz,

[amibroker] Re: Rejecting Trades

2010-07-20 Thread rise_t575
to -1 and > why this works " > > It works because I coded it so. The internal code uses -1 as special marker > to skip a signal. > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-07-20 17:36, rise_t575 wrote: > > > > > > > &

[amibroker] Re: Rejecting Trades

2010-07-20 Thread rise_t575
pen when I set sig.Price to -1 > > and why this works " > > > > It works because I coded it so. The internal code uses -1 as special marker > > to skip a signal. > > > > > > Best regards, > > Tomasz Janeczko > > amibroker.com > > >

[amibroker] Re: Rejecting Trades

2010-07-20 Thread rise_t575
:gro...@...>> > > > > Hello, > > > > > > > > "While I have no idea what exactly does happen when I set sig.Price to > > -1 and why this works " > > > > It works because I coded it so. The internal code uses -1 as specia

[amibroker] http://amibroker.com/feedback/

2010-07-21 Thread rise_t575
Hi Tomasz, May I ask here to get access to http://amibroker.com/feedback/ ? My login / password doesn't work at that section of the site, and I've been mailing AB support various times over the last couple of months. Still cannot log in. Thanks in advance!

[amibroker] Re: RE - 5.30.3

2010-07-21 Thread rise_t575
I confirm. --- In amibroker@yahoogroups.com, "Ton Sieverding" wrote: > > Correct. I have the same problem and it's the first time I see this ... > Tomasz something wrong or new settings ? > > Regards, Ton. > > - Original Message - > From: cas soni > To: AB > Sent: Wednesday,

[amibroker] Re: RE - 5.30.3

2010-07-21 Thread rise_t575
Everything seems ok now - thanks. --- In amibroker@yahoogroups.com, Tomasz Janeczko wrote: > > Hello, > > I am sorry about this. Please redownload. > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-07-21 20:51, rise_t575 wrote: > >

[amibroker] Re: Rejecting Trades

2010-07-22 Thread rise_t575
; Tomasz Janeczko > amibroker.com > > On 2010-07-20 23:10, rise_t575 wrote: > > > > Another question regarding taking signals / the signal score: > > > > As an exercise, I've coded two 100% identical position sizing algorithms, > > a) in normal AFL (Set

[amibroker] Re: Rejecting Trades

2010-07-27 Thread rise_t575
Bump. --- In amibroker@yahoogroups.com, "rise_t575" wrote: > > > > Tomasz, > > Let me say this another way: > > I haven't ranked the stocks at all in both codes (yet). > > But still, using SetPositionSize results in entry signals in Z to A order

[amibroker] Re: Rejecting Trades

2010-07-27 Thread rise_t575
qual (or missing) > then it will use alphabetical order > > When position score is missing and pos sizes are equal and symbol is also > equal (i.e. there are both long and short signals on same symbol at same time) > it will prefer long entry. > > Best regards, > Toma

[amibroker] Re: Rejecting Trades

2010-07-27 Thread rise_t575
Thanks. --- In amibroker@yahoogroups.com, Tomasz Janeczko wrote: > > Hello, > > I agree and I have added this to internal to-do. > > Best regards, > Tomasz Janeczko > amibroker.com > > On 2010-07-27 16:42, rise_t575 wrote: > > > > Hello, > >

[amibroker] Exit if L < L of Entry Bar

2010-08-03 Thread rise_t575
Hello, What would be the correct code for this? Is this one 100% correct: Sell = L < Ref(L, - BarsSince(Buy)); Or do I have to use the the EXREM() function somewhere within the formula (I don't have any experience with this one)? Thanks in advance!

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

2010-08-04 Thread rise_t575
roker@yahoogroups.com, "Edward Pottasch" wrote: > > > > hi, > > > > yes that is correct. > > > > same result would be: > > > > Sell = L < Valuewhen(Buy,L); > > > > when you make a plot of valuewhen(Buy,L) and Ref(L,-Barssi

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

2010-08-04 Thread rise_t575
; wrote: > > 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

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

2010-08-04 Thread rise_t575
> 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: > > > > > > > > Thanks a lot Mike. > > > > Btw - th

[amibroker] function() - optional parameters?

2010-08-17 Thread rise_t575
Just wondering if it is possible to use optional parameters in the function() function (no pun intended...), e. g. function Test ( a, b, c, optionalD, optionalE ); Would the function call Test( 1, 2, 3 ); generally work in this case? I've tried it, but something doesn't seem to work correctly

[amibroker] Re: function() - optional parameters?

2010-08-17 Thread rise_t575
Thanks. Just created a new, very simple AFL script for testing and it creates a "Missing Arguments" error. --- In amibroker@yahoogroups.com, "Edward Pottasch" wrote: > > yes. You probably made a syntax error. There are examples in the manual, > > regards,

[amibroker] Re: function() - optional parameters?

2010-08-17 Thread rise_t575
substituted in a function > for missing arguments, then I would pass a null for each parameter to be > defaulted. That way, at the beginning of your function, you could write > something like: > if( isNull( optionalD ) ) { optionalD = defaultValueD; } > > BR, > Dennis >

[amibroker] Re: function() - optional parameters?

2010-08-18 Thread rise_t575
> defaulted. That way, at the beginning of your function, you could write > something like: > if( isNull( optionalD ) ) { optionalD = defaultValueD; } > > BR, > Dennis > > On Aug 17, 2010, at 4:41 PM, rise_t575 wrote: > > > > > > > Than

  1   2   >