[amibroker] help me correct invalid datetime error

2009-07-25 Thread vijay_aggarawal
Hi everyone, dont know how I got this error but I am getting an straight line on my charts and not able to remove the line even using quote editor.When i open quote editor for the said line ,it shows invalid datetime in the time field and even after modifying the rate field manually

[amibroker] Re: EnableScript("vbscript"

2009-07-25 Thread dubi1974
Many thanks, dubi --- In amibroker@yahoogroups.com, Tony Grimes wrote: > > Try This: > > http://www.amibroker.com/docs/ab400.html > > > > On Sat, Jul 25, 2009 at 12:34 PM, dubi1974 wrote: > > > > > > > Hi, as I know you can pass parameter from AFL to e.g. VBScript.. through > > AFL(""). >

[amibroker] Decimal in Volume and Actual Traded Value

2009-07-25 Thread sumangalam
Hello Mr. Tomasz Janeczko, Just being curious, is there some situation when we actually get Volumes in Decimals; or is it being done for some backward compatibility ? One situation that immedaitely comes to my mind, is case of REVERSE SPLITS etc. where historical volume data can have decimal va

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 : > Hello all, by coincidence I was working on the same issue and can't seem to > get my head around it why this

[amibroker] Re: lastvalue and N last quotations

2009-07-25 Thread tayamaan
Hello all, by coincidence I was working on the same issue and can't seem to get my head around it why this doesn't work. This is what I do: Simple buy statement: Buy = Cond1 AND Cond2 AND Cond3; Then I wish to check the last five bars if the buy statement is true and write the tickers to a

Re: [amibroker] Re: Backtester Problems

2009-07-25 Thread Brian Wild
Mike Thanks for your reply - which is right on the mark. It came as quite a surprise to me to learn that the parameters used in Backtester are not necessarily the same as those selected via the Param function. Cheers Brian - Original Message - From: Mike To: amibroker@yahoogroup

[amibroker] Re: lastvalue and N last quotations

2009-07-25 Thread murthysuresh
so there is no way in afl for us to get the value of the params in the AA window? --- In amibroker@yahoogroups.com, "markedme9" wrote: > > > Hi, > > This might work, I use it in similar way. > > Buy = something...; > > for (i=0; i > if (buy[i]) { > > CategoryAddSymbol ( name(), categoryWatc

[amibroker] Re: lastvalue and N last quotations

2009-07-25 Thread markedme9
Hi, This might work, I use it in similar way. Buy = something...; for (i=0; i wrote: > > No ideas??? > > --- In amibroker@yahoogroups.com, "murthysuresh" murthysuresh@ wrote: > > > > i add to watchlist in my scans using lastvalue(Buy) > > however if i set my N last quotations >1 then it will no

[amibroker] Re: lastvalue and N last quotations

2009-07-25 Thread murthysuresh
No ideas??? --- In amibroker@yahoogroups.com, "murthysuresh" wrote: > > i add to watchlist in my scans using lastvalue(Buy) > however if i set my N last quotations >1 then it will not work properly as > the Buy signal could have been in a earlier bar. how can i detect the value > of the N last

[amibroker] Re: Dates on date axis instead of months?

2009-07-25 Thread markedme9
Hello TJ, Thats what I was expecting, if I zoom in for a span of a month then I should be able to see dates. But even if I zoom enough that a month spreads end to end of the screen, it dosent show any dates, not even a single date. I thought it would at least show dates a week apart. All I see i

Re: [amibroker] Dates on date axis instead of months?

2009-07-25 Thread Tomasz Janeczko
Hello, It will automatically display days/months or years depending on zoom factor and periodicity selected. Simply it adjust automatically to make X axis clean & readable. For example on daily chart it won't list all days because it would not be readable. Then on monthly chart it will display on

[amibroker] Dates on date axis instead of months?

2009-07-25 Thread markedme9
Hi, How to have dates shown on data axis instead of month? Tried this - SetChartOptions(0, chartShowDates); Thanks...

[amibroker] custom metrics don´t show up in the report

2009-07-25 Thread Markus Witzler
Hello, while playing around with the CBT, I want to add trade by trade metrics as follows, but they don´t appear in the report. Has anyone ad idea why? for (trade = bo.GetFirstTrade(); trade; trade = bo.GetNextTrade()) { trade.AddCustomMetric("Cash position", bo.cash); trade.AddcustomMetric

Re: [amibroker] How can I do a back test for futures trading only 1 contract each signal

2009-07-25 Thread James
Put the following at the end of your formula: PositionSize= MarginDeposit;   From: robinson.markc To: amibroker@yahoogroups.com Sent: Tuesday, July 21, 2009 6:24:54 AM Subject: [amibroker] How can I do a back test for futures trading only 1 contract each signa

Re: [amibroker] EnableScript("vbscript"

2009-07-25 Thread Tony Grimes
Try This: http://www.amibroker.com/docs/ab400.html On Sat, Jul 25, 2009 at 12:34 PM, dubi1974 wrote: > > > Hi, as I know you can pass parameter from AFL to e.g. VBScript.. through > AFL(""). > Is there a possibility to pass parameter from VBScript back to AFL? > Like VBSCRIPT("") or somethin

[amibroker] EnableScript("vbscript"

2009-07-25 Thread dubi1974
Hi, as I know you can pass parameter from AFL to e.g. VBScript.. through AFL(""). Is there a possibility to pass parameter from VBScript back to AFL? Like VBSCRIPT("") or something else? Many thanks, dubi sStr = "this is a test"; EnableScript("vbscript"); <% vbStr = AFL("sStr") Set Excel =

Re: [amibroker] Re: Still - using CBT the first time

2009-07-25 Thread Markus Witzler
Hello, TJ cleared it up! Markus - Original Message - From: Markus Witzler To: amibroker@yahoogroups.com Sent: Saturday, July 25, 2009 4:45 PM Subject: Re: [amibroker] Re: Still - using CBT the first time Hello Mike, I appreciate the suggestion. Your approach ma

Re: [amibroker] Addtocomposite

2009-07-25 Thread Markus Witzler
Thanks!!! - Original Message - From: Tomasz Janeczko To: amibroker@yahoogroups.com Sent: Saturday, July 25, 2009 4:03 PM Subject: Re: [amibroker] Addtocomposite Multiply by 100 when writing and divide by 100 when re

Re: [amibroker] Re: Still - using CBT the first time

2009-07-25 Thread Markus Witzler
Hello Mike, I appreciate the suggestion. Your approach may not work since "y" in your example was generated by using atc function, thus cutting of the "needed information" (i.e.digits). For example: AtrExpLag (before using atc) was 3.115. Then I transfered it into atc function, thus becoming

[amibroker] Re: eSignal EOD/Intraday mixed data issue

2009-07-25 Thread markedme9
To explain this a little, When I read daily Open and Close values from the index symbol, I receive same value for both (exp, open = 5000, close = 5000), though actual values are different. This happens for the days where there is not an EOD value. For days having EOD values along with intrad

Re: [amibroker] Addtocomposite

2009-07-25 Thread Tomasz Janeczko
Multiply by 100 when writing and divide by 100 when reading back or use other field (not V, but O, H, L, C) Best regards, Tomasz Janeczko amibroker.com - Original Message - From: Markus Witzler To: amibroker@yahoogroups.com Sent: Saturday, July 25, 2009 4:01 PM Subject: Re: [a

Re: [amibroker] Addtocomposite

2009-07-25 Thread Markus Witzler
TJ, is there any workaround for this at this point if I need to use digits in Addtocomposite? I´m asking since I have to make references to proprietary variables in CBT and see no other way to do it. Markus - Original Message - From: Tomasz Janeczko To: amibroker@yahoogroups.

[amibroker] eSignal EOD/Intraday mixed data issue

2009-07-25 Thread markedme9
Hi, I have eSignal RT data service; I was making my own twisted RSI indicator, and realized that I am missing EOD values. The DB is recently built, it is set to 1 min base interval, forced to have Intraday and EOD mixed. Looking at the quotes in quote editor I can see all 1 min values for all

Re: [amibroker] Addtocomposite

2009-07-25 Thread Tomasz Janeczko
Correct, but in 5.27 it is going to change. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: "Graham" To: Sent: Saturday, July 25, 2009 3:47 AM Subject: Re: [amibroker] Addtocomposite I think Volume only allows integers, not decimals -- Cheers Graham Kav AFL Wr