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

2010-08-18 Thread rise_t575
Unfortunately doesn't work; the function call obviously wants its full set of arguments/parameters: function Test (Var1,Var2,Var3,Var4,Var5) { if(IsNull(Var5)) { Var5 = 0; } xyz = Var1+Var2+Var3; return xyz; } Test(1,2,3,4); --- In amibroker@yahoogroups.com, Dennis Brown wrote: > > I believe t

[amibroker] Help with code afl- color macd

2010-08-18 Thread ford7k
Seniors and afl experts Hope you might have seen www.xforecaster.com There a chart is used witnh maxium scale of chart is +450 and -450 looks like http://www.xforecaster.com/ I checked up forextsd etc forums and found that these charts contain colormacd.here there is no histogram. just macd li

[amibroker] Req help for clone adx

2010-08-18 Thread ford7k
Hi friends,experts, years ago,a gentleman gave following afl code for clone of or equivalent of jma. Can anyone help use similar logic to create JADX OR JMACD? //Someone posted this about 3 OR 4 years ago, here. I believe the //original post may have been deleted. I have never used the real J

Re: [amibroker] Help with code afl- color macd

2010-08-18 Thread afzal hossain
Lets try it _SECTION_BEGIN("MACD");r1 = Param( "Fast avg", 12, 2, 200, 1 );r2 = Param( "Slow avg", 26, 2, 200, 1 );r3 = Param( "Signal avg", 9, 2, 200, 1 );a=MACD(r1,r2);b=Signal(r1,r2,r3);Plot(a,"MACD",IIf(a>b,colorGreen,colorRed),styleLine|styleThick);Plot(b,"SIGNAL",colorAqua,styleDashed);Plot

Re: [amibroker] Help with code afl- color macd

2010-08-18 Thread afzal hossain
Try this one also---histogram color changed _SECTION_BEGIN("MACD");r1 = Param( "Fast avg", 12, 2, 200, 1 );r2 = Param( "Slow avg", 26, 2, 200, 1 );r3 = Param( "Signal avg", 9, 2, 200, 1 );a=MACD(r1,r2);b=Signal(r1,r2,r3); Plot(a,"MACD",IIf(a>b,colorGreen,colorRed),styleLine|styleThick);Plot(b,"SI

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

2010-08-18 Thread Dennis Brown
Like this: Test( 1,2,3,4,Null,Null ); On Aug 18, 2010, at 10:51 AM, rise_t575 wrote: > Unfortunately doesn't work; the function call obviously wants its full set of > arguments/parameters: > > function Test (Var1,Var2,Var3,Var4,Var5) > { > if(IsNull(Var5)) > { > Var5 = 0; > } > xyz = Var1+Var2+

[amibroker] Re: Data plugin timeframe

2010-08-18 Thread .Net SDK
Hi (vagy Szia), GetQuotesEx has 5 important params: Ticker... Periodicity tells what timeframe the DB uses. Size=how many quotes the db can have at maximum (size of the array of quotes). LastValid is the index of the last quote in the DB. pQuotes is the pointer to the first quote. Think of the DB

[amibroker] Run scan from Desktop icon

2010-08-18 Thread palmharbor7
I need to run a formula.afl program in the scan mode daily. Can this be invoked externally from a program? TIA

[amibroker] Re: Import historical fundamental data

2010-08-18 Thread ims_spade
Can anyone tell me where can I find this free THcsv plug in and instructions how to use it? thanks in advance ims --- In amibroker@yahoogroups.com, Graham wrote: > > Not necessary for symbol for every date > When you have new values just add to one of the price arrays, eg > import as Close va

[amibroker] help for feed data's into amibroker

2010-08-18 Thread Inspire Tech
please help... How to Feed finance data into amibroker using c# code..

[amibroker] Real-Time Data Exploration Problem

2010-08-18 Thread Tom
I have only had amibroker for a few days but am having a problem with realtime quotes... I have eSignal data (FX only) and have setup the database per the Amibroker help files. (1 minute as they suggested). I have tried 1, 5, 15, hourly, daily charts and they all work great. The problem I am

[amibroker] Volume Point of Control

2010-08-18 Thread powertrader7
How do I get volume point of control in Amibroker

[amibroker] Seasonality ?

2010-08-18 Thread frankdr49
Greetings to all who is interested, I have been attempting to create a test to display the monthly change of each calender month of individual stocks for the past 5 or 10 years for example to simply show which of the 12 months if any show a positive or negative pattern I have searched the forum

[amibroker] Re: Here's how to integrate AmiBroker with thinkorswim via DDE for real-time streaming quotes of options, etc.

2010-08-18 Thread cpwilsonAus
Hi, Has anyone been able to connect to TOS DDE with AmiBroker x32 on a Windows 7 64bit system? While I have been able to connect using windows XP, I have had no success with Windows 7 64bit. Appreciate any help! Thanks, Chris --- In amibroker@yahoogroups.com, David wrote: > > As one step alo

Re: [amibroker] Real-Time Data Exploration Problem

2010-08-18 Thread Keith McCombs
Tom -- In Automatic Analysis>Settings>Backester settings>General, try setting Periodicity: to 1 minute. Alternatively, you can use TimeFrameSet() function (page 798 of .pdf file, Amibroker 5.20 User's Guide) and associated functions under SEE ALSO. Use it with: if(status(actionExplore)) {

Re: [amibroker] Re: req afl code for finding score for each stock find best score stocks by explore

2010-08-18 Thread Mubashar Virk
Hi All, There is an error in the following code that I am somehow not able to fix. While running the explorer The "Score" and "Trend" columns match till I get a score of -60. the corresponding Trend colums show a blank instead of showing downtrend. I have highlighted the possible error

Re: [amibroker] Re: req afl code for finding score for each stock find best score stocks by explore

2010-08-18 Thread Keith McCombs
DownTrend = (totalscore < -40 AND totalscore *>*= -99); On 8/18/2010 20:32, Mubashar Virk wrote: Hi All, There is an error in the following code that I am somehow not able to fix. While running the explorer The "Score" and "Trend" columns match till I get a score of -60. the correspondin

Re: [amibroker] Re: req afl code for finding score for each stock find best score stocks by explore

2010-08-18 Thread Mubashar Virk
:-) On 8/19/2010 6:15 AM, Keith McCombs wrote: DownTrend = (totalscore < -40 AND totalscore *>*= -99); On 8/18/2010 20:32, Mubashar Virk wrote: Hi All, There is an error in the following code that I am somehow not able to fix. While running the explorer The "Score" and "Trend" columns ma

Re: [amibroker] Re: req afl code for finding score for each stock find best score stocks by explore

2010-08-18 Thread Keith McCombs
BTW, you're going to have a similar problem when totalscore is exactly 40 or -40. Also I would use > -100 and < 100, just to cover all possibilities (if later code modifications make fractional totalscores possible). On 8/18/2010 21:29, Mubashar Virk wrote: :-) On 8/19/2010 6:15 AM, Keith Mc

Re: [amibroker] Re: req afl code for finding score for each stock find best score stocks by explore

2010-08-18 Thread Mubashar Virk
Yes, you're absolutely right. Thanks. On 8/19/2010 7:33 AM, Keith McCombs wrote: BTW, you're going to have a similar problem when totalscore is exactly 40 or -40. Also I would use > -100 and < 100, just to cover all possibilities (if later code modifications make fractional totalscores possi

[amibroker] Specified Optimizer Engine not found

2010-08-18 Thread Keith McCombs
Using AB 5.30.4 32bit, I get an error message, "/Specified Optimizer Engine not found/", when I specify, |OptimizerSetEngine("cmae");|. However, no problem with either "trib" or "spso". I also have two CMAE.dll files (recent, 34,304bytes and older, 60,416bytes). Both are versions 1.0.0.1. Any

Re: [amibroker] Specified Optimizer Engine not found

2010-08-18 Thread Keith McCombs
Oops, forgot to mention that OS is XP 64bit SP2. On 8/18/2010 23:12, Keith McCombs wrote: Using AB 5.30.4 32bit, I get an error message, "/Specified Optimizer Engine not found/", when I specify, |OptimizerSetEngine("cmae");|. However, no problem with either "trib" or "spso". I also have two C

Re: [amibroker] Help with code afl- color macd

2010-08-18 Thread ram vel
Dear afzal   thanks, Ford wanted that macd,signal values displayed on right axis must be not 0.000123 but 120 or 70 in a bigger scale. the histogram value,macd value,signalvalue scale to be changed. how it is to be done-was his problem. Anyways,your afl looks good.     We were looking for zerola

Re: [amibroker] Help with code afl- color macd

2010-08-18 Thread afzal hossain
the scale is just a matter of multiplication, you can try your own number from 1to 100 or even 1000 or use Close or open or low or high example instead of a=MACD(r1,r2);b=Signal(r1,r2,r3); usea=MACD(r1,r2)*100;b=Signal(r1,r2,r3)*100; or a=MACD(r1,r2)*c;b=Signal(r1,r2,r3)*c; but use same values for

[amibroker] Re: Specified Optimizer Engine not found

2010-08-18 Thread amiuser999
I don't think you can have more than 1 dll with the same name in the plugin directory ... --- In amibroker@yahoogroups.com, Keith McCombs wrote: > > Oops, forgot to mention that OS is XP 64bit SP2. > > On 8/18/2010 23:12, Keith McCombs wrote: > > > > Using AB 5.30.4 32bit, I get an error messag

Re: [amibroker] Re: Specified Optimizer Engine not found

2010-08-18 Thread Keith McCombs
I know. They were originally in two different directories. I rename to avoid conflict and so that I will know what one AB is looking for as in: CMAE.dll vs CMAE.dll.no On 8/19/2010 01:42, amiuser999 wrote: I don't think you can have more than 1 dll with the same name in the plugin director