[Komunitas AmiBroker] [INFO] Ujian Pasar Modal tanggal 18 juli 2009

2009-05-24 Thread ferdiyan.firman
Sehubungan dengan penyelenggaraan Ujian Kecakapan Profesi Pasar Modal Indonesia (UKPPMI) oleh Panitia Standar Profesi Pasar Modal pada tanggal 18 Juli 2009, OmniInvest sebagai Training Provider Pelatihan Pasar Modal yang pertama kali mengembangkan aplikasi e-Simulation Test (Computer-Based Try

[amibroker] Import Information

2009-05-24 Thread dubi1974
Hi guys, does someone know if there is any possibility to import information like round lot size or margin deposit etc. out of a .csv or .xls file into Amibroker through e.g. AFL? Thanks, dubi

RE: [amibroker] Import Information

2009-05-24 Thread Habibur Md. Rahman Planning Networks
You can do it by ASCII import. There are some default fields in the database other than price, which can be imported. See the 'Format Definition commands' section to have a list of available fields and also the process of defining the format for importing data. Regarding this issue, I have a

[amibroker] Re: referencing code

2009-05-24 Thread noah.bender
if what u say is true then even though the short gets set to 1 in the loop. when it passes through the code again it will get set to zero and then enter loop with a value of zero and not one? because each time the code passes through the value gets set to zero. --- In

[amibroker] sigscaleout question

2009-05-24 Thread zeek ing
Hello all, I have a question on sigscaleout. Do i have to use a loop when I use sigscaleout or can I use it in an array? so far I have only been able to use it in a loop. Also, if I have a short sigscaleout and a long sigscaleout in the same loop. I have noticed that only one of the sigscaleouts

[amibroker] Re: find today's dailybar high and low from intraday bar- Pl help

2009-05-24 Thread murthysuresh
Hi Brian I use DTN IQ as sevice provider but my market hours are set to 9:30 to 3.55 on 5 minute bars. so i dont worry about pre and post market data. --- In amibroker@yahoogroups.com, brian_z111 brian_z...@... wrote: Seede, Well, at least we are making some progress (we seem to have

[amibroker] Re: ~~~EQUITY and SetPositionSize

2009-05-24 Thread pmxgs
If you're trying to use positionsize based on the equity value, check this message 108746. hope it helps --- In amibroker@yahoogroups.com, spi_maker ja...@... wrote: I am trying to calculate a position size based on the current level of equity built up, but I not doing this properly. I

[amibroker] Is Array Processing correct?

2009-05-24 Thread Kusnady
Dear All, I found some un-answered questions about array processing of the AFL. nn = 100; nn    = IIf(VRef(V,-1), Ref(nn,-1) + (C-Ref(C,-1))/Ref(C,-1) * Ref(nn,-1), Ref(nn,-1)); Plot(nn,,colorYellow);

Re: [amibroker] ODBC + DDE

2009-05-24 Thread Yofa
Hi, depending on what you want to do... You can use SQL but you must have in-depth knowlegde of the specific database sw. Logical and mostly physical database design is crutial to success. Both designs must be very efficent. Generally SQL database engine is used as a storage system. So it is

Re: [amibroker] Is Array Processing correct?

2009-05-24 Thread Keith McCombs
Kus -- You are making a classic afl mistake that almost all of us have made before (more than once for me). The mistake is that: nn is an *array* which you have on both the left and right side of the = sign in your equation nn = IIf(etc. You are assuming, incorrectly, that the new value of

Re: [amibroker] Reseting or Synchronizing Parameters?

2009-05-24 Thread Keith McCombs
Forgot, another way I do it sometimes is, for example: | DnBars = Param(DnBars, 3, 1, 10, 1); //DnBars = 5;| All is synchronized, when I comment out the first line and use uncomment the second one. But still would like something slicker. Maybe some way to force the default value 3 from the

[amibroker] Show Foreign Close in other Chart

2009-05-24 Thread Mohammed
Hi Frends, How can I use Foreign with the following code. Current_Close = StrFormat( %g , C, SelectedValue( ROC( C, 1 ) ) ); GfxSelectFont( Verdana, 9, 700 ); GfxSetBkMode( 1 ); GfxSetTextColor( colorBlue); pxHeight = Status( pxchartheight ); t = pxHeight; x5 = 10; GfxTextOut( Current_Close,

Re: [amibroker] Reseting or Synchronizing Parameters?

2009-05-24 Thread Dennis Brown
Could you set the params once in its own window/chart, then just set static variables with the param values? In each of the other charts reference the static variables instead of the params. BR, Dennis On May 24, 2009, at 3:47 PM, Keith McCombs wrote: Is there any convenient way to reset

[amibroker] Problem with AB can anyone help?

2009-05-24 Thread MarkK
Been working with AB for a while now It is great for back testing and setting up charts Now when I start to trade live my trade system that AB has helped me put together it falls short here Am I missing something? Looking for a way to track the open positions and get percentage returns,

[amibroker] One extra bar when using 5min bars from 1min data?

2009-05-24 Thread ezbentley
My data base has 1 minute resolution, but when I set the interval to 5 minutes, the first bar of the day appears as 9:31. The second bar appears as 9:35 and the rest of the day is normal. Due to that additional bar at open, there are 79 5-minute bars in a day instead of 78. Why is that? I tried

[amibroker] Re: One extra bar when using 5min bars from 1min data?

2009-05-24 Thread brian_z111
Hello, Check your DatabaseSettings IntradaySettings StartTime/EndTime should equal 6.5 hours * 12 * 5min bars == 78 Start == 0930 End = 1555 == 6.5 hours inclusive (I have the preferences time stamp set to START TIME OF INTERVAL) This assmes you are in the US market (6.5 hours). My personal

[amibroker] Re: One extra bar when using 5min bars from 1min data?

2009-05-24 Thread ezbentley
The settings are initially at 9:30~16:00. After I changed it to 9:31~16:00, the data now is aligned. Thank you. --- In amibroker@yahoogroups.com, brian_z111 brian_z...@... wrote: Hello, Check your DatabaseSettings IntradaySettings StartTime/EndTime should equal 6.5 hours * 12 * 5min

[amibroker] Re: One extra bar when using 5min bars from 1min data?

2009-05-24 Thread brian_z111
Maybe you should play around with it a bit more I don't think it is a good idea to 'miss' the open ... depending on your strategy. I match up 1 min bar == 5 min bar open == daily bar open. (try taking 5 min off the close and also check your night session settings ... see that they match).

Re: [amibroker] Reseting or Synchronizing Parameters?

2009-05-24 Thread Keith McCombs
Dennis -- Yes, I could. Just tried it and it works for all panes and AA BackTest as well. (for Optimize(), please see comment after code). I had to make some other changes as well as follows: My top pane is always just price and volume with maybe one or more moving averages. This used to be

[amibroker] Is it possible to force parameter changes programatically?

2009-05-24 Thread japple_55
I have a single system plotted on a chart that I would like to view/test for several symbols, where only the parameters will change according to the symbol being viewed/tested. I've got the parameter changes coded as symbol dependent (IIF name = ...) and their values reflect properly in the

[amibroker] Re: Is it possible to force parameter changes programatically?

2009-05-24 Thread murthysuresh
i dont think so. why dont you just use conditional statements. with if(name()==blah) { param1=something } or you can use a switch case. --- In amibroker@yahoogroups.com, japple_55 aim...@... wrote: I have a single system plotted on a chart that I would like to view/test for several symbols,

[amibroker] Re: Is it possible to force parameter changes programatically?

2009-05-24 Thread japple_55
Did that already but the parameters do not actually change when I change the symbol in the chart. The Reset button in the parameters window has to be used to force the change. --- In amibroker@yahoogroups.com, murthysuresh mo...@... wrote: i dont think so. why dont you just use conditional

[amibroker] Re: referencing code

2009-05-24 Thread noah.bender
my theory was initially to reference the shorton.But I am running into problems. I have tried using the ref function and the barcount function with no luck. It seems the code always reverts back to the initialization value of zero. It is really frustrating. And I can't move the calculation of

Re: [amibroker] Re: Is it possible to force parameter changes programatically?

2009-05-24 Thread Keith McCombs
Jim -- Muthy's suggestion may work if you do thing in the proper order, for example: param1 = Param(Param1, 5, 1, 10, 1); // for symbols not specified below if(name()==blah) param1=7; // overrides Param() function above if(name()==xyz) param1=3; // overrides Param() function above the rest

Re: [amibroker] Re: referencing code

2009-05-24 Thread Keith McCombs
shorton=0; for (i=0; iwhatever; i++){ buy = a and b and c and shorton==1; // *double =* for conditional statement shorton=1; // shorton will be 1 for all i's except the first one } noah.bender wrote: my theory was initially to reference the shorton.But I am running into problems. I