Re: [amibroker] Incorrect rounding in Amibroker

2009-03-13 Thread İlhan Ketrez
Thanks a lot, but... When we tell AddColumn(*H*,"H",1.4); AddColumn(*L*,"L",1.4); AddColumn(mp,"mp",1.4); to Amibroker, the answers are correct. (The right column below) However, when we don't tell that way, rounding still seems to be incorrect. We should format first and then round with excel

[amibroker] Re: Position Sizing

2009-03-13 Thread lucianomt
Tomasz, thanks for your prompt help! You might want to update the tutorial section (page 145) as it refers only to PositionSize. That threw me off a bit. ;) --- In amibroker@yahoogroups.com, "Tomasz Janeczko" wrote: > > Hello, > > Manual is your friend. > http://www.amibroker.com/f?setpositionsiz

Re: [amibroker] Re: Position Sizing

2009-03-13 Thread Tomasz Janeczko
Hello, Manual is your friend. http://www.amibroker.com/f?setpositionsize SetPositionSize( 100, spsShares ); Best regards, Tomasz Janeczko amibroker.com - Original Message - From: "lucianomt" To: Sent: Saturday, March 14, 2009 2:25 AM Subject: [amibroker] Re: Position Sizing > So no

[amibroker] Re: Position Sizing

2009-03-13 Thread lucianomt
So no outright position sizing with number of shares, uh? That is a rather curious given its usefulness and simple implementation... --- In amibroker@yahoogroups.com, "Mike" wrote: > > Using a positive value indicates the dollar amount to invest. Taking into account the BuyPrice, you can indirec

Re: [amibroker] Incorrect rounding in Amibroker

2009-03-13 Thread Tomasz Janeczko
Read the manual first http://www.amibroker.com/guide/h_exploration.html Rounding is correct and user-definable. If you want 3 decimal digits - just tell AB this way: AddColumn(mp,"mp", 1.3 ); Best regards, Tomasz Janeczko amibroker.com - Original Message - From: Ilhan Ketrez T

RE: [amibroker] Incorrect rounding in Amibroker

2009-03-13 Thread Joris Schuller
Nothing wrong with AB rounding off. You highlighted: 1. 1.635 1.63 The 1.635 might be rounded off from a number between 1.63451 and 1.6349 (or whatever the accuracy) 2. 1.545 1.55 The 1.545 might be rounded off from a number between 1.545001 and 1.5454

Re: [amibroker] Incorrect rounding in Amibroker

2009-03-13 Thread wavemechanic
Look up the syntax for addcolumn() in the Users Guide and note how the format parameter is used. Bill - Original Message - From: Ilhan Ketrez To: amibroker@yahoogroups.com Sent: March 13, 2009 4:35 PM Subject: [amibroker] Incorrect rounding in Amibroker Dear friends, A

[amibroker] Previous bars

2009-03-13 Thread lucianomt
I´m running a single security backtest. My trailing stop uses a 20-day ATR. The problem is I'm getting buy orders before that, which means I have no stop for 20 days until the ATR calculation kicks in. How to set the backtest to start on the 20th bar? Sorry for the newbie questions but I am new

Re: [amibroker] Re: Layers...

2009-03-13 Thread Dennis Brown
That's the only one the comes to my mind right now. It may be the only one. However, unlike studies that are persistent, plot shapes are not. BR, Dennis On Mar 13, 2009, at 4:57 PM, sidhartha70 wrote: > So it strictly & only relates to PlotShapes Dennis...? > > TIA > > --- In amibroker@yah

Re: [amibroker] OT : Views about "Ron Wagner DVD Seminar Series"

2009-03-13 Thread wavemechanic
I don't know about Pristine, but am in your "simple is good" corner. Bill - Original Message - From: sumangalam To: amibroker@yahoogroups.com Sent: March 13, 2009 11:49 AM Subject: [amibroker] OT : Views about "Ron Wagner DVD Seminar Series" Hello, After some years of g

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

2009-03-13 Thread wavemechanic
I assume that you are getting "Error 6". If so, look up this error in the Users Guide as well as if() and iif(). Bill - Original Message - From: K. Karunakaran To: amibroker@yahoogroups.com Sent: March 13, 2009 10:41 AM Subject: [amibroker] how to plot current days intra day

[amibroker] Re: Layers...

2009-03-13 Thread sidhartha70
So it strictly & only relates to PlotShapes Dennis...? TIA --- In amibroker@yahoogroups.com, Dennis Brown wrote: > > PlotShapes(shape, color, layer, ...) > > BR, > Dennis > > On Mar 13, 2009, at 3:54 PM, sidhartha70 wrote: > > > Am I right in thinking that 'layers' only apply to studies drawn

Re: [amibroker] Layers...

2009-03-13 Thread Dennis Brown
PlotShapes(shape, color, layer, ...) BR, Dennis On Mar 13, 2009, at 3:54 PM, sidhartha70 wrote: > Am I right in thinking that 'layers' only apply to studies drawn by > hand...? > > That is, layers functionality cannot be used from within AFL...? > > TIA > > > >

[amibroker] Incorrect rounding in Amibroker

2009-03-13 Thread İlhan Ketrez
Dear friends, Amibroker seems to be rounding the results different than it should be. Below is a piece of the results. The prices have two digits after dot. (h+l)/2 sometimes has 2 digits, sometimes 3 after dot. Amibroker sometimes rounds the result up, sometimes down. Ticker Date/Time H L

[amibroker] Re: Position Sizing

2009-03-13 Thread Mike
Using a positive value indicates the dollar amount to invest. Taking into account the BuyPrice, you can indirectly control the number of shares by setting PositionSize to the positive value: PositionSize = BuyPrice * NumShares; Where NumShares is the desired number of shares and BuyPrice is

[amibroker] Re: Position Sizing

2009-03-13 Thread lucianomt
Sorry PS, I usually do that but the search function on Yahoo Group was showing a server error. Thanks! --- In amibroker@yahoogroups.com, "vlanschot" wrote: > > > You may also take a look at TJ's message 2608 in the amibroker-ts > user group. > > In general, most Q's have already been asked &

[amibroker] Layers...

2009-03-13 Thread sidhartha70
Am I right in thinking that 'layers' only apply to studies drawn by hand...? That is, layers functionality cannot be used from within AFL...? TIA

[amibroker] Position Sizing

2009-03-13 Thread lucianomt
Can I set the actual number of shares/contracts to buy? It seems that PositionSize only lets you choose between dollar values and percentage amounts...

[amibroker] Re: Trednline drawing problems w AB 5.24

2009-03-13 Thread onelkm
Strange. I went to the manual and this is what it says, but under view, there is no workspace! Did something get changed? "How to work with layers. First of all make sure that Workspace window is visible (View->Workspace) Then switch to "Layers" tab. Here you can see the list of pre-defined

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Thomas Ludwig
On Friday 13 March 2009 16:57:12 Tomasz Janeczko wrote: > Hello, > > Actually the visual order of panes is not the same as refresh ordering, > since the window that receives the click is the first one to refresh, > then the rest is refreshed in the creation order. > > So it is best to use RequestTi

Re: [amibroker] OT : Views about "Ron Wagner DVD Seminar Series"

2009-03-13 Thread dingo
You might also want to investigate this guy's book: http://alphatrends.blogspot.com/ He supports the book with his blog. d On Fri, Mar 13, 2009 at 11:49 AM, sumangalam wrote: > Hello, > > After some years of going through various approaches to Technical Analysis, > I am finding that consisten

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Tomasz Janeczko
Hello, Actually the visual order of panes is not the same as refresh ordering, since the window that receives the click is the first one to refresh, then the rest is refreshed in the creation order. So it is best to use RequestTimedRefresh for its simplicity and reliability if you use end-of-day

[amibroker] Re: How to use entry price in strategy?

2009-03-13 Thread lucianomt
For now, I just need the simulated price, so I will look into this material. Eventually, the actual live price will be necessary. Thanks! --- In amibroker@yahoogroups.com, "Mike" wrote: > > Are you talking about the actual Buy price as taken in live trading? Or, are > you talking about a sim

[amibroker] OT : Views about "Ron Wagner DVD Seminar Series"

2009-03-13 Thread sumangalam
Hello, After some years of going through various approaches to Technical Analysis, I am finding that consistent results are being achieved by simple concepts; like developing a feel by looking at simple charts, may be one or two moving average, Volume. Not much of complex stuff; just making hab

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Thomas Ludwig
On Friday 13 March 2009 16:03:46 Barry Scarborough wrote: > I just wrote a CCI indicator that will pass the statics as I wrote. I wrote > a MA program that will accept it. This will cause a buy/sell signal and I > use plot shapes to see the buy and sell signals in the MA indicator. I ran > it on 1,

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Thomas Ludwig
On Friday 13 March 2009 15:55:26 Dennis Brown wrote: > Thomas, > > When dealing with multiple panes and static variable of all kinds, you > have to really understand the internal sequencing of events in AFL > formulas. To keep things as simple as possible, I do everything in > one chart. However,

Re: [amibroker] Trednline drawing problems w AB 5.24

2009-03-13 Thread Lal
One possibility - the layer on which the trendline is being plotted may be hidden. Make sure you've got it visible. Lal From: onelkm To: amibroker@yahoogroups.com Sent: Friday, 13 March, 2009 14:52:09 Subject: [amibroker] Trednline drawing problems w AB 5.2

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Tomasz Janeczko
Use #include instead for EOD. It is simpler. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: "Thomas Ludwig" To: Sent: Friday, March 13, 2009 3:44 PM Subject: Re: [amibroker] Re: Synchronization problem between panes using Static array variables > TJ, > > I un

[amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Barry Scarborough
I just wrote a CCI indicator that will pass the statics as I wrote. I wrote a MA program that will accept it. This will cause a buy/sell signal and I use plot shapes to see the buy and sell signals in the MA indicator. I ran it on 1, 5 and 15 minute charts and changed tickers. I can change the t

Re: [amibroker] Trednline drawing problems w AB 5.24

2009-03-13 Thread Dennis Brown
When you say plot trend lines do you mean an AFL plot command, or drawing a straight line study? In the later case, make sure that the layer is visible. BR, Dennis On Mar 13, 2009, at 10:52 AM, onelkm wrote: > For some reason I can't plot trendlines after upgrading to the > latest beta. A

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Dennis Brown
Thomas, When dealing with multiple panes and static variable of all kinds, you have to really understand the internal sequencing of events in AFL formulas. To keep things as simple as possible, I do everything in one chart. However, that does not mean it is not possible to do what you wa

[amibroker] Trednline drawing problems w AB 5.24

2009-03-13 Thread onelkm
For some reason I can't plot trendlines after upgrading to the latest beta. Anyone else having this problem?? Thanks Larry

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Thomas Ludwig
TJ, I understand. However, avoiding to duplicate the indicator code in the other pane does make sense even for EOD traders, IMHO, as changes in the code have to be applied only once. Do you have any idea regarding the second problem I mentioned? Greetings, Thomas On Friday 13 March 2009 15:

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

2009-03-13 Thread K. Karunakaran
I have tried the following to plot only current days intra day chart. if(DateNum()==Now(3)) PlotOHLC( Open, High, Low, Close, "", ColIdea, styleCandle); Any help please. Warm Regards. K Karunakaran

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Tomasz Janeczko
Hello, Your problem comes from the fact that the chart you are using the variable is not "after" but "before" the one that writes, so it sees "old" values. And yes using RequestTimedRefresh is actually the simplest method to make sure that the charts get refreshed periodically, regardless of their

Re: [amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Thomas Ludwig
Barry, thanks for your hints. Unfortunately, they didn't solve my problem. On the contrary, now even scrolling through dates doesn't cause a re-calculation any more. Greetings, Thomas On Friday 13 March 2009 14:51:30 Barry Scarborough wrote: > I assume when you switch between symbols you want

[amibroker] symbol databases

2009-03-13 Thread bigitop
I was wondering if there were other stock symbol databases to download EOD data from yahoo or google. I have the "US stocks" database that I downloaded from the AB website. Are there similar databases for non-US exchanges such as Euronext, Tokyo... etc...?? If there is none readily available,

[amibroker] Re: Synchronization problem between panes using Static array variables

2009-03-13 Thread Barry Scarborough
I assume when you switch between symbols you want to preserve the data relative for each symbol. If so the names must be unique. Have you tried using a prefix to differentiate the symbols when you switch them? Try this and see if it works when you change tickers. StaticVarSet(name() + "varccib

[amibroker] Synchronization problem between panes using Static array variables

2009-03-13 Thread Thomas Ludwig
Hello, I've implemented this new feature in AB in a certain layout. I'm using a variable CCI in one pane and plot the signals in the other. So in the one pane I defined: [...] StaticVarSet("varccibuysignals", Buy1); StaticVarSet("varccisellsignals", Sell1); StaticVarSet("varcci", varcci(Avg,n)

Re: [amibroker] Re: simple lower lows

2009-03-13 Thread jim fenster
wow really? OK great Ill give it a try.  Thanks. Jim --- On Thu, 3/12/09, Mike wrote: From: Mike Subject: [amibroker] Re: simple lower lows To: amibroker@yahoogroups.com Date: Thursday, March 12, 2009, 4:10 PM Buy = Sum(Low < Ref(Low, -1), 3) == 3; Mike --- In a

Re: [amibroker] Re: Market Profile old charting feature

2009-03-13 Thread reinsley
Thank you all of you. VAP is a good step, I look forward an AB version of MP... Best regards sidhartha70 a écrit : > > > There is a request in at the AmiBroker feedback centre for 'true market > profile' to be added... it's planned. But likely not a priority... > > In the meantime the best

Re: [amibroker] Re: simple lower lows

2009-03-13 Thread reinsley
Straight to pearls of AFL. Thank you for the question and the answer... Mike a écrit : > > > Buy = Sum(Low < Ref(Low, -1), 3) == 3; > > Mike > > --- In amibroker@yahoogroups.com , > jim fenster wrote: > > > > > > If I wanted to buy for example when yo