Re: [amibroker] Problem with the ZIG( 2nd TIME )

2009-12-26 Thread Graham
What result do you get from a 200% zig? This makes no sense as you cannot get 200% change to create a peak point. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/12/26 Mubashar Virk mvir...@gmail.com I think it is the same. Please see: Indic = CCI(21) ; YL = IIf

Re: [amibroker] Re: Help with filling array

2009-12-23 Thread Graham
You are only defining the values for bars between 5 and 50, not a full array. ie slope[40] is the value for the 40th bar (per barindex() count) of the history. You need to explain what you are actually trying to achieve before any help can be given -- Cheers Graham Kav AFL Writing Service http

Re: [amibroker] Re: Trade frquency penalty function.

2009-10-09 Thread Graham
If you are putting this into the custom backtest code, and your bar period setting is daily, then you can just use barcount -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/10/9 jamesfarrow2003 jamesfarrow2...@yahoo.com: Thanks a lot, that worked like a charm

Re: [amibroker] Problem with Status(actionEx)

2009-10-02 Thread Graham
remove the if line altogether, you should not need it -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/10/3 Keith McCombs kmcco...@engineer.com Without the 'if()' restriction below, all of the text and WriteVal(), etc. is displayed in the Interpretation Window

Re: [amibroker] Help in solving

2009-09-29 Thread Graham
You need to add a condition to only provide results if the last bar has date and time equalling the current date and time, to within the relevant interval. In the afl functions there is Now function. use this as means to create the required condition -- Cheers Graham Kav AFL Writing Service http

RE: [amibroker] Global Layouts - Copy between machines

2009-09-14 Thread Graham Johnson
Thanks Tomasz If I can't retrieve the situation, it will be good practice for me to rebuild the layouts. Thanks again Graham From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Tomasz Janeczko Sent: Friday, 11 September 2009 6:38 PM To: amibroker

Re: [amibroker] Status of Norgate Premium Data for Amibroker

2009-09-09 Thread Graham
the issue is! -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/9/10 kevin...@aol.com I'm about ready to plunge whole hog... since my SuperComposite 1500 contains 1579 stocks and so onyou know the issue. In a message dated 9/9/2009 11:40:26 P.M. Central

Re: [amibroker] Data cleansing / cleaning - removing bars

2009-08-14 Thread Graham
You should be using O == H Also you would rarely ever get this condition true O == Volume (Open==Volume) -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/8/15 only_accept_the_real_thing olivermann...@yahoo.com: Hi there, I posted this intially to amibroker-afl

Re: [amibroker] PlotShape

2009-08-02 Thread Graham
without backtest. It assigns a number to the exit signal, in this case it would be Cover==5. See help for equity or applystop for the list of numbers. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/8/3 Rick Osborn ri...@rogers.com: Tried it - didn't work. Seems to me

Re: [amibroker] Re: lastvalue and N last quotations

2009-07-25 Thread Graham
try this if( lastvalue( sum( buy,5) ) ) CategoryAddSymbol( , categoryWatchlist, 58 ); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/7/26 tayamaan tayam...@yahoo.com: Hello all, by coincidence I was working on the same issue and can't seem to get my head

Re: [amibroker] Addtocomposite

2009-07-24 Thread Graham
I think Volume only allows integers, not decimals -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/7/25 Markus Witzler funny...@web.de: Hi Herman, I did the following: AddToComposite (ATRExpLagRounded, ~ATRExpLagRounded_+Name(), V, atcFlagDefaults

[amibroker] Write Symbol Dat to File

2009-06-21 Thread Graham Johnson
This has to be so simple but I have searched docs and no joy. I want to write price data to a file - no problems. But on each row, I want to write the symbol and I can't find how to get that. It is not FullName() that I want, just the Symbol. Surely, I have missed something simple. Graham

[amibroker] Re: What can a proven programming loser like me do with AB / AFL?

2009-06-14 Thread Graham Johnson
achievement!! Graham --- In amibroker@yahoogroups.com, samu_trading samu_trad...@... wrote: Thank you all for your kind advice, testimonials and encouragement. If I didn't try it in earnest now, I would feel really bad! Let me get my programming fingers really dirty in the next weeks

Re: [amibroker] Please help with TimeFrameSet

2009-06-09 Thread Graham
results -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/6/10 James jamesmemp...@yahoo.com: I am not getting the results I am expecting using TimeFrameSet. I am putting the following formula on a 30 minute chart and expecting to see the same values I would see if I put

Re: [amibroker] Re: Code needed to always include a certain ticker in Explore ???

2009-06-08 Thread Graham
the index symbol in its own group, eg an unused sector/industry. Then in exploring your watchlist you can add this sector to your analysis window filter. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/6/9 Mike sfclimb...@yahoo.com: You can cheat, explicitly doing what you

Re: [amibroker] Issue with using string format

2009-06-03 Thread Graham
text is not an array. you will only ever get the last value to show. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/6/4 Dimension dimensi...@yahoo.com: Hi, I have created the following example to help illustrate an issue i am running into.  Can someone tell me

Re: [amibroker] Using Equity to Compute Position Size

2009-05-28 Thread Graham
Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/28 Corey Saxe ces...@nwi.net: Been taking a look at AB after being gone for a few years. Looks like there is still no simple AFL method to retrieve the current equity to compute a positionsize for the next trade. I tried

Re: [amibroker] Timeframeset gives wrong results

2009-05-27 Thread Graham
The variables firstallup and firstalldown seem to be both defined in the base time period. They should be defined within each timeframeset blocks of the code. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/27 allm4m all...@yahoo.com: Hello, here's what I want

Re: [amibroker] Re: trying to access current account equity and plot it

2009-05-27 Thread Graham
automatically saves this to composite ~~~EQUITY -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/28 Barry Scarborough razzba...@imageview.us: CurEquity is an array. Since you are setting the curEquity in a loop I think you will need to use an index, CurEquity[bar

Re: [amibroker] Re: different values in plot and interpretation window

2009-05-21 Thread Graham
expandlast starts the value on the last bar of that timeframe period -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/21 Edward Pottasch empotta...@skynet.be: hi, not sure if I completely understand myself but adding expandFirst removes this problem, see below

Re: [amibroker] ~~~EQUITY and SetPositionSize

2009-05-21 Thread Graham
At a rough guess you have AllowPositionShrinking turned on -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/22 spi_maker ja...@teleweb-pub.com: I am trying to calculate a position size based on the current level of equity built up, but I not doing this properly

Re: [amibroker] Re: ~~~EQUITY and SetPositionSize

2009-05-21 Thread Graham
to. To change the size you need to use the custom backtest code, there are various example of this in the help files and the various internet locations, eg AB knowledge base etc. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/22 spi_maker ja...@teleweb-pub.com: Update

Re: [amibroker] Empty Field

2009-05-20 Thread Graham
use nz() function -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/21 cadvantag cadvan...@yahoo.com: Hello, I am having a problem adding two components together, when one field is empty, my combined total of two fields remains empty or blank. How can I add one

Re: [amibroker] Re: BarsSince returns nulls, why?

2009-05-14 Thread Graham
will slow things down becasue all bars are needed) if the above simple type methods do not help. These lines are not required Buy = Sell = Short = Cover = 0; myBuy = mySell = myShort = myCover = 0; -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/15 Barry

Re: [amibroker] Re: testing multiple systems simultaneously

2009-05-13 Thread Graham
mentioned in earlier post that it is all a matter of juggling everything and starting with sound flow logic charts for every step. Then if you want any metrics per system you must calculate these from basic formula. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/13

Re: [amibroker] Re: if (Buy[i] = 0) not behaving as expected

2009-05-08 Thread Graham
, then they will all be based on the underlying selected symbol -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/9 Mike sfclimb...@yahoo.com: I see no reason why your function should be taking an argument named R14. You never use that value, but rather immediately

Re: [amibroker] Re: testing multiple systems simultaneously

2009-05-05 Thread Graham
It is possible to do, you just need to write this into the advanced backtest coding, low level coding is advisable. Takes a bit of work and ability to balance balls like a juggler. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/5/6 bh.hicks bh.hi...@yahoo.com: Ang

Re: [amibroker] Re: I'm give up with Study ID code, Please help..

2009-05-01 Thread Graham
. The study name can only apply to one line, so each line will need its own unique studyID name eg, say you have 10 lines and name them S0,S1,S3,...S9 then use sell = 0; for( n=0;n=9;n++) { sell = sell or cross( study( S+n , Chart ), close ); } -- Cheers Graham Kav AFL Writing Service http

[amibroker] Re: Error 19

2009-04-28 Thread Graham Johnson
, to start with, I was only looking at a total of 40 passes. Any suggestions, please. Graham --- In amibroker@yahoogroups.com, Graham Johnson grah...@... wrote: When running an exhaustive optimization the following error is sometimes generated. Error 19. COM method/function `Symbol' call failed

[amibroker] Error 19

2009-04-27 Thread Graham Johnson
. Sometimes it even runs to completion. Please, any suggestions as to how I might attack this. Graham

Re: [amibroker] can a 15 min bar have a cross(x,y) trigger in the middle of the bar time?

2009-04-20 Thread Graham
the database setting is also set to 9:30am start time. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/4/20 Edward Pottasch empotta...@skynet.be: in real time the close is the last price traded. So within a 15 min bar you may see many signals appear and disappear using

Re: [amibroker] Re: OR operand erroring with InWatchList(i)

2009-04-18 Thread Graham
Try this inList = 0; for (i =24; i = 65; i++) { inList = max( inList, InWatchList(i) ); } Filter = Close 10 or inList; addcolumn( inList, inList, 1 ); addcolumn( C10, C10, 1 ); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/4/19 gmorlosky gmorlo...@yahoo.com

Re: [amibroker] A Dumb Basic Question on Array Shifting

2009-04-14 Thread Graham
later, then B is correct Of course you could always use something like this settradedelays(3,1,3,1); Buy = cma(c,5); or if you only want to scan on bar before the entry then simplified settradedelays(1,1,1,1); Buy = ref( cma(c,5), -3 ); -- Cheers Graham Kav AFL Writing Service http

Re: [amibroker] Re: how can I see the amount of commisions paid in the backtester?

2009-04-13 Thread Graham
try adding custom metric -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/4/14 shakerlr ljr...@hotmail.com: I tried the setting you suggested (detailed log).  But I cannot see the commissions in a column, nor can I see them like it is shown on this page: http

Re: [amibroker] Re: get single day data from Close?

2009-04-09 Thread Graham
Lastvalue gives the last value in your database for that symbol Just Use Last = C; -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/4/10 conrad_faber cfa...@telkomsa.net: Range from/to date restrictions work fine on my side. What you could do is to set Range to all

Re: [amibroker] Re: get single day data from Close?

2009-04-09 Thread Graham
to a question that has only given part information (remember that what is posted is assumed to be the total information), we need to see your entire code, otherwise we go through many posts becasue of Yes But -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/4/10 conrad_faber cfa

Re: [amibroker] How does AB handle daylight savings?

2009-04-06 Thread Graham
there is no problem with changing for daylight saving. The US market times do not change, only my local time difference to US time. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/4/6 Tomasz Janeczko gro...@amibroker.com: Dates and times are reported in AB

Re: [amibroker] Lower Time frame problem

2009-04-06 Thread Graham
You need to work in reverse Base the system on 15 minute bar period, and write the code for 30 minute timeframe where required -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/4/2 Hrishabh hrish...@yahoo.com: Dear Members, I am having a problem with my Amibroker

[amibroker] Re: Static Variables - Remove All

2009-04-06 Thread Graham Johnson
Thanks for your offer to share. My email is grahamj[at]petrie[dot]starway[dot]net[dot]au. Graham Hi Graham, I have a variables afl module for auto trading. This keeps the list of static vars created by the module functions by registering var names. It also has a reset function

[amibroker] Re: Static Variables - Remove All

2009-04-06 Thread Graham Johnson
Thanks Bruce I'll do some research on the Scripting Dictionary. Even if #1518 is released soon, it doesn't hurt to have something else in the arsenal. Graham Herman, Graham - Catching up on board reading and this thread. I had to address this some time ago and went a different route

[amibroker] Re: Static Variables - Remove All

2009-04-04 Thread Graham Johnson
been removed in the previous step. So, how do I ascertain that a particular variable name exists so that StaticVarRemove can be applied? Graham

[amibroker] Re: Static Variables - Remove All

2009-04-04 Thread Graham Johnson
Thanks again Herman I've found OSAKA in the Third-Party area - is there documentation to aid implementation/understanding? In the meantime I'll persevere with static variables and hopefully achieve consistent results and when that is bedded-down, I can pursue the likes of OSAKA. Graham

[amibroker] Static Variables - Remove All

2009-04-03 Thread Graham Johnson
? Graham

Re: [amibroker] BarsSince Question

2009-03-28 Thread Graham
Barssince needs a condition A1=BarsSince(h==HHV(C,126)); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/3/29 Steve Dugas sjdu...@comcast.net: First it finds the HHV(C,126).  Presumably that will be a positive number ( i.e., TRUE ) on every bar, including

Re: [amibroker] custom column to backtest results? passing value from exploration?

2009-03-28 Thread Graham
to know as that would require a much longer response and time to put together all the required items, but if you pull together avery example of code you can find amidst the various sources of Ab code you will find enough to get you started on the right path. -- Cheers Graham Kav AFL Writing Service

Re: [amibroker] Re: AFL 101

2009-03-25 Thread Graham
I believe only one person knows everything in AB, Tomasz I know that I am still learning -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/3/26 burlap58 ever...@netnitco.net: Thanks for your help and kind encouragement.I realize that TC2007 is in comparison quite

Re: [amibroker] Telechart vs Norgate

2009-03-24 Thread Graham
Norgate data is very good -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/3/24 jmdeacon jmdea...@gmail.com: I currently use Telechart EOD data.  I have used it for the last 3 years and have only found a handful of instances of bad data.  I am interested in having

Re: [amibroker] Re: Is it possible to refer to more than one instrument on a single chart?

2009-03-21 Thread Graham
Use separate chart panes in the one window -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/3/21 Conrad Joach consolejo...@yahoo.com: I saw that video. The issue is that I have two symbols with almost the exact same price, so they overlap. There are two things I'd

Re: [amibroker] Re: Simple slippage implemented in CBT generates COM error

2009-03-18 Thread Graham
= ExitTrue; } } } } -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com

Re: [amibroker] Re: Simple slippage implemented in CBT generates COM error

2009-03-18 Thread Graham
ExitTrue = sig.Price + Slippage; sig.Price = ExitTrue; } } bo.ProcessTradeSignals( bar ); } bo.PostProcess(); // Finalize backtester } -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com

Re: [amibroker] Re: two backtest questions

2009-03-15 Thread Graham
This was answered some time ago, check post histories I believe it is 1. PositionScore value, higher absolute value goes first (+ for long, - for short) 2. Higher trade size, larger $ value goes first 3. Symbol alphabetic, A goes first -- Cheers Graham Kav AFL Writing Service http

Re: [amibroker] Re: how to plot current days intra day chart alone

2009-03-14 Thread Graham
Try this if( Lastvalue( DateNum() )==Now(3)) Plot( Close, , ColIdea, styleCandle); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/3/15 K. Karunakaran osp2...@gmail.com: Many Many Thanks. It is plots only the current day many thanks once. Warm Regards. K

Re: [amibroker] Re: backtest question

2009-02-28 Thread Graham
for just backtesting why not use nbar applystop -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/3/1 ozzyapeman zoopf...@hotmail.com: Personally I've gotten some strange results when using ExRemSpan to exit, as per the guide. For example, sometimes, the trading

Re: [amibroker] Slope of Moving Averages

2009-02-23 Thread Graham
There has just been a large discussion about Ref function MA1 = MA(Close,50); MA2 = MA(Close,20); Short = Cross(MA1,MA2) and Ref(MA1,-1)Ref(MA1,-2); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/22 jfenello j...@fenello.com: Anyone figure out how to test

[amibroker] Re: Editing many Include files

2009-02-21 Thread Graham Johnson
In the past Ive used Advanced Find and Replace www.abacre.com for bulk name changes. It's a number of years since I used it professionally so, one would hope, that it is even more powerful and flexible. Graham --- In amibroker@yahoogroups.com, Dennis Brown se...@... wrote: Thank you all

Re: [amibroker] Re: AmiBroker 5.22.0 BETA released

2009-02-20 Thread Graham
I thought Home and End were already assigned to scrolling to the start and end of the chart Now end does both, go to end and add blank bars, home just goes to start of chart but does not remove blank bars -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/21 Tomasz

Re: [amibroker] Re: AmiBroker 5.22.0 BETA released

2009-02-20 Thread Graham
it scrolls to the end of the chart Home key moves to the start of the chart while also removing blank bars at the end at the same time -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/21 Tomasz Janeczko gro...@amibroker.com: Home key does remove extra blank bars

Re: [amibroker] Re: AmiBroker 5.22.0 BETA released

2009-02-20 Thread Graham
to start of chart, ctrl-end to scroll to end of chart -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/21 Tomasz Janeczko gro...@amibroker.com: Hello, The keys have dual function BUT not at the same time. First key press does different thing than second key press. First

Re: [amibroker] Re: A shorter syntax to reference past elements of array

2009-02-19 Thread Graham
I think using the Ref should be kept just the way it is. I cannot see how any alternative method would be less confusing to newbies. btw you can change P = (Ref(H,-1) + Ref(L,-1) + Ref(C,-1)) / 3; to P = Ref(H+L+C,-1) / 3; and thus reduce the amount of typing :) -- Cheers Graham Kav AFL Writing

Re: [amibroker] AFL loop question

2009-02-19 Thread Graham
-- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/20 richpach2 richpa...@yahoo.com: Hello, Can some please expain use of loop (if, while etc) expression in AFL? When do one need to use a loop and when can one just rely on processing of the array bar-by-bar. I am

Re: [amibroker] Not an Array?

2009-02-08 Thread Graham
Something wrong in your afl, you will need to provide the afl you are using to read this file -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/9 Richard Park rnp...@bellsouth.net: I have a .csv signal file that I have imported as an indicator. It is a signal file

Re: [amibroker] Not an Array?

2009-02-08 Thread Graham
I assume SP.LNG SC NH Signal is a symbol name in your database ATS_Signal = foreign( SP.LNG SC NH Signal,C); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/9 Richard N Park rnp...@bellsouth.net: Not very complicated. The signal plots ok. PlotForeign(SP.LNG SC

Re: [amibroker] How can I Plot using timeframset-expand

2009-02-04 Thread Graham
You should use the expand functions after the timeframerestore -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/4 coba702002 coba702...@yahoo.com: I want to plot a styleline SD SK 'storsi'on 3 and 5 minute time chart BUT only show buy/sell trade arrows when

Re: [amibroker] Tomasz, Need Help With sigScaleOut

2009-02-01 Thread Graham
You need to define the BuyPrice at the scaleout bar -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/2/2 Pete dryhe...@cox.net: I have spent several hours trying to implement the Scale-out strategy using futures contracts. I have finally come to the conclusion

Re: [amibroker] Weekly System - weekly charts straight from the automatic anlysis window

2009-01-22 Thread Graham
you are running your analysis in daily period If you system is weekly then the Analysis window setting should be to weekly -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/1/23 australindgirl australindg...@yahoo.com Hi, I am trying to put together a weekly system

Re: [amibroker] Re: Testing the Range of an Array with an Optimization

2009-01-17 Thread Graham
); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/1/18 ozzyapeman zoopf...@hotmail.com: Prog - thanks very much for the code. Very thorough with the traces, and gives me more insight into the issues of arrays vs scalars. I will play around with this some more

Re: [amibroker] Re: How to Add These to Backtest Report?

2009-01-17 Thread Graham
you will need to write these in the custom backtest code -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/1/18 longarm61 no...@suite61.com: Anyone? If this would be too involved/difficult, it would help to know that too. --- In amibroker@yahoogroups.com, longarm61

Re: [amibroker] How To: invert the Y axis in charts

2009-01-16 Thread Graham
try this plotohlc(-o,-l,-h,-c,Inverted,colorwhite,stylecandle); or if indicator just add the - to the value, eg -macd() plot( -macd(), Inverted MACD, colorgreen, styleline ); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/1/17 foginthehills andrewde...@hotmail.com

Re: [amibroker] Re: Finding next day signals

2009-01-16 Thread Graham
if this is just for back testing then add a condition that checks that the next bars range covers your trigger price -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/1/17 Steve Dugas sjdu...@comcast.net: Hi - What exactly are you trying to do? You can set trade

Re: [amibroker] Testing the Range of an Array with an Optimization

2009-01-16 Thread Graham
= BarsSince(Buy) 6; will not work very well because buy can occur on consecutive bars and will re-initiate the barssince. You need to add in exremspan statement to remove buy signals for the n-bar period -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com Range1 = Array 0

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

2009-01-12 Thread Graham
try this array = h; LastHHVValue = valuewhen( hhvbars(array,x)==0, array ); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2009/1/13 sidhartha70 sidharth...@yahoo.com: Hi All, Ok. It's easy to find the last true value of an array... simply HHV(array,x) where x

Re: [amibroker] Merry Christmas for TJ and his team

2008-12-23 Thread Graham
To Tomasz family, and all the AB community have a great Christmas - New Year season -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/12/24 richpach2 richpa...@yahoo.com: I wish to pass on my best wishes Tomasz and his team for this 2008 festive season. I hope you have

[amibroker] Re: Null seems to plot as zero

2008-12-13 Thread Graham Johnson
a positive value is a bug and it has been logged #1647 My solution is rather ugly but it appears to work Graham xaInLongTrade = Flip(Buy, Sell); xaPlotValue = IIf(xaInLongTrade == True, xaPlotValue, Low * 0.9); xChartBkColour = GetChartBkColor(); xRed = (xChartBkColour 255); xGreen = floor

[amibroker] Re: Null seems to plot as zero

2008-12-12 Thread Graham Johnson
, Null), test, colorGreen, styleThick); In the second line I've even substituted = 0 with = value near price action and no change in result. Surely this has to be a coding error, but I am getting absolutely nowhere. Graham --- In amibroker@yahoogroups.com, Mike sfclimb...@... wrote

[amibroker] Null seems to plot as zero

2008-12-11 Thread Graham Johnson
with this has gone on for over a week now, can anyone help please? Graham

[amibroker] Re: Null seems to plot as zero

2008-12-11 Thread Graham Johnson
Hi Tomasz That works fine. So, I am really baffled as to why there is a problem with my code that includes Iif. Maybe I need to try an alternative approach - if I can think of one. Graham --- In amibroker@yahoogroups.com, Tomasz Janeczko gro...@... wrote: Hello, I don't know the rest

[amibroker] Convenient Alerts

2008-12-08 Thread Graham
it's faults has dead easy alerts. (or used to - haven't used it for a while) Cheers Graham

[amibroker] Document Storage Software

2008-11-21 Thread Graham Johnson
Recently, someone mentioned some software for storing documents e.g. forum posts or any other notes and then be able to retrieve the documents using word search. I've been searching the forum and obviously haven't come up with the correct search criteria. Any ideas, please? Graham

[amibroker] Re: Document Storage Software

2008-11-21 Thread Graham Johnson
Thanks Panos, but that is not it. The one I am after is a commercial application. Graham --- In amibroker@yahoogroups.com, Panos Boufardeas [EMAIL PROTECTED] wrote: hi this one you mean? * http://www.amibroker.com/library/detail.php? id=1164AFL_Glossary_Converter by Dennis Brown

[amibroker] Re: Document Storage Software

2008-11-21 Thread Graham Johnson
Thanks everyone Graham --- In amibroker@yahoogroups.com, Steve Davis [EMAIL PROTECTED] wrote: For bookmarking forum posts, you might consider using Twine or Delicious. You can tag the bookmarks with keywords to make it easier to find items later. You will be able to get to your favorites

RE: [amibroker] Introduction to AmiBroker

2008-11-10 Thread Graham Johnson
Hi Howard Received my copy of your book this morning (in Oz). I think your idea of having beginners type in the code is a great idea for beginners. Cheers Graham -Original Message- From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of reinsley Sent: Monday, 10

Re: [amibroker] The Theory of Zig and How to make it Work

2008-10-30 Thread Graham
= flip( Cross( C, trough(C,10)*1.1 ), Cross( C, peak(C,10)*0.9 ) or barindex()==lastvalue(barindex()) ); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/10/31 Ken Close [EMAIL PROTECTED]: A friend asked me why he can not trade with the Zig indicator. I answered

[amibroker] ATR of Foreign Synbol

2008-10-17 Thread Graham Johnson
I'm used to using Foreign but I've searched for how to get the ATR of a foreign symbol and haven't had any luck. Any guidance, please? Graham

[amibroker] Re: ATR of Foreign Synbol

2008-10-17 Thread Graham Johnson
Thanks for that Gordon I obviously did not use the correct search criteria. Thanks again Graham --- In amibroker@yahoogroups.com, Gordon Sutherland [EMAIL PROTECTED] wrote: Graham, Check-out the SetForeign() function in the Help files. This should enable you to get the ATR for your

Re: [amibroker] Re: Question about Scaling In and out

2008-10-17 Thread Graham
You use SetPositionSize to define the amount to be traded for each signal type. See example in the help files of AB for this function You will need to use the custom backtest to limit the trades to the 50% of equity invested. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com

[amibroker] Re: Nested Function

2008-10-07 Thread Graham Johnson
Thanks Tomasz So simple - mental blocks can be so frustrating. Graham Should be: You can NOT have function definition inside other function definition, but... Best regards, Tomasz Janeczko amibroker.com - Original Message - From: Tomasz Janeczko [EMAIL PROTECTED

[amibroker] Explore

2008-10-04 Thread Stan Graham
Hi, Folks I have been trying to change the Exploration from the Param input as follows: SrchUpDn = Param(Search Up-Down,True,False); (or SrchUpDn = Param(Search Up-Down,1,0);) if(SrchUpDn = 1 ) {Filter = Segment1U OR Segment2U OR Segment3U OR Segment4U; AddColumn(C,Price);

[amibroker] Re: Explore

2008-10-04 Thread Stan Graham
OR Segment4D; AddColumn(C,Price); AddColumn(6,Entry,1.2); AddColumn(5,Seg1D,1.2); AddColumn(4,Seg2D,1.2); AddColumn(3,Seg3D,1.2); AddColumn(2,Seg4D,1.2); AddColumn(1,Cond1DN,1.2); AddColumn(0,Cond2DN,1.2);} On Sat, Oct 4, 2008 at 1:45 PM, Stan Graham [EMAIL PROTECTED] wrote: Hi

[amibroker] Re: Explore

2008-10-04 Thread Stan Graham
Hi, again If I use the Parameter Button in the Automatic Analysis window - it works!!! but if I click on the chart and use the drop down parameter window - it doesn't work. Don't know why the parameters are different in the two windows? Stan --- In amibroker@yahoogroups.com, Stan Graham

Re: [amibroker] Re: Amibroker - QuoteTracker Intraday data setting - HELP PLEASE

2008-10-01 Thread Graham
Have you clicked on the add in QT? Needs to be done regularly to have 0.03% minimum I believe (or maybe 0.3%, cannot remember exactly) Are the symbols in AB Use only local database in information window? Needs to be 'NO' -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com

Re: [amibroker] How to Fix This Time Code.

2008-09-23 Thread Graham
Because the time straddles midnight you need to change the conditions Japanesetime = TimeNum() = JapaneseOpen OR TimeNum() = JapaneseClose; -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/24 Panos Boufardeas [EMAIL PROTECTED]: try that JapaneseOpen = 03

Re: [amibroker] Re: Recursive Boolean Expressions... Possible?

2008-09-19 Thread Graham
the algorithm is, I have only ever found examples of putting values into it. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/19 sidhartha70 [EMAIL PROTECTED]: In answer to your question Brian, I ended up using a loop. Seeing the power of AFL, I often find myself

Re: [amibroker] Re: Recursive Boolean Expressions... Possible?

2008-09-19 Thread Graham
I stand corrected. Last time I looked at AMA that wasn't there. Yes it was a long time ago. -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/19 Tomasz Janeczko [EMAIL PROTECTED]: Graham, I am endlessly surprised when people say they could not found the description

Re: [amibroker] Re: Recursive Boolean Expressions... Possible?

2008-09-17 Thread Graham
try this temp = CRef(L,-6) AND vary6; varx = temp AND NOT Ref(temp ,-6); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/18 gp_sydney [EMAIL PROTECTED]: No, you can't do that as the right-hand expression is evaluated on the whole array before anything is assigned

Re: [amibroker] Help needed with simple Lowest or LLV afl code

2008-09-16 Thread Graham
+ on + Lowest_date; -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/16 imorf69 [EMAIL PROTECTED]: Hi all, I have been trying *unsuccessfully* to generate the all time low Close and the date it occurred on using either the Lowest(Close) or LLV(Close, BarCount) function. The two

Re: [amibroker] Re: HLC charts without open price

2008-09-13 Thread Graham
try this PlotOHLC(null,H,L,C,,colorblack,stylebar); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/14 reinsley [EMAIL PROTECTED]: An exemple posted few days ago by Mr Valley BR -- to plot a bar chart where only the range the close is indicated

Re: [amibroker] Close At least 4 of the previous 5 Closes

2008-09-11 Thread Graham
x = C ref( HHV (C, 5 ),-1) ; -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/12 Panos Boufardeas [EMAIL PROTECTED]: hi i think this is the fastest way x = C =HHV (C, 5 ) ; Plot(x, Close,colorBlack,styleHistogram| styleOwnScale); Plot(Close, Close,colorBlack

Re: [amibroker] Calendar Average

2008-09-10 Thread Graham
try this, assuming I understand your query mm = month(); endM = mm!=ref(mm,-1); barM = barssince( endM ) + 1; maM = ma(c,barM); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/9/11 jgholson [EMAIL PROTECTED]: Has anyone written an ALF to calculate the calendar

[amibroker] Guppy Count Back Line

2008-09-08 Thread Stan Graham
Has anyone coded the Guppy Count Back Entry line in AmiBroker? Stan

[amibroker] Re: Guppy Count Back Line

2008-09-08 Thread Stan Graham
{ Cbl[i] = Cbl[i-1]; } if (Cbl[i]==0) Cbl[i] = Cbl[i-1]; } Plot(Cbl,,colorGreen,1); Plot(C,,-1,64); _SECTION_END(); _ From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stan Graham Sent: Monday, September 08, 2008 1:25 PM To: amibroker

  1   2   3   4   5   6   7   8   9   10   >