Re: [amibroker] OT: installing OS again
Thank you everyone... Keith, I am using windows Vista home premium...I can not run in Repair mode...I have exhausted all methods I can think of to repair the OS.. There are several / many Services that can not be started no matter what I have tried...I have not been able to update the OS through the windows automatic update service for sometime I do NOT have all installed program disks... Are there any free disk Imaging softwares that allow what you suggest ? Anthony - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Tuesday, September 07, 2010 11:52 PM Subject: Re: [amibroker] OT: installing OS again Before you attempt to do anything else, make a complete image of your hard drive. Make sure that your disk imaging software will allow you to recover individual folders and files as well as the entire image. Then see if you can run your OS installation software in 'Repair' mode. If you can, you may end up fixing what ever your problem is, without needing to reinstall any software. If that doesn't work, maybe you might have to reinstall the OS. Are you absolutely sure that the only solution to your problem is a complete re-install? Positive? Absolutely Positive? If so: Just because you have copies of all your installed programs does NOT mean that you can merely copy them onto the newly installed OS. You will have to re-install almost all of your programs. For this you need the Original installation programs, including protection keys, either on disks or saved elsewhere. Good luck, -- Keith BTW, I have been using PC's since the very first IBM ones. Probably owned a couple of dozen since then. The only time I have had to reinstall an OS was when I lost my first HD more than 25 years ago. Since then, I make drive images and/or use other work arounds. On 9/7/2010 02:36, reinsley wrote: Hi, IMO, before to format, save your My documents files ( it's another name under Vista, the file containing all your personnal documents), save your bookmarks ( IE or Firefox), save your Outlook settings (address book contacts, settings accounts) Emails as well if needed, but they are on ISP's server. Save the other application files such as AB, into c:\Program Files. Your formulas, your databases, etc. are there. Then format the disk, and start from scratch, install vista. Don't forget the drivers. Install all your applications. Printer and gadgets... Restore your My documents, and AB formulas, AB databases. You can do a todolist of the actions before to start. You update this document as and when you did it. Next install you update your technical notes, the order to proceed, the things forgotten. It's a good way to never miss a step. When everything is running fine for a while, you know what is worth to backup from time to time. :) Best regards Le 07/09/2010 00:44, Anthony Faragasso a écrit : I need to re-install windows Vista to correct several issues I am having... I purchased an external Hard drive...How do I move all programs and files to the external hard drive and then move them back to the computers internal hard drive after re-installing the operating system ? I do not think just backing up the internal hard drive will preserve all programs...some programs I do not have disks for... Help... thank you Anthony
Re: [amibroker] OT: installing OS again
Herman, I purchased an external HD...if I install the OS ( Vista ) on the external HD, will the computer boot from there ? Anthony - Original Message - From: Herman To: Keith McCombs Sent: Wednesday, September 08, 2010 3:19 AM Subject: Re: [amibroker] OT: installing OS again A fresh install of the OS most of the time leads to new install of most programs you use. If you have many you always miss some and always have to serach for install disks, passwords, etc. My way around this is to add another harddisk and leave the old one intact and functional. Then install on the new Hard disk. You will still have to install all the programs but at least you can still access everything you missed copying. Having two hard disks you can do a new OS install periodically without having to worry about losing anything. I do the same when upgrading OS and now have three HDs, XP, Vista and W7. herman Before you attempt to do anything else, make a complete image of your hard drive. Make sure that your disk imaging software will allow you to recover individual folders and files as well as the entire image. Then see if you can run your OS installation software in 'Repair' mode. If you can, you may end up fixing what ever your problem is, without needing to reinstall any software. If that doesn't work, maybe you might have to reinstall the OS. Are you absolutely sure that the only solution to your problem is a complete re-install? Positive? Absolutely Positive? If so: Just because you have copies of all your installed programs does NOT mean that you can merely copy them onto the newly installed OS. You will have to re-install almost all of your programs. For this you need the Original installation programs, including protection keys, either on disks or saved elsewhere. Good luck, -- Keith BTW, I have been using PC's since the very first IBM ones. Probably owned a couple of dozen since then. The only time I have had to reinstall an OS was when I lost my first HD more than 25 years ago. Since then, I make drive images and/or use other work arounds. On 9/7/2010 02:36, reinsley wrote: Hi, IMO, before to format, save your My documents files ( it's another name under Vista, the file containing all your personnal documents), save your bookmarks ( IE or Firefox), save your Outlook settings (address book contacts, settings accounts) Emails as well if needed, but they are on ISP's server. Save the other application files such as AB, into c:\Program Files. Your formulas, your databases, etc. are there. Then format the disk, and start from scratch, install vista. Don't forget the drivers. Install all your applications. Printer and gadgets... Restore your My documents, and AB formulas, AB databases. You can do a todolist of the actions before to start. You update this document as and when you did it. Next install you update your technical notes, the order to proceed, the things forgotten. It's a good way to never miss a step. When everything is running fine for a while, you know what is worth to backup from time to time. :) Best regards Le 07/09/2010 00:44, Anthony Faragasso a écrit : I need to re-install windows Vista to correct several issues I am having... I purchased an external Hard drive...How do I move all programs and files to the external hard drive and then move them back to the computers internal hard drive after re-installing the operating system ? I do not think just backing up the internal hard drive will preserve all programs...some programs I do not have disks for... Help... thank you Anthony
[amibroker] OT: installing OS again
I need to re-install windows Vista to correct several issues I am having... I purchased an external Hard drive...How do I move all programs and files to the external hard drive and then move them back to the computers internal hard drive after re-installing the operating system ? I do not think just backing up the internal hard drive will preserve all programs...some programs I do not have disks for... Help... thank you Anthony
Re: [amibroker] plottext
It can be any single condition... I have been able to plottext the date , but when I move the selector and click on another area of the chart the Date changes at the specific condition...I would like to date to stick...this is what I am using. condcolor=my specific condition here ; dist = 10*ATR(10); for( i = 0; i BarCount; i++ ) { if(Condcolor[i]) PlotText(Date() +\n+ C[i],i, H[i]+dist[i], colorRed ); } - Original Message - From: Inquisitive Voyager To: amibroker@yahoogroups.com Sent: Thursday, July 29, 2010 1:14 AM Subject: Re: [amibroker] plottext what is that condition? On Thu, Jul 29, 2010 at 7:46 AM, Anthony Faragasso ajf1...@epix.net wrote: I would like to stick a date on the chart tied to a specific condition and not have the date change when moving through the chart...any help appreciated. Thank you Anthony
Re: [amibroker] plottext
Paul, Thank you...it worked. Anthony - Original Message - From: Paul D To: amibroker@yahoogroups.com Sent: Thursday, July 29, 2010 7:13 AM Subject: Re: [amibroker] plottext This worked for me. I put a dummy rule in for condcolor to test. You can't use Date(). That returns ONE string. DateNum() and DateTime() return arrays you can first assign to a variable and then call the [i] version of that variable in the loop. See below. Hope that helps. condcolor= C MA(C,20) AND C MA(C,50) AND C MA(C,100) AND C Ref(C,-1) AND Ref(C,-1) Ref(C,-2) ; dist = 10*ATR(10); myDateTime = DateTime(); for( i = 0; i BarCount; i++ ) { if(Condcolor[i] ) PlotText(NumToStr(myDateTime[i],formatDateTime) +\n+ C[i],i, H[i]+dist[i], colorRed ); } -- From: Anthony Faragasso ajf1...@epix.net To: amibroker@yahoogroups.com Sent: Thu, July 29, 2010 3:57:22 AM Subject: Re: [amibroker] plottext It can be any single condition... I have been able to plottext the date , but when I move the selector and click on another area of the chart the Date changes at the specific condition... I would like to date to stick...this is what I am using. condcolor=my specific condition here ; dist = 10*ATR(10); for( i = 0; i BarCount; i++ ) { if(Condcolor[i] ) PlotText(Date() +\n+ C[i],i, H[i]+dist[i], colorRed ); } - Original Message - From: Inquisitive Voyager To: amibro...@yahoogrou ps.com Sent: Thursday, July 29, 2010 1:14 AM Subject: Re: [amibroker] plottext what is that condition? On Thu, Jul 29, 2010 at 7:46 AM, Anthony Faragasso ajf1...@epix. net wrote: I would like to stick a date on the chart tied to a specific condition and not have the date change when moving through the chart...any help appreciated. Thank you Anthony
Re: [amibroker] Combining two or more scans with different filters within a code.
/*First Scan: //Advance/Decline Issues - Watchlist 0 Filter=InWatchList(0); AddToComposite(CRef(C,-1),~Adv0,X); AddToComposite(CRef(C,-1),~Dec0,X); Buy=Sell=Short=Cover=0; Second Scan: //Advance/Decline Issues - Watchlist 1 Filter=InWatchList(1); AddToComposite(CRef(C,-1),~Adv1,X); AddToComposite(CRef(C,-1),~Dec1,X); Buy=Sell=Short=Cover=0;*/ if(InWatchList(0)) { AddToComposite(CRef(C,-1),~Adv0,X); AddToComposite(CRef(C,-1),~Dec0,X); Buy=0; } if(InWatchList(1)) { AddToComposite(CRef(C,-1),~Adv1,X); AddToComposite(CRef(C,-1),~Dec1,X); Buy=0; } I commented out your original formula and added the above...click on SCAN to run the above formulathe composites are stored in Group 253 - Original Message - From: prudenttrader1 To: amibroker@yahoogroups.com Sent: Wednesday, July 28, 2010 10:08 AM Subject: [amibroker] Combining two or more scans with different filters within a code. Hi, Does anybody know how to combine the following two scans within a code so that the scan is run only once? First Scan: //Advance/Decline Issues - Watchlist 0 Filter=InWatchList(0); AddToComposite(CRef(C,-1),~Adv0,X); AddToComposite(CRef(C,-1),~Dec0,X); Buy=Sell=Short=Cover=0; Second Scan: //Advance/Decline Issues - Watchlist 1 Filter=InWatchList(1); AddToComposite(CRef(C,-1),~Adv1,X); AddToComposite(CRef(C,-1),~Dec1,X); Buy=Sell=Short=Cover=0; Thank you very much for your help.
[amibroker] plottext
I would like to stick a date on the chart tied to a specific condition and not have the date change when moving through the chart...any help appreciated. Thank you Anthony
Re: [amibroker] Re: questions about recent upgrade
to change watchlist name...go to SymbolCategoriesWatchlist edit name I have the latest version of the software...if I go to View menuI have Daily, Weekly, Monthly, Quarterly, and Yearly... - Original Message - From: triangle702000 To: amibroker@yahoogroups.com Sent: Monday, July 26, 2010 6:52 PM Subject: [amibroker] Re: questions about recent upgrade After some playing ,I can create a watchlist by clicking on the symbol tab @ the left of the screen and then right clicking and selecting create..., still doesn't work when clicking on symbol in the menu bar @ the top. I can live with that. Another issue is when trying to rename a watchlist,I click to highlight in blue, click again and a rectangle appears around the name of the watchlist with the blinking cursor next to it. I type in the new name but when I hit enter the new name disappears and is replaced with the original name. If I try to create a new watchlist with the new name,it says a watchlist already exists with that name even though the original name is displayed in the tree. example- I attempt to change original to new. I click twice,type in new, hit enter and the word new disappears and it says original again. Now,if I try to create a new watchlist and name it new,it says there is already a list named new even though the list it is referring to is displayed as original in the tree.I never had this problem in the previous version. Also,I dont see any way to view charts in a yearly and quarterly time frame. The only options available are intraday,hourly,daily,weekly,and monthly. I've reset all the menus,and still no yr or qt. Also,I use Yahoo finance for data. Is there any place that provides hourly,15min etc. data for free. I understand that to view this in real time I need a subscription but I was curious if there was anywhere I could get this data at the end of the day. Thanks -jim
Re: [amibroker] Hold a trade for a minimum # of bars
Hold() function in the help file...could be one way - Original Message - From: JEFF F To: amibroker@yahoogroups.com Sent: Wednesday, July 14, 2010 6:41 PM Subject: [amibroker] Hold a trade for a minimum # of bars Can anyone tell me how to hold a trade for a minimum # of bars (such as 3) before checking for a sell signal? I have tried settradedelay(0,3,0,0) but when i backtest, the trade still happens the next day. Same with changing the delay within the settings button. Any help is appreciated. Thanks
Re: [amibroker] Add to watchlist
if you have the symbol tree open while looking at charts you can add to watchlist. - Original Message - From: AmiBroker To: amibroker@yahoogroups.com Sent: Sunday, June 27, 2010 10:20 PM Subject: [amibroker] Add to watchlist In spite of how much I like AB, I'm surprised that as of 5.3, one can still not click (right-click) on a chart and add it to the watchlist of one's choice.
Re: [amibroker] Re: New 3rd party toolset for AmiBroker
I would like a copy also...if possible.. Thank you Anthony - Original Message - From: Rick Osborn To: amibroker@yahoogroups.com Sent: Saturday, June 26, 2010 11:42 AM Subject: Re: [amibroker] Re: New 3rd party toolset for AmiBroker Rob I would like a copy. I have been trying to translate EasyLanguage and other code but I just don't understand the math and my attempts just don't look right. Best Regards Rick Osborn -- From: Rob sidharth...@yahoo.com To: amibroker@yahoogroups.com Sent: Sat, June 26, 2010 4:20:10 AM Subject: [amibroker] Re: New 3rd party toolset for AmiBroker I have the hilbert oscillator sine wave already coded in AFL if anyone wants them... --- In amibroker@yahoogroups.com, WiseStockTrader wisestocktra...@... wrote: Hello Dennis All the indicator formulas execute within about 2 - 4 milliseconds which is on average about 0.003 seconds. The only exceptions to this are the the Hilbert Oscillator (7 milliseconds), Sine Wave (38 milliseconds) and automatic support (90 milliseconds). Some functions are a little slower than the native Amibroker versions because they verify the data supplied to them and because they are variable period functions so the same optimizations do not apply but I don't think you will ever notice the difference unless you have a hundred realtime charts open. All tests conducted on 2.4ghz Core 2 processor. Regards, Paul --- In amibroker@yahoogroups.com, Dennis Brown see3d@ wrote: Hello, I agree with the sentiment below. While it is not unreasonable for a specialized tool to cost more than the base product (based on amortizing the costs over a smaller user base), there should be a way to test its value. In my case, I have written many overlapping functions to these in AFL. Speed is my issue. I would love to test the functionality against my own versions for speed. I am trying to trade realtime, and I have 2 second compute delays. Speeding up my routines is high on my wish list. It would take some time and effort on my part just to evaluate its usefulness as integrated into my routines. I have already run down the route of purchasing a toolbox that could not be returned, only to discover that it was useless to me after a lot of effort. Insult added to injury that I would not like to repeat. However, I am interested in finding out if it can be of value to me. Best regards, Dennis On Jun 25, 2010, at 10:58 AM, cjdudek wrote: Yeah, this looks fairly useful and I don't mind paying for somebody else's code, but not without a free trial like AmiBroker offered, especially considering your no refund policy. It's really hard to look at documentation to decide whether or not it's worth $300. I looked at plenty of AmiBroker alternatives that looked good on their web sites but didn't offer the functionality of AmiBroker. I think a product like this might make AmiBroker 10% or 20% more useful, but not 100% more useful, so the price does not seem to reflect the value. If I had a 30-day or even 10-day free trial I might change my mind. --- In amibroker@yahoogroups.com, ram vel rvlv@ wrote: Hi wisestocktrader Thanks for your info with indepth idea of your toolset. CAN YOU PLEASE GIVE US LINK FOR HAVING A TRIAL OF YOUR TOOLBOX,PLEASE
Re: [amibroker] New 3rd party toolset for AmiBroker
I agree...all are freely availableThere are other(s) doing the same thing... Do you think any monetary considerations are given to original authors ? NOPE I will make available on CD indicators / explorations in my toolbox for a fee :') HA..HA.. - Original Message - From: Mubashar Virk To: amibroker@yahoogroups.com Sent: Thursday, June 24, 2010 3:36 PM Subject: Re: [amibroker] New 3rd party toolset for AmiBroker This guy must be a great genius: Adding some color codes and selling other peoples' freely available work for US$ 299.00 is supremely fantastic. On 6/24/2010 5:34 PM, Tomasz Janeczko wrote: Hello, I have just received the following notice about new 3rd party tool for AmiBroker, that you may find useful: --- www.wisetradertoolbox.com has released an advanced indicator toolset for Amibroker. This includes advanced pattern exploration: Gartley, Head And Shoulders, Trendlines, Triangles, Double Bottoms and Tops and Fibonnacci Retracements. The toolbox also includes a large number adaptive and reduced lag indicators with 5 smoothers and 7 adaptors to choose from. It also includes a number of other unique indicators just visit www.wisetradertoolbox.com for more information. Those who purchase before the 30th of June 2010 will receive the Neural Network addon free when it is released in the coming weeks. --- This is informational notice only. AmiBroker.com does not endorse any 3rd party products. Best regards, Tomasz Janeczko amibroker.com
Re: [amibroker] Re: Self Adaptive Bollinger
Here is something slapped together: /*Adaptive Zones Bollinger Bands OSCILLATOR*/ /*Automatically Adjusts the overbought and oversold levels based on past performance*/ //Bollinger Bands /*Input */ Lookback=Param(lookback,20,1,500,1); PerCent=Param(Percent enclosure,95,50,100,1); P = ParamField(Price field,-1); Periods = Param(Periods, 15, 2, 300, 1 ); Color = ParamColor(Color, colorCycle ); Style = ParamStyle(Style); /***Variables**/ /*Value of Osc*/ Value1 = p; /*Highest AND Lowest Values of Osc during Lookback Period*/ Value2 = HHV(Value1,Lookback); Value3 = LLV(Value1,Lookback); /*Range of Osc during Lookback Period*/ Value4 = Value2 - Value3; /*Define PerCent of Range to determine OB AND OS levels*/ Value5 = Value4 * (PerCent / 100); /*Calculate OB AND OS levels*/ Value6 = BBandTop( Value3 + Value5, Periods, LastValue(Value5) ); Value7 = BBandBot( Value2 - Value5, Periods, LastValue(Value5) ); Plot(Value6, O/B,color,style); Plot(Value7, O/S,color,style); Plot(C,c,colorBlack,styleCandle); Title=Std_value =+WriteVal(Value5,1.2)+\n+Percent_enclosure =+WriteVal(PerCent,1.2)+%; - Original Message - From: googool123123 To: amibroker@yahoogroups.com Sent: Sunday, June 13, 2010 11:02 PM Subject: [amibroker] Re: Self Adaptive Bollinger Hi It is posted online and is freely accessible by all, I am not sure if it would violate any copyright material if someone wrote in AFL and shared it http://tradersguild.wordpress.com/2008/02/15/self-adaptive-bollinger-bands/ --- In amibroker@yahoogroups.com, Howard B howardba...@... wrote: Hi G -- If it does not violate any copyright or non-disclosure, post the TradeStation code and someone will translate it and post the equivalent AmiBroker code. If that would be in violation, then this is not the appropriate forum. Thanks, Howard On Sun, Jun 13, 2010 at 11:36 AM, googool123123 bfall...@... wrote: I have Trade Station code for self adaptive Bollinger Ba nds. I was wondering if any one would be interested in translating it into Amibroker Language Thanks in Advance
Re: [amibroker] Round function
PREC - adjust number of decimal points of floating point number Math functions SYNTAX prec(ARRAY, precision ) RETURNS ARRAY FUNCTION Truncates ARRAY to precision decimal places. EXAMPLE The formula prec( 10.12981, 2 ) returns 10.120. The formula prec( 10.12981, 4 ) returns 10.12980. SEE ALSO - Original Message - From: ang_60 To: amibroker@yahoogroups.com Sent: Sunday, June 13, 2010 12:23 PM Subject: [amibroker] Round function Hi everybody, I'm trying the list because, most surely, I'm not the first to face this need: I'd like to round a number to the second decimal e.g. 41.3305 to 41.33 (in other word, ?i'd like a round function like the one in MS Excel). AFL built in round() function can round a number just to the nearest integer. What is the more convenient way to get the desired output in AFL? Thanks
Re: [amibroker] Divergence Indicator
there is a rsi divergence formula in the library...written by Dimitris - Original Message - From: Vishvesh To: amibroker@yahoogroups.com Sent: Friday, June 11, 2010 1:43 PM Subject: Re: [amibroker] Divergence Indicator [1 Attachment] [Attachment(s) from Vishvesh included below] When i say divergence it mean prices(low/high/close) have made newer reading but the RSI or MACD failed to do so. I have attached chart for ur perusal. Regards Vishvesh On Fri, Jun 11, 2010 at 10:12 PM, Howard B howardba...@gmail.com wrote: Hi Vishvesh -- If you can define divergence in an unambiguous way, it can be programmed. What is your definition? Thanks, Howard On Fri, Jun 11, 2010 at 10:11 AM, Vishvesh vishvesh.chau...@gmail.com wrote: Hello Friends, I was wondering is there AFL available which highlights the price bar when there is divergence in momentum (RSI,MACD) etc. Any help highly appreciated, Thanks Regards Vishvesh
Re: [amibroker] Making an index
look in the help file for: Addtocomposite() - Original Message - From: jonbois To: amibroker@yahoogroups.com Sent: Monday, May 24, 2010 5:49 PM Subject: [amibroker] Making an index Is there a way to make a composite security in amibroker 5.0. I would like to make my own index using 5 stocks. I can't find any reference to this in the help section. In metastock,it was called a composite security if I recall correctly. I have Bandy's Introduction book, if it is in there tell me where to look. Thanks JB
Re: [amibroker] How can I start plotting from a fixed number of days ago?
This might get you started. start=Param(days_back,21,5,1000,1); bi = BarIndex(); Plot( IIf( bi LastValue( bi ) - start, Null, EMA( C, 21 ) ), EMA, colorRed ); Plot(C,,colorBlack,styleCandle); - Original Message - From: googool123123 To: amibroker@yahoogroups.com Sent: Sunday, May 16, 2010 9:51 AM Subject: [amibroker] How can I start plotting from a fixed number of days ago? Hi, Is it possible to start plotting from a fixed number of days ago? for example, if I have a code like this start = DateNum() startdate to be more specific my code has startdat as parameter like this startdate = ParamDate(Starting Date , 2004-01-01); but I want to have it fixed on a time window, say, 11 days ago is it possible to code start date so that it always is 11 days ago? Many thanks in advance?
Re: [amibroker] Help please with simple formula below
Buy = Cross ( C , MA( Close, 30 ) ); - Original Message - From: MarkK To: amibroker@yahoogroups.com Sent: Thursday, March 25, 2010 8:15 AM Subject: [amibroker] Help please with simple formula below I know this must be simple yet I cannot figure it out Can someone let me know what I am doing wrong with this simple coding? I want to show a buy then close price is above the 30ma line Thank you Buy = Cross ( MA( Close, 30 ), (C30) ); Filter=Buy==1; AddTextColumn(FullName(),Name,1.0); AddColumn( Buy, Buy, 1.2 ); Mark
Re: [amibroker] Filter for multiple categories?
Keith , I believe there are several ways... CategoryGetSymbols( category, index ) GetCategorySymbols( category, index ) InWatchList( listno ) Filter= InWatchList( 3 ) OR InWatchList( 5 ); Anthony - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Thursday, March 18, 2010 3:30 PM Subject: [amibroker] Filter for multiple categories? With AAApply toDefineInclude, I have two similar problems: 1. If more than one category is selected, the are ANDed, rather than ORed. So that one cannot, for example, filter for Market:Nasdaq OR Group:ETF. 2. There is no way to select more than one list in a category. One cannot have Watchlist:7 OR Watchlist:13. I would very much like a solution to both problems. A programmatic solution would be most appreciated. I try to have as many settings in my code and as few GUI selected as possible. Thanks for any help. -- Keith
Re: [amibroker] Re: Day Session or 24 Hour from AFL...?
There is a DateTime Plugin in the 3rd party plugin area that might have something in it that could do what you are after.. - Original Message - From: dubi1974 To: amibroker@yahoogroups.com Sent: Wednesday, March 17, 2010 5:53 AM Subject: [amibroker] Re: Day Session or 24 Hour from AFL...? As I know, there is no way right now to know via AFL! I asked this question a longer time ago in this forum and nobody had an answer. I asked AmiBroker Feedback Center SUGGESTION to imply this feature in future versions of Amibroker. Don't know if they will. Regards, dubi --- In amibroker@yahoogroups.com, Rob sidharth...@... wrote: I'm wondering if there is a sure fire way to know via AFL if the chart in question is set to view the 24 hour session or the day session only? Clearly where there is enough data on the chart you can look for times outside the day session to tell you, but it's very possible, and is the case in this instance, that not enough data is visible in the current array to know what the filtering mode is... the only way to know would be scroll backwards... but I want to know via AFL if possible. I need to know because I'm constructing DateTime values back a certain number of bars (outside of the current arrays) and clearly 24 hour session or day session makes a big difference... TIA
Re: [amibroker] Re: How to limit to top 5 in an Exploration
This will produce a top 5 list in a window pane... // The top5 list list = CategoryGetSymbols( categoryWatchlist, 2 ); g=-100; t=; topList=; i1=0; nt=5;// calibrate here the topX for(n=1;n=nt;n++) { for( i = 0; ( sym = StrExtract( list, i ) ) != ; i++ ) { SetForeign(sym); x= C;//the individual metric t=WriteIf(xg,sym,t); i1=IIf(xg,i,i1); g=Max(g,x); } topList=topList + t + ,; L0=; for( i = 0; ( sym = StrExtract( list, i ) ) != ; i++ ) { SetForeign(sym); L0=L0+ WriteIf(i!=i1,sym+,,); } List=L0; g=-100; } Title=The top +WriteVal(nt,1.0)+ list for +Date()+ is +topList; - Original Message - From: Herman To: Mike Sent: Monday, March 15, 2010 3:49 AM Subject: Re: [amibroker] Re: How to limit to top 5 in an Exploration You could sort the results, export the result table, read the top 5 tickers from the exported file into a new watchlist, and run another exploration on that watchlist. All this can be automated in script - check out OLE Automation in the help. herman You would have to limit the number of symbols in the exploration to 5 ;) But seriously, I think that you're out of luck. One typical approach would be to run the exploration, then select the first 5 and right click to select the popup menu for adding the selected symbols to a new watchlist. Do whatever else you were planning on, but using the new watchlist. Mike --- In amibroker@yahoogroups.com, gelsner99 gels...@... wrote: For the simple AFL code below, what would I need to change so that when I run the Exploration it lists only the top 5? Fund = Close; Period = Param( .Period, 126, 63, 252, 63); // Calculate Total Gain and Annual Gain TotalGain = ROC(fund, period); AnnGain = Nz(100 *LastValue(((TotalGain/100+1)^(252/period)) - 1)); // Exploration Filter = 1; AddTextColumn(FullName(),Fund Name,1.0); AddColumn( AnnGain, AnnGain, 1.2 ); SetSortColumns(-4,); IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
Re: [amibroker] Re: Help Please !!!How to control sell time with Barsince for more than 1 stocks
Thank you... - Original Message - From: Tomasz Janeczko To: amibroker@yahoogroups.com Sent: Tuesday, March 09, 2010 7:13 AM Subject: Re: [amibroker] Re: Help Please !!!How to control sell time with Barsince for more than 1 stocks Hello, My point is that it is obsolete and while it is valid it has drawbacks: a) works only in regular backtest mode, does not work in raw, raw2, raw2multi, and rotational modes b) because exremspan processes entire array the formula would not take into account Range setting (i.e. buys will occur every 5th bar since the beginning of quotations, not since range start, if range is not all quotes, then first buy may not occur on first in-range bar). In order to account for range setting you would need to add Status(barinrange) c) its operation depends on trade delays being equal ApplyStop method does _not_ have any of the above problems. Best regards, Tomasz Janeczko amibroker.com On 2010-03-09 11:43, Anthony Faragasso wrote: Is this not valid then ? Buy = 1; Buy = ExRemSpan( Buy, 5 ); Sell = Ref( Buy, -5 ); - Original Message - From: Tomasz Janeczko To: amibroker@yahoogroups.com Sent: Tuesday, March 09, 2010 2:49 AM Subject: Re: [amibroker] Re: Help Please !!!How to control sell time with Barsince for more than 1 stocks Hello, YOU MUST USE APPLYSTOP instead of ExRemSpan !!! Sell = 0; // ApplyStop( stopTypeNBar, stopModeBars, 5 ); // 5- day stop !!! That is the ONLY way of implementing N-bar stop that works in ALL backtest modes ! Best regards, Tomasz Janeczko amibroker.com On 2010-03-08 23:54, Mike wrote: That should read: Sell = Ref(ExRemSpan(Buy, 5), -5); http://www.amibroker.com/guide/afl/afl_view.php?id=50 Mike --- In amibroker@yahoogroups.com, Anthony Faragasso ajf1...@... wrote: Did you try: Sell=exremspan(buy,5); - Original Message - From: Tao To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 5:17 PM Subject: [amibroker] Help Please !!!How to control sell time with Barsince for more than 1 stocks? Hi, Basically I scan 500 stocks everyday to find stocks that have buy signal(such as price have crossed MA 50). Then I buy the stocks and exit them in 5 days after I boought them. MA=EMA(C,50); Buy = Cross( MA, C ); Sell = BarsSince(Buy)5; But the backtester don't sell stocks exactly 5 days after I bought them. Say yesterday I bought stock A, today I bought stock B. The backtester will sell both A and B 5 days after today, which is not what I really want! What I want is to sell stock A 5 days after the time I bought A which is yesterday not today. Basically I want to have sell time for each stock to be 5 days after their individaul purchase dates. But Sell = BarsSince(Buy)5; can't do that. Please help! Thanks a lot Tao IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
Re: [amibroker] Re: Help Please !!!How to control sell time with Barsince for more than 1 stocks
Is this not valid then ? Buy = 1; Buy = ExRemSpan( Buy, 5 ); Sell = Ref( Buy, -5 ); - Original Message - From: Tomasz Janeczko To: amibroker@yahoogroups.com Sent: Tuesday, March 09, 2010 2:49 AM Subject: Re: [amibroker] Re: Help Please !!!How to control sell time with Barsince for more than 1 stocks Hello, YOU MUST USE APPLYSTOP instead of ExRemSpan !!! Sell = 0; // ApplyStop( stopTypeNBar, stopModeBars, 5 ); // 5- day stop !!! That is the ONLY way of implementing N-bar stop that works in ALL backtest modes ! Best regards, Tomasz Janeczko amibroker.com On 2010-03-08 23:54, Mike wrote: That should read: Sell = Ref(ExRemSpan(Buy, 5), -5); http://www.amibroker.com/guide/afl/afl_view.php?id=50 Mike --- In amibroker@yahoogroups.com, Anthony Faragasso ajf1...@... wrote: Did you try: Sell=exremspan(buy,5); - Original Message - From: Tao To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 5:17 PM Subject: [amibroker] Help Please !!!How to control sell time with Barsince for more than 1 stocks? Hi, Basically I scan 500 stocks everyday to find stocks that have buy signal(such as price have crossed MA 50). Then I buy the stocks and exit them in 5 days after I boought them. MA=EMA(C,50); Buy = Cross( MA, C ); Sell = BarsSince(Buy)5; But the backtester don't sell stocks exactly 5 days after I bought them. Say yesterday I bought stock A, today I bought stock B. The backtester will sell both A and B 5 days after today, which is not what I really want! What I want is to sell stock A 5 days after the time I bought A which is yesterday not today. Basically I want to have sell time for each stock to be 5 days after their individaul purchase dates. But Sell = BarsSince(Buy)5; can't do that. Please help! Thanks a lot Tao IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
Re: [amibroker] Percentile Rank
Hello, Did you check the help file for: Percentile( array, period, rank ) Anthony - Original Message - From: nyc65225 To: amibroker@yahoogroups.com Sent: Monday, March 01, 2010 6:58 PM Subject: [amibroker] Percentile Rank Hi there I am new to this group, and was wondering if there is any way to replicate in Amibroker what the function PERCENTILERANK does in Excel. Basically, I have an array, and I want to compare a specific value (i.e. the value of an oscillator), to its ranks in the array.. Is there a shortcut to do this? what I have been doing is exporting the values of the oscillator (using an explore) to an Excel spreadsheet, and then doing PERCENTILERANK there; which is very time consuming. THanks in advance for any help. Cheers,
Re: [amibroker] Help Please !!!How to control sell time with Barsince for more than 1 stocks?
Did you try: Sell=exremspan(buy,5); - Original Message - From: Tao To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 5:17 PM Subject: [amibroker] Help Please !!!How to control sell time with Barsince for more than 1 stocks? Hi, Basically I scan 500 stocks everyday to find stocks that have buy signal(such as price have crossed MA 50). Then I buy the stocks and exit them in 5 days after I boought them. MA=EMA(C,50); Buy = Cross( MA, C ); Sell = BarsSince(Buy)5; But the backtester don't sell stocks exactly 5 days after I bought them. Say yesterday I bought stock A, today I bought stock B. The backtester will sell both A and B 5 days after today, which is not what I really want! What I want is to sell stock A 5 days after the time I bought A which is yesterday not today. Basically I want to have sell time for each stock to be 5 days after their individaul purchase dates. But Sell = BarsSince(Buy)5; can't do that. Please help! Thanks a lot Tao
Re: [amibroker] Re: Is it possible to display a daily indicator on a weekly chart ???
Hello, My understanding is that you can not derive Daily data from Weekly data, you should do it in reverse then. Open up formula editor: SetChartOptions(0,chartShowDates); TimeFrameSet(inWeekly); Plot(C,weekly,colorBlack,styleCandle); TimeFrameRestore(); //Below plot your daily indicator - Original Message - From: iceboundbug To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 6:37 PM Subject: [amibroker] Re: Is it possible to display a daily indicator on a weekly chart ??? Hello Patrick, Thanks for the response. Yes, this is exactly the opporsite to what the Ami help describe (ie weekly on daily chart ) - what I need is daily on weekly chart. I checked everywhere including manual, user grop etc and tried various combinations of TimeFrame functions in AFL with no luck. Any help would be greatly appreciated. --- In amibroker@yahoogroups.com, NW Trader ta4cha...@... wrote: Hi Ice, Apologies, didn't read your whole message. I'll try to get back to you later after the market. Peace and Justice --- Patrick - Original Message - From: NW Trader To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 9:51 AM Subject: Re: [amibroker] Is it possible to display a daily indicator on a weekly chart ??? Hi ice, Yes it is. See TimeFrameSet() and TimeFrameRestore() in the AFL help. Hint, look at how one plots daily info on intraday charts. Peace and Justice --- Patrick - Original Message - From: iceboundbug To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 5:41 AM Subject: [amibroker] Is it possibl e to display a daily indicator on a weekly chart ??? Hi all, I tried to display a daily indicator on a weekly chart without any success. I would appreciate if someone can show me how. Thanks in advance. My attempt is listed below. /*Intent is to display daily indicator on a weekly chart*/ // TimeFrameSet( inDaily); DailyGSPCClose = Foreign( ^GSPC, C ) ; CrossBellow = IIf(MA(DailyGSPCClose ,10) MA(DailyGSPCClose ,30) , 1 , 0 ) ; //Plot(CrossBellow , ,IIf(CrossBellow == 0, colorDarkGreen, colorRed),styleOwnScale|styleArea|styleNoLabel,-200,15); StaticVarSet(BMD, CrossBellow); TimeFrameRestore(); ; / / TimeFrameSet( inDaily); temp = StaticVarGet(BMD); BMW = TimeFrameCompress( temp , inWeekly ); StaticVarSet(BMDonW, BMW ); TimeFrameRestore(); / / TimeFrameSet( inWeekly); temp1 = StaticVarGet(BMDonW); Plot(temp1 , ,IIf(temp1 == 0, colorDarkGreen, colorRed),styleOwnScale|styleArea|styleNoLabel,-200,15);
Fw: [amibroker] Re: Is it possible to display a daily indicator on a weekly chart ???
- Original Message - From: Anthony Faragasso To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 7:58 PM Subject: Re: [amibroker] Re: Is it possible to display a daily indicator on a weekly chart ??? Hello, My understanding is that you can not derive Daily data from Weekly data, you should do it in reverse then. Open up formula editor: SetChartOptions(0,chartShowDates); TimeFrameSet(inWeekly); Plot(C,weekly,colorBlack,styleCandle); TimeFrameRestore(); //Below plot your daily indicator - Original Message - From: iceboundbug To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 6:37 PM Subject: [amibroker] Re: Is it possible to display a daily indicator on a weekly chart ??? Hello Patrick, Thanks for the response. Yes, this is exactly the opporsite to what the Ami help describe (ie weekly on daily chart ) - what I need is daily on weekly chart. I checked everywhere including manual, user grop etc and tried various combinations of TimeFrame functions in AFL with no luck. Any help would be greatly appreciated. --- In amibroker@yahoogroups.com, NW Trader ta4cha...@... wrote: Hi Ice, Apologies, didn't read your whole message. I'll try to get back to you later after the market. Peace and Justice --- Patrick - Original Message - From: NW Trader To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 9:51 AM Subject: Re: [amibroker] Is it possible to display a daily indicator on a weekly chart ??? Hi ice, Yes it is. See TimeFrameSet() and TimeFrameRestore() in the AFL help. Hint, look at how one plots daily info on intraday charts. Peace and Justice --- Patrick - Original Message - From: iceboundbug To: amibroker@yahoogroups.com Sent: Thursday, March 04, 2010 5:41 AM Subject: [amibroker] Is it possibl e to display a daily indicator on a weekly chart ??? Hi all, I tried to display a daily indicator on a weekly chart without any success. I would appreciate if someone can show me how. Thanks in advance. My attempt is listed below. /*Intent is to display daily indicator on a weekly chart*/ // TimeFrameSet( inDaily); DailyGSPCClose = Foreign( ^GSPC, C ) ; CrossBellow = IIf(MA(DailyGSPCClose ,10) MA(DailyGSPCClose ,30) , 1 , 0 ) ; //Plot(CrossBellow , ,IIf(CrossBellow == 0, colorDarkGreen, colorRed),styleOwnScale|styleArea|styleNoLabel,-200,15); StaticVarSet(BMD, CrossBellow); TimeFrameRestore(); ; / / TimeFrameSet( inDaily); temp = StaticVarGet(BMD); BMW = TimeFrameCompress( temp , inWeekly ); StaticVarSet(BMDonW, BMW ); TimeFrameRestore(); / / TimeFrameSet( inWeekly); temp1 = StaticVarGet(BMDonW); Plot(temp1 , ,IIf(temp1 == 0, colorDarkGreen, colorRed),styleOwnScale|styleArea|styleNoLabel,-200,15);
[amibroker] test
[amibroker] start and end chart markers
Does anyone have a generic template using the start and end chart markers ? I would like to calculate some statistics between selected marker periodsI have not used these markers and do not know where or how to begin... Thank you for any help that can be provided. Anthony
Re: [amibroker] start and end chart markers
Thanks Jerry, I will give it a try... Anthony - Original Message - From: Jerry Gress To: amibroker@yahoogroups.com Sent: Saturday, February 27, 2010 1:25 PM Subject: RE: [amibroker] start and end chart markers Hello; From TJ in 2007 / Hello, Don't forget that BeginValue / EndValue functions allow you to calculate ANYTHING based on two selected values (i.e. range). SetChartOptions( 2, chartShowDates ); bv = BeginValue( Close ); ev = EndValue( Close ); Plot( C, Price, colorBlack, styleCandle ); Title = Change between markers = + ( ev - bv ) + ( + 100 * ( ev - bv )/bv + %); Then use range markers (double click for start , double click for end ); Best regards, Tomasz Janeczko amibroker.com /// Regards, JG -- From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Anthony Faragasso Sent: Saturday, February 27, 2010 8:05 AM To: amibroker@yahoogroups.com Subject: [amibroker] start and end chart markers Does anyone have a generic template using the start and end chart markers ? I would like to calculate some statistics between selected marker periodsI have not used these markers and do not know where or how to begin... Thank you for any help that can be provided. Anthony
Re: [amibroker] finding formulas on W7 install
Sid, Would that be found under Preferences AFL...at the bottom. ? Anthony - Original Message - From: Sidney Kaiser To: amibroker@yahoogroups.com Sent: Wednesday, February 24, 2010 2:33 PM Subject: [amibroker] finding formulas on W7 install Got a new W7 laptop, installed AB 5.20. Then I tried to copy my current desktop over that AB on the laptop. Probably a dumb move... AB couldn't find the data files because the data has a new address in the Program Files (x86) area. I went to preferences and changed the address to the new location. Now AB can't find the formulas, for the same reason I assume. I can't find any place to enter the new default location for the formula files. Anyone have a hint on how to change the formulas location address on that W7 laptop? Thanks, Sid
Re: [amibroker] Re: Why does this simple exploration crash when run or more than 10 tickers?
Ramon, I just ran your formula in AA... Current ticker selected^GSPC Range selected, 1998 to present explore No Crash Anthony - Original Message - From: ramoncummins To: amibroker@yahoogroups.com Sent: Sunday, February 21, 2010 8:22 AM Subject: [amibroker] Re: Why does this simple exploration crash when run or more than 10 tickers? Hi Thomasz, thanks for the speedy reply, v much appreciated. Please note that I am running the exploration code with ONLY SPY selected as the current symbol in AA - it does not use a filter at all, so your calculation is not correct. It is 1 Symbol (SPY) * Num Bars * 22 Columns. I am using EOD data, so the number_of_bars is approx 3000. I specifically want a matrix with dates down the side, and tickers across the top, with RSI2 EOD values in the cells - this would be a matrix 3000*20 = 60,000 cells - easily handled in excel. I am fully aware of the standard way of running the code, that you mention below - however this does not create a matrix - it creates a list, which then has to be manually formatted for my purposes into a matrix. I plan on rolling this out on the full nasdaq 100, which would mean a list of 3000 * 100 Tickers = 300,000 rows and excel (2003) cannot handle that. It can however, handle a matrix of 3000 rows * 100 Columns quite easily, hence the requirement for the matrix. I am still stumped as to my original example, why running it on EOD data over 3000 bars * 20 Tickers would crash it. Normally, Amibroker would chew something like this up . . . Thanks again for your assistance Ramon --- In amibroker@yahoogroups.com, Tomasz Janeczko gro...@... wrote: Hello, Hmm... you are not giving enough details therefore way too much is left for guessing Your formula should not crash, unless you are using some huge number of bars (1+ million?) but it is written inefficent and redundant. If you run your formula for 20 symbols and all bars (as you seem to be doing) you will create 20 rows * Number_of_bars * 22 columns (20 columns for symbols +name + date/time) With say one million bars (number_of_bars) you will end up having 440 000 000 cells. This may be reason of running out of memory, not to mention that Excel won't take such table. It is *WAY* more efficient to do it right way, i.e. using the simple code: AddColumn( RSI( 2 ), RSI, 1.2 ); Filter = 1; and setting Apply to ALL SYMBOLS. This will make AMiBroker iterate through all symbols and will be MUCH faster and LESS resource consuming than using your code. And you will end up with table having 20 rows * number_of_bars * 3 columns (name+date/time+rsi value), so with same one million bars under test you will have only 60 000 000 cells (6 times less than your code). You mention the dates but you don't mention the INTERVAL? So data are from 1998 til now BUT... at what interval? EOD ? Intraday (1-hour?, 1 - minute ???). You need to keep in mind that if you are using 1-minute data, assuming 8 trading hours per day gives 12 bars per year and 12 years gives 1.44 million bars. Each bar is 40 bytes. So each symbol intraday 1-minute data for 12 years back is about 60MB of data (for quotations alone). 20 symbols put into cache would be 1.2 gigabyte for data alone. This added to nearly one billion cells generated by your formula (assuming that your data set is as large as I have been guessing here) Anyway use Tools-Performance Monitor to see free memory changes. Best regards, Tomasz Janeczko amibroker.com On 2010-02-21 12:40, ramoncummins wrote: Hi everyone, I am trying to extract RSI(2) data for a group of stocks since 1998, using an exploration. The aim is to end up with dates down the side, and all the tickers across the top, with respective RSI(2) values in the rows. (This is to be dumped into excel later). The code below works fine (and indeed very quickly) when you limit the number of stocks to the first ten or so, but when I run the exploration over 20 stocks, it freezes and amibroker crashes. In order to replicate, just take the code below and run the exploration on SPY ONLY between 1998 and Today. It should work fine. Then uncomment the second batch of tickers and run it - does this crash your machine? Any ideas as to why? I have searched the posts for answers but nothing has helped so far. I presume its a memory problem of some sort. Note that I have the following settings in preferences, Data tab: In-memory cache: 20 (I have tried 11 as well, per a post from Tomasz) Max Megabytes: 800 Any help greatly appreciated. Ramon // Filter = 1; function indicator( Ticker ) { SetForeign( Ticker ); myRsi = RSI( 2 );
Re: [amibroker] Associating the correct date with barindex
Something like: Valuewhen(eg[i],dt); - Original Message - From: ta To: amibroker@yahoogroups.com Sent: Saturday, February 20, 2010 7:13 PM Subject: [amibroker] Associating the correct date with barindex Can somebody please tell me how I can associate the correct date with barindex when data is compressed? In the following example I am compressing the closing price of equity curve to monthly. However the trace statement shows incorrect date for the monthly prices.TIA dt = DateTime(); SetForeign( ~~~Equity ); TimeFrameSet( inMonthly ); Eq = Close; for ( i = 0 ; i BarCount ; i++ ) { _TRACE( i: + i + Date: + NumToStr( dt[i], formatDateTime ) + Eq: + Eq[i] ); } i: 2182 Date: 9/8/2009 Eq: {EMPTY} i: 2183 Date: 9/9/2009 Eq: 196780 i: 2184 Date: 9/10/2009 Eq: 200143 i: 2185 Date: 9/11/2009 Eq: 199723 i: 2186 Date: 9/14/2009 Eq: 200235 i: 2187 Date: 9/15/2009 Eq: 203289 i: 2188 Date: 9/16/2009 Eq: 203369 i: 2189 Date: 9/17/2009 Eq: 208362 i: 2190 Date: 9/18/2009 Eq: 209573 i: 2191 Date: 9/21/2009 Eq: 211509 i: 2192 Date: 9/22/2009 Eq: 213253 i: 2193 Date: 9/23/2009 Eq: 216647 i: 2194 Date: 9/24/2009 Eq: 219080 i: 2195 Date: 9/25/2009 Eq: 230729 i: 2196 Date: 9/28/2009 Eq: 231932 i: 2197 Date: 9/29/2009 Eq: 234587
[amibroker] OT: re-fullinstall of Vista without losing Data
Hello group, My problem is that Vista Home premium has some issues that have stopped working... Some services will not start and I have been unable to resolve these issues...among other things.. I wish to do a full operating install...I do not have a recovery CD , I have a recovery Partition that came with the computer... I want to keep all programs and files that I now have on my hard disk...what would be the best way to accomplish this task..? Thank you , Anthony
Re: [amibroker] Associating the correct date with barindex
This worked for me...I changed the ticker to test it..opened log window and turned on Internal trace ... TimeFrameSet( inMonthly ); dt = DateTime(); SetForeign( S ); Eq = Close; TimeFrameRestore(); for ( i = 0 ; i BarCount ; i++ ) { nt = ValueWhen(Eq[i], dt); _TRACE( i: + i + Date: + NumToStr( nt[i], formatDateTime ) + Eq: + Eq[i] ); - Original Message - From: ta To: amibroker@yahoogroups.com Sent: Sunday, February 21, 2010 4:16 PM Subject: RE: [amibroker] Associating the correct date with barindex Thanks for your reply . It does not seem to work for me. The following is the code: dt = DateTime(); SetForeign( ~~~Equity ); TimeFrameSet( inMonthly ); Eq = Close; for ( i = 0 ; i BarCount ; i++ ) { nt = ValueWhen(Eq[i], dt[i]); _TRACE( i: + i + Date: + NumToStr( nt[i], formatDateTime ) + Eq: + Eq[i] ); } From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Anthony Faragasso Sent: Sunday, February 21, 2010 6:04 AM To: amibroker@yahoogroups.com Subject: Re: [amibroker] Associating the correct date with barindex Something like: Valuewhen(eg[i],dt); - Original Message - From: ta To: amibroker@yahoogroups.com Sent: Saturday, February 20, 2010 7:13 PM Subject: [amibroker] Associating the correct date with barindex Can somebody please tell me how I can associate the correct date with barindex when data is compressed? In the following example I am compressing the closing price of equity curve to monthly. However the trace statement shows incorrect date for the monthly prices.TIA dt = DateTime(); SetForeign( ~~~Equity ); TimeFrameSet( inMonthly ); Eq = Close; for ( i = 0 ; i BarCount ; i++ ) { _TRACE( i: + i + Date: + NumToStr( dt[i], formatDateTime ) + Eq: + Eq[i] ); } i: 2182 Date: 9/8/2009 Eq: {EMPTY} i: 2183 Date: 9/9/2009 Eq: 196780 i: 2184 Date: 9/10/2009 Eq: 200143 i: 2185 Date: 9/11/2009 Eq: 199723 i: 2186 Date: 9/14/2009 Eq: 200235 i: 2187 Date: 9/15/2009 Eq: 203289 i: 2188 Date: 9/16/2009 Eq: 203369 i: 2189 Date: 9/17/2009 Eq: 208362 i: 2190 Date: 9/18/2009 Eq: 209573 i: 2191 Date: 9/21/2009 Eq: 211509 i: 2192 Date: 9/22/2009 Eq: 213253 i: 2193 Date: 9/23/2009 Eq: 216647 i: 2194 Date: 9/24/2009 Eq: 219080 i: 2195 Date: 9/25/2009 Eq: 230729 i: 2196 Date: 9/28/2009 Eq: 231932 i: 2197 Date: 9/29/2009 Eq: 234587
Re: [amibroker] AFl Code -3 days continuous up+ adx rsinging
This should get you started: ContinuousUP=Param(continuousUP,2,2,5,1); up=Sum(O Ref(O,-1)AND C Ref(C,-1) AND PDI() MDI(),ContinuousUP)==ContinuousUP; Buy=up; Sell=Cross(MDI(),PDI()); Filter=up; AddColumn(C,); - Original Message - From: silon sama To: amibroker@yahoogroups.com Cc: ta4cha...@comcast.net Sent: Saturday, February 13, 2010 12:57 AM Subject: [amibroker] AFl Code -3 days continuous up+ adx rsinging hi is it posssible to creat code for 2 /3 consecutive day -where (1)openprevious day open+close previous day close(or today close today open=either white or black candle stick ) (2)+DI-DI with buy description in AFL so can run backtesting if anybody creat it i'll be very thankful ,pls help its has given me good results in stock picking when market is in trading ranger whie testing manually --- On Thu, 2/4/10, NW Trader ta4cha...@comcast.net wrote: From: NW Trader ta4cha...@comcast.net Subject: Re: [amibroker] AFl Code -3 days continuous up+ adx rsinging To: amibroker@yahoogroups.com Date: Thursday, February 4, 2010, 12:57 AM Hi Silon, Apologies for delay -- lots going on at my end. I'm in trading just now, so I'll have to wait for market to close before spending much more time on this. However as I originally said, this isn't difficult to code once you write out the conditions you are looking to be met. What have you tried so far? As an example to get you started (and without doing this is AB, but it should work) consider the following to code for two days up (your definition: Open previous day's close + close close of previous day): PCondUP2 = ( O ref(C,-1) and C REF(C,-1) ) AND ( REF(O,-1) REF(C,-2) AND REF(C,-1) REF(C,-2) ) ; Do you see how to refer to the open or close and the prior close as well as tie price actions for different days together? The same will work for any array (StochK(15,3) , PDI(14), etc. While you could run all coding into a single Filter = , when you first start out (and even later), I recommend writing out each of your conditions as a separate statement and then linking them in the filter as Filter = PCondUP2 and PCondUP3 and ... etc. That way if you have a problem with your coding, you can isolate it quickly or if you decide you want to add or delete conditions, it is relatively easy to do so. This condition approach also allows for easy construction of Buy or Sell statements, putting signals (arrows, triangles, etc.) on a chart, as well as constructing different ribbons to depict conditions or coloring your candles based on one or more conditions. Adding information in a title statement is also facilitated. Complex code execution can also be speeded up by making conditions dependent on each other. I'll check back in a few hours after the market closes to see how you are doing. I would rather you learn how to fish than I just give you a fish to eat today. Peace and Justice --- Patrick - Original Message - From: silon sama To: amibro...@yahoogrou ps.com Sent: Wednesday, February 03, 2010 8:46 AM Subject: Fw: [amibroker] AFl Code -3 days continuous up+ adx rsinging hi NWTRADER can u please give me sollution --- On Sat, 1/30/10, silon sama u4my1...@yahoo. com wrote: From: silon sama u4my1...@yahoo. com Subject: Fw: [amibroker] AFl Code -3 days continuous up+ adx rsinging [1 Attachment] To: amibro...@yahoogrou ps.com Date: Saturday, January 30, 2010, 11:57 PM pls suggest me wat to do --- On Sat, 1/30/10, silon sama u4my1...@yahoo. com wrote: From: silon sama u4my1...@yahoo. com Subject: [amibroker] AFl Code -3 days continuous up+ adx rsinging [1 Attachment] To: amibro...@yahoogrou ps.com Date: Saturday, January 30, 2010, 2:45 PM Dear All member, can anybody wil help me to create AFL as per attachment : (1) Stock is continuous up from last 2or 3 days + and each of day OPENCLOSE + (2) ADX indicator of
Re: [amibroker] how to run Automatic Analysis on multiple watch lists
You can do it through code...something like: filter= inWatchlist(n) and inWatchlist(n).etc... - Original Message - From: Eski Movsinuit To: amibroker@yahoogroups.com ; amibroker@yahoogroups.com Sent: Monday, February 08, 2010 1:14 AM Subject: [amibroker] how to run Automatic Analysis on multiple watch lists Hi, I would like to run Automatic Analysis on multiple watch lists. For example, I would like to run SP100+NQ100+some ETL+some other. So, I have 4 separate watch lists. On the Apply to use filter, I can only select one watch list. How do I select 4 list at the same time? Thank you. Eski
Re: [amibroker] A BACKTESTING HURDLE
lookup.. PoistionScore .in the help menu The score (PositionScore) for all securities is calculated first. Then all scores are sorted according to absolute value of PositionScore. Then top N are choosen to be traded. - Original Message - From: Joseph Occhipinti To: amibroker@yahoogroups.com Sent: Sunday, February 07, 2010 6:49 AM Subject: [amibroker] A BACKTESTING HURDLE say i run backtest, and on any given month, the scanner generates 4 ASX stocks, is there something in the Settings menu that will allow me to take all of those trades? instead of just the one - which the backtest seems to be doing. Specifically, it defaults to taking the first one in the list generated The reason I ask is that when I generated a trade list i noticed there was quite a large number of ASX stocks starting with the letter A. Out of 1,200 odd trades over the 10 year period, about 500 were starting with A. I found this to be a little peculiar. Anyway, upon looking further into this, I realized that if the scanner generated say 4 ASX stocks to go long on then it would pick the first one: ie. ALL BHP NAB (lets say NAB has the best set up) WOW The system would pick ALL, becuase its first on list. And if in the next month the same list was generated only this time, there was no ALL, then BHP would be picked. And so on. Thanks for your help on this -- From: Anthony Faragasso ajf1...@epix.net To: amibroker@yahoogroups.com Sent: Sat, 26 December, 2009 2:05:18 AM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required Buy,Sell,Short, Cover added.. gapclosingfromupope n =Open Ref(H,-1) AND C Ref(L,-1) AND C Ref(H,-1); gapclosingfromdowno pen=Open Ref(L,-1) AND C Ref(L,-1) AND C Ref(H,-1); Color= IIf(gapclosingfromupop en,colorYellow,IIf(gapclosingfromdown open,colorOrange,ParamColor(color,colorBlack))); PlotShapes(gapclosingfromupop en*shapeDownArrow,colorRed,0,High,-15); PlotShapes(gapclosingfromdown open*shapeUpArrow,colorGreen,0,Low,-15); _SECTION_BEGIN(Price); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat({{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, Close, color , styleNoTitle | ParamStyle(Style) | GetPriceStyle() ); _SECTION_END(); //Buy,Sell,Short, cover //Note: In AA settings ** General Positions ** set to long and short SetTradeDelays( 0, 0, 0, 0 );//overrides delay setting in AA window Buy=Ref(gapclosingfromdowno pen,-1); BuyPrice=Open; Sell=Ref(gapclosingfromdown open,-1); SellPrice=Close; Short=Ref(gapclosingfromupope n,-1); ShortPrice=Open; Cover=Ref(gapclosingfromupop en,-1); CoverPrice=Close; / / Filter= gapclosingfromupope n OR gapclosingfromdowno pen; AddColumn(C,); AddColumn(gapclosingfromupop en,up); AddColumn(gapclosingfromdown Open,down); -- Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and for free at PLUS7. Check it out.
Re: [amibroker] Simple Buy on Close, Sell on Open not as expected
Keith give this a try: Settings window: allow same bar exit is enabled all stops are disabled In the trades window of the settings I set up the trades as follows probably do not need it : buy=close, delay 0;sell=open, delay 0 short=close, delay 0 ,cover = open, delay 0 // BuyClose SellOpen Daily.afl SetTradeDelays(0,0,0,0); Buy = Ref(Close,-1); BuyPrice = ValueWhen(Buy,Ref(C,-1)); Sell = Open; SellPrice = Open; Short = Cover = False; // long only strategy - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Saturday, January 30, 2010 1:09 AM Subject: [amibroker] Simple Buy on Close, Sell on Open not as expected Just fooling around with a very simple idea, but can't get the code to work. The idea is to sell at close of every day, hold over night, and sell at open the following day. Code below sorta works, but skips every other day. For example: Day 1, buy on close; Day2, sell on open. Day 3, buy on close; Day4, sell on open. etc. But I can't make it buy on close of days 2, 4, etc. Tried Allow same bar exit in settings, but that makes it sell the same day that it buys, which is wrong. // BuyClose SellOpen Daily.afl SetTradeDelays(0,1,0,0); // has no effect Buy = Close; BuyPrice = Close; Sell = Open; SellPrice = Open; Short = Cover = False; // long only strategy Buy = ExRem(Buy, Sell); // has no effect Sell = ExRem(Sell, Buy); // has no effect Well? -- Keith
Re: [amibroker] Simple Buy on Close, Sell on Open not as expected [1 Attachment]
Keith, Here is a screen shot of my resultsit produces every day... I selected current stock and ticker is Sprint with a from to range as depicted in the screen shot Anthony - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Saturday, January 30, 2010 12:54 PM Subject: Re: [amibroker] Simple Buy on Close, Sell on Open not as expected Anthony -- Thanks for your effort. I tried your exact code (copy and paste). It still skips every other day. Also, I reduced the code to absolute minimum as: Buy = 1; BuyPrice = Close; Sell = Ref(Buy, -1); SellPrice = Open; Been through my settings many times. Still the same. BTW, I'm running 5.26beta. -- Keith Anthony Faragasso wrote: Keith give this a try: Settings window: allow same bar exit is enabled all stops are disabled In the trades window of the settings I set up the trades as follows probably do not need it : buy=close, delay 0;sell=open, delay 0 short=close, delay 0 ,cover = open, delay 0 // BuyClose SellOpen Daily.afl SetTradeDelays(0,0,0,0); Buy = Ref(Close,-1); BuyPrice = ValueWhen(Buy,Ref(C,-1)); Sell = Open; SellPrice = Open; Short = Cover = False; // long only strategy - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Saturday, January 30, 2010 1:09 AM Subject: [amibroker] Simple Buy on Close, Sell on Open not as expected Just fooling around with a very simple idea, but can't get the code to work. The idea is to sell at close of every day, hold over night, and sell at open the following day. Code below sorta works, but skips every other day. For example: Day 1, buy on close; Day2, sell on open. Day 3, buy on close; Day4, sell on open. etc. But I can't make it buy on close of days 2, 4, etc. Tried Allow same bar exit in settings, but that makes it sell the same day that it buys, which is wrong. // BuyClose SellOpen Daily.afl SetTradeDelays(0,1,0,0); // has no effect Buy = Close; BuyPrice = Close; Sell = Open; SellPrice = Open; Short = Cover = False; // long only strategy Buy = ExRem(Buy, Sell); // has no effect Sell = ExRem(Sell, Buy); // has no effect Well? -- Keith 1.jpg
Re: [amibroker] Simple Buy on Close, Sell on Open not as expected
// BuyClose SellOpen Daily.afl SetTradeDelays(0,0,0,0); Buy = C;//Ref(Close,-1); BuyPrice = C;//ValueWhen(Buy,Ref(C,-1)); Sell = Ref(Open,1); SellPrice = Ref(Open,1); Short = Cover = False; // long only strategy - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Saturday, January 30, 2010 12:54 PM Subject: Re: [amibroker] Simple Buy on Close, Sell on Open not as expected Anthony -- Thanks for your effort. I tried your exact code (copy and paste). It still skips every other day. Also, I reduced the code to absolute minimum as: Buy = 1; BuyPrice = Close; Sell = Ref(Buy, -1); SellPrice = Open; Been through my settings many times. Still the same. BTW, I'm running 5.26beta. -- Keith Anthony Faragasso wrote: Keith give this a try: Settings window: allow same bar exit is enabled all stops are disabled In the trades window of the settings I set up the trades as follows probably do not need it : buy=close, delay 0;sell=open, delay 0 short=close, delay 0 ,cover = open, delay 0 // BuyClose SellOpen Daily.afl SetTradeDelays(0,0,0,0); Buy = Ref(Close,-1); BuyPrice = ValueWhen(Buy,Ref(C,-1)); Sell = Open; SellPrice = Open; Short = Cover = False; // long only strategy - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Saturday, January 30, 2010 1:09 AM Subject: [amibroker] Simple Buy on Close, Sell on Open not as expected Just fooling around with a very simple idea, but can't get the code to work. The idea is to sell at close of every day, hold over night, and sell at open the following day. Code below sorta works, but skips every other day. For example: Day 1, buy on close; Day2, sell on open. Day 3, buy on close; Day4, sell on open. etc. But I can't make it buy on close of days 2, 4, etc. Tried Allow same bar exit in settings, but that makes it sell the same day that it buys, which is wrong. // BuyClose SellOpen Daily.afl SetTradeDelays(0,1,0,0); // has no effect Buy = Close; BuyPrice = Close; Sell = Open; SellPrice = Open; Short = Cover = False; // long only strategy Buy = ExRem(Buy, Sell); // has no effect Sell = ExRem(Sell, Buy); // has no effect Well? -- Keith 1.jpg
Re: [amibroker] FREE YAHOO DATA IN AB - Big Problem
select historical update - Original Message - From: Joseph Occhipinti To: amibroker@yahoogroups.com Sent: Tuesday, January 26, 2010 4:22 PM Subject: [amibroker] FREE YAHOO DATA IN AB - Big Problem Hi All -- I have just realised that the dates on my free yahoo data are all out of whack. Each market I have goes something like this: 14/12/09, 15/12/09, 16/12/09, 17/12/09, 18/12/09, but then it goes, 23/12/09, 24/12/09, and then jumps to 19/01/2010 and then to 26/01/2010 The only thing i can think of is that these are the dates when I updated all the tickers. But does that mean that I need to update it everyday to get accurate data? If I am away from my laptop for a week, will that mean that i will have a week missing from my data when i go to update it next? With my Norgate Premium Data, if I am away for a week, i will get an update of current data PLUS all the data for that week I was away. Is there any way of performing my yahoo updates so that I get all data available? Otherwise this renders the yahoo data absolutely useless. Anyone else have such a problem with yahoo data? Cheers -- See what's on at the movies in your area. Find out now.
Re: [amibroker] Help with formula
Keith, Have you tried the formula ? I made the adjustments as you stated still does not work...although I had them the way you suggested earlier...I have been trying but something is not working properly. Description: When there is a new buy or sell signal the cumCst will reset to 0.10 and increment by 0.003 until it gets to a maximum of 0.13, this is not happening with the formula belowI can not see the error, can anyone ? Here is the complete formula Buy=Cross(C,EMA(C,19)); Sell=Cross(EMA(C,19),C) ; CumCst=0.00; poslong=0; posshort=0; for (i=1; i BarCount; i++) { if(Buy[i]) { poslong=1; posshort=0; CumCst[i]=0.10; } if(Sell[i]) { poslong=0; posshort=1; CumCst[i]=0.10; } if(posshort) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(poslong) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(CumCst[i] 0.13) CumCst[i] = 0.13; } per=19; Smth=2/(per+1)+CumCst; MovAvg=AMA(C,Smth); Plot(movavg,,colorBlue,1); Plot(C,,1,64); PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-20); PlotShapes(Sell* shapeDownArrow,colorRed,0,H,-20); Title=cumulative value = +WriteVal(Cumcst,1.3); - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Saturday, January 23, 2010 1:37 AM Subject: Re: [amibroker] Help with formula Anthony -- I have added comments to your code below: // Anthony.afl Buy=Cross(C,EMA(C,19)); Sell=Cross(EMA(C,19),C) ; CumCst=0.00; poslong=0; posshort=0; for (i=1; i BarCount; i++) { if(Buy[i]) { poslong==1;// == doesn't set poslong to 1, it stays 0 posshort==0; // use = to set value CumCst[i]=0.10; } if(Sell[i]) { poslong==0; posshort==1;// == doesn't set posshort to 1, it stays 0 CumCst[i]=0.10; // use = to set value } if(posshort) // posshort is 0 and code below is never executed { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(poslong) // poslong is 0 and code below is never executed { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } Keith, Thanks...but that does not seem to be the problem..when there is a signal buy or sell...cumCST starts at 0.10 and increments by 0.003 as per the formula...that is not happeningit must be something else Anthony - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Friday, January 22, 2010 10:35 PM Subject: Re: [amibroker] Help with formula In four places you used == where you should have used only =. Anthony Faragasso wrote: Hello, Could someone look at this please...I can not see the error... The cumCST should increment up to .13 but it is not happening.. Thank you Anthony Buy=Cross(C,EMA(C,19)); Sell=Cross(EMA(C,19),C) ; CumCst=0.00; poslong=0; posshort=0; for (i=1; i BarCount; i++) { if(Buy[i]) { poslong==1; posshort==0; CumCst[i]=0.10; } if(Sell[i]) { poslong==0; posshort==1; CumCst[i]=0.10; } if(posshort) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(poslong) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(CumCst[i] = 0.13) CumCst[i] = 0.13; } per=19; Smth=2/(per+1)+CumCst; MovAvg=AMA(C,Smth); Plot(movavg,,colorBlue,1); Plot(C,,1,64); PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-20); PlotShapes(Sell* shapeDownArrow,colorRed,0,H,-20); Title=cumulative value = +WriteVal(Cumcst,1.3);
Re: [amibroker] Help with formula
Ed, Thank you...The code below is doing what is supposed to happen...still curious what is wrong with the formula I posted...any ideas ? Anthony - Original Message - From: Edward Pottasch To: amibroker@yahoogroups.com Sent: Saturday, January 23, 2010 8:19 AM Subject: Re: [amibroker] Help with formula have a look at code below Anthony. I guess it could be programmed using arrays only, not sure, regards, Ed function (Buy,Sell) { CumCst = Null; for (i = 1; i BarCount; i++) { if(Buy[i]) { CumCst[i]=0.10; for (j = i + 1; j BarCount; j++) { if (Sell[ j ] ) { i = j - 1; break; } else if(C[j] C[j-1]) { CumCst[j] = Min(CumCst[j-1] + 0.003,0.13); } else if(C[j] = C[j-1]) { CumCst[j] = CumCst[j-1]; } else if (j == BarCount - 1) { i = BarCount; break; } } } else if(Sell[i]) { CumCst[i]=0.10; for (j = i + 1; j BarCount; j++) { if (Sell[ j ] ) { i = j - 1; break; } else if(C[j] C[j-1]) { CumCst[j] = Min(CumCst[j-1] + 0.003,0.13); } else if(C[j] = C[j-1]) { CumCst[j] = CumCst[j-1]; } else if (j == BarCount - 1) { i = BarCount; break; } } } } return CumCst; } Buy=Cross(C,EMA(C,19)); Sell=Cross(EMA(C,19),C) ; CumCst = (Buy,Sell); per=19; Smth = 2/(per+1)+CumCst; MovAvg = AMA(C,Smth); Plot(movavg,,colorBlue,1); Plot(C,,1,64); PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-20); PlotShapes(Sell* shapeDownArrow,colorRed,0,H,-20); Title=cumulative value = +WriteVal(Cumcst,1.3); - Original Message - From: Anthony Faragasso To: amibroker@yahoogroups.com Sent: Saturday, January 23, 2010 1:47 PM Subject: Re: [amibroker] Help with formula Keith, Have you tried the formula ? I made the adjustments as you stated still does not work...although I had them the way you suggested earlier...I have been trying but something is not working properly. Description: When there is a new buy or sell signal the cumCst will reset to 0.10 and increment by 0.003 until it gets to a maximum of 0.13, this is not happening with the formula belowI can not see the error, can anyone ? Here is the complete formula Buy=Cross(C,EMA(C,19)); Sell=Cross(EMA(C,19),C) ; CumCst=0.00; poslong=0; posshort=0; for (i=1; i BarCount; i++) { if(Buy[i]) { poslong=1; posshort=0; CumCst[i]=0.10; } if(Sell[i]) { poslong=0; posshort=1; CumCst[i]=0.10; } if(posshort) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(poslong) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(CumCst[i] 0.13) CumCst[i] = 0.13; } per=19; Smth=2/(per+1)+CumCst; MovAvg=AMA(C,Smth); Plot(movavg,,colorBlue,1); Plot(C,,1,64); PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-20); PlotShapes(Sell* shapeDownArrow,colorRed,0,H,-20); Title=cumulative value = +WriteVal(Cumcst,1.3); - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Saturday, January 23, 2010 1:37 AM Subject: Re: [amibroker] Help with formula Anthony -- I have added comments to your code below: // Anthony.afl Buy=Cross(C,EMA(C,19)); Sell=Cross(EMA(C,19),C) ; CumCst=0.00; poslong=0; posshort=0; for (i=1; i BarCount; i++) { if(Buy[i]) { poslong==1;// == doesn't set poslong to 1, it stays 0 posshort==0; // use = to set value CumCst[i]=0.10; } if(Sell[i]) { poslong==0; posshort==1;// == doesn't set posshort to 1, it stays 0 CumCst[i]=0.10; // use = to set value } if(posshort) // posshort is 0 and code below is never executed { if(C[i] C[i-1
[amibroker] Help with formula
Hello, Could someone look at this please...I can not see the error... The cumCST should increment up to .13 but it is not happening.. Thank you Anthony Buy=Cross(C,EMA(C,19)); Sell=Cross(EMA(C,19),C) ; CumCst=0.00; poslong=0; posshort=0; for (i=1; i BarCount; i++) { if(Buy[i]) { poslong==1; posshort==0; CumCst[i]=0.10; } if(Sell[i]) { poslong==0; posshort==1; CumCst[i]=0.10; } if(posshort) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(poslong) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(CumCst[i] = 0.13) CumCst[i] = 0.13; } per=19; Smth=2/(per+1)+CumCst; MovAvg=AMA(C,Smth); Plot(movavg,,colorBlue,1); Plot(C,,1,64); PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-20); PlotShapes(Sell* shapeDownArrow,colorRed,0,H,-20); Title=cumulative value = +WriteVal(Cumcst,1.3);
Re: [amibroker] Help with formula
Keith, Thanks...but that does not seem to be the problem..when there is a signal buy or sell...cumCST starts at 0.10 and increments by 0.003 as per the formula...that is not happeningit must be something else Anthony - Original Message - From: Keith McCombs To: amibroker@yahoogroups.com Sent: Friday, January 22, 2010 10:35 PM Subject: Re: [amibroker] Help with formula In four places you used == where you should have used only =. Anthony Faragasso wrote: Hello, Could someone look at this please...I can not see the error... The cumCST should increment up to .13 but it is not happening.. Thank you Anthony Buy=Cross(C,EMA(C,19)); Sell=Cross(EMA(C,19),C) ; CumCst=0.00; poslong=0; posshort=0; for (i=1; i BarCount; i++) { if(Buy[i]) { poslong==1; posshort==0; CumCst[i]=0.10; } if(Sell[i]) { poslong==0; posshort==1; CumCst[i]=0.10; } if(posshort) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(poslong) { if(C[i] C[i-1]) CumCst[i] = CumCst[i-1] + 0.003; else CumCst[i] = CumCst[i-1]; } if(CumCst[i] = 0.13) CumCst[i] = 0.13; } per=19; Smth=2/(per+1)+CumCst; MovAvg=AMA(C,Smth); Plot(movavg,,colorBlue,1); Plot(C,,1,64); PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-20); PlotShapes(Sell* shapeDownArrow,colorRed,0,H,-20); Title=cumulative value = +WriteVal(Cumcst,1.3);
Re: [amibroker] Re: Options Pricing and Probability.
There is a Probability Calculator in the Library... - Original Message - From: rr879rr To: amibroker@yahoogroups.com Sent: Tuesday, January 19, 2010 3:07 AM Subject: [amibroker] Re: Options Pricing and Probability. --- In amibroker@yahoogroups.com, louies88 louie...@... wrote: --- In amibroker@yahoogroups.com, rr879rr rr879rr@ wrote: Has anyone tried to do a Monte Carlo on the Probability value of the Underlying Stock at Option expiration (using Amibroker, of course)? Also, has any work being done in the area of Option Pricing and trading Options using Evolutionary Algorithms supported by Amibroker(CMAE or Particle-Swarm)? Maybe a little discussion on the above would be interesting. rr Hello RR I didn't know that you can trade/analyze options in Amibroker. How did you do that? Is there a link that I can find out more? thanks Amibroker provides you a programming language and the charting ability. So you can do any kind of analysis using Amibroker. If you study the underlying math that relates to Options, you can program Amibroker to analyze Options. I would like to discuss here the experience that Amibroker users have had developing/coding Option-related tools and techniques. rr
Re: [amibroker] Re: Detrending code help needed
There is a Detrended Price Osc. in Amibrokermaybe you can use that.. - Original Message - From: mkecera To: amibroker@yahoogroups.com Sent: Friday, January 08, 2010 3:52 AM Subject: [amibroker] Re: Detrending code help needed I am willing to hire a programmer who can write this. It shouldn't be very difficult to accomplish. If you are interested mail me please. Thank you. BR, MK --- In amibroker@yahoogroups.com, mkecera mkec...@... wrote: Dear All, I need some help coding the following: I have a system that makes decisions based on the last 500 bars. I would like to detrend the last 500 bars by subtracting one bar average return during these 500 bars and use this detrended time series to make decisions. I have no idea how to accomplish this. Can some more experienced code writer advise please? Thank you a lot. Best regards, MK
Re: [amibroker] I REALLY NEED HELP
Filter=1; /DAILY/// AddColumn(Ref(C,-1),Previous); AddColumn(C,Price); AddColumn(ROC(C,1),Daily%);//% change Daily /WEEKLY/ TimeFrameSet(inWeekly); AddColumn(Ref(C,-1),Previous); AddColumn(C,Price); AddColumn(ROC(C,1),Weekly%);//% change Weekly TimeFrameRestore(); /MONTHLY TimeFrameSet(inMonthly); AddColumn(Ref(C,-1),Previous); AddColumn(C,Price); AddColumn(ROC(C,1),Monthly%);//% change Monthly TimeFrameRestore(); /YEARLY/ TimeFrameSet(inYearly); AddColumn(Ref(C,-1),Previous); AddColumn(C,Price); AddColumn(ROC(C,1),Yearly%);//% change Yearly TimeFrameRestore(); - Original Message - From: Rasheed Momoh To: amibroker@yahoogroups.com Sent: Monday, January 04, 2010 3:48 AM Subject: Re: [amibroker] I REALLY NEED HELP thanks we are almost there. What about the %change? --- On Sun, 1/3/10, Anthony Faragasso ajf1...@epix.net wrote: From: Anthony Faragasso ajf1...@epix.net Subject: Re: [amibroker] I REALLY NEED HELP To: amibroker@yahoogroups.com Date: Sunday, January 3, 2010, 6:57 PM Filter=1; /DAILY// / AddColumn(Ref(C,-1),Previous); AddColumn(C,Price); AddColumn(ROC(C,1),Daily); /WEEKLY/ / /// TimeFrameSet(inWeekly); AddColumn(Ref(C,-1),Previous); AddColumn(C,Price); AddColumn(ROC(C,1),Weekly); TimeFrameRestore(); /MONTHLY/ / // TimeFrameSet(inMonthly); AddColumn(Ref(C,-1),Previous); AddColumn(C,Price); AddColumn(ROC(C,1),Monthly); TimeFrameRestore(); /YEARLY/ / /// TimeFrameSet(inYearly); AddColumn(Ref(C,-1),Previous); AddColumn(C,Price); AddColumn(ROC(C,1),Yearly); TimeFrameRestore(); - Original Message - From: Rasheed Momoh To: amibro...@yahoogrou ps.com Sent: Sunday, January 03, 2010 9:46 PM Subject: Re: [amibroker] I REALLY NEED HELP [1 Attachment] Yeah thanks this looks interesting. please find attached what i need (running a scan from Quick market review TAB) --- On Sun, 1/3/10, Anthony Faragasso ajf1...@epix. net wrote: From: Anthony Faragasso ajf1...@epix. net Subject: Re: [amibroker] I REALLY NEED HELP To: amibro...@yahoogrou ps.com Date: Sunday, January 3, 2010, 6:38 PM HI, Run this in AA window, all symbols n last quotations n=1 Explore you can then export the info //Quick review Filter=1; AddColumn(ROC(C,1),Daily); TimeFrameSet(inWeekly); AddColumn(ROC(C,1),Weekly); TimeFrameRestore(); TimeFrameSet(inMonthly); AddColumn(ROC(C,1),Monthly); TimeFrameRestore(); TimeFrameSet(inYearly); AddColumn(ROC(C,1),Yearly); TimeFrameRestore(); - Original Message - From: Rasheed M To: amibro...@yahoogrou ps.com Sent: Sunday, January 03, 2010 9:04 PM Subject: [amibroker] I REALLY NEED HELP This is the 3rd time within 6 months i have posted this message and no one seem to help me out. PLEEEASSEEE. Clicking on quick market review tab on weekly,monthly, quarterly yearly review type. I click to view the different % returns. My problem is I cant export the file. PLLLEASEEE is there a code i can use to extract this info to csv/ html format?
Re: [amibroker] HELP REQUIRED FOR CODING
. One is the PremiumData Futures database and the other is the PremiumData ASX database. The second question is more for the data provider most likely From: cascade3891 cascade3891@ yahoo.com To: amibro...@yahoogrou ps.com Sent: Sun, 27 December, 2009 11:11:02 AM Subject: [amibroker] Re: 2 markets on one chart that's easy. just use the price(foreign) indicator and overlay the indicator on the chart, and remember to change the parameters to 'own scale'. --- In amibro...@yahoogrou ps.com, Joseph Occhipinti joseph_occhipinti@ ... wrote: Hi all, Anthony, thank you greatly, this is a fantastic resource and im glad ive found it. Rather than starting another thread, i may as well ask another question (unrelated) on this one I would like to put 2 stocks for example on the same chart , in aid of seeing their correlation, how can i do this? Or a commodtiy, say gold, with a gold stock, say an ASX gold stock or a NYSE gold stock how can this be done from 2 or 3 separate databases? oh, and on top of each, not one below the other thanks _ _ __ From: Anthony Faragasso ajf1...@ To: amibro...@yahoogrou ps..com Sent: Sat, 26 December, 2009 2:05:18 AM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required  Buy,Sell,Short, Cover added.. gapclosingfromupope n =Open Ref(H,-1)AND C Ref(L,-1) AND C Ref(H,-1); gapclosingfromdowno pen=Open Ref(L,-1) AND C Ref(L,-1) AND C Ref(H,-1); Color= IIf(gapclosingfromu pop en,colorYellow, IIf(gapclosingfr omdown open,colorOrange, ParamColor( color,colorBla ck))); PlotShapes(gapclosi ngfromupop en*shapeDownArrow, colorRed, 0,High,-15) ; PlotShapes(gapclosi ngfromdown open*shapeUpArrow, colorGreen, 0,Low,-15) ; _SECTION_BEGIN( Price); SetChartOptions( 0,chartShowArrow s|chartShowDates ); _N(Title = StrFormat({ {NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, Close, color , styleNoTitle | ParamStyle( Style) | GetPriceStyle( ) ); _SECTION_END( );//Buy,Sell, Short, cover //Note: In AA settings ** General Positions ** set to long and short SetTradeDelays( 0, 0, 0, 0 );//overrides delay setting in AA window Buy=Ref(gapclosingf romdowno pen,-1);BuyPrice= Open; Sell=Ref(gapclosing fromdown open,-1);SellPrice= Close; Short=Ref(gapclosin gfromupope n,-1);ShortPrice= Open; Cover=Ref(gapclosin gfromupop en,-1);CoverPrice= Close;/// / / / Filter= gapclosingfromupope n OR gapclosingfromdowno pen; AddColumn(C, ); AddColumn(gapclosin gfromupop en,up); AddColumn(gapclosin gfromdown Open,down) ; _ _ _ _ _ _ See what's on at the movies in your area.. Find out now: http://au.movies. yahoo..com/ session-times/ See what's on at the movies in your area. Find out now. See what's on at the movies in your area. Find out now.. -- See what's on at the movies in your area. Find out now.. -- See what's on at the movies in your area. Find out now. -- See what's on at the movies in your area. Find out now.
Re: [amibroker] I REALLY NEED HELP
HI, Run this in AA window, all symbols n last quotations n=1 Explore you can then export the info //Quick review Filter=1; AddColumn(ROC(C,1),Daily); TimeFrameSet(inWeekly); AddColumn(ROC(C,1),Weekly); TimeFrameRestore(); TimeFrameSet(inMonthly); AddColumn(ROC(C,1),Monthly); TimeFrameRestore(); TimeFrameSet(inYearly); AddColumn(ROC(C,1),Yearly); TimeFrameRestore(); - Original Message - From: Rasheed M To: amibroker@yahoogroups.com Sent: Sunday, January 03, 2010 9:04 PM Subject: [amibroker] I REALLY NEED HELP This is the 3rd time within 6 months i have posted this message and no one seem to help me out. PLEEEASSEEE. Clicking on quick market review tab on weekly,monthly,quarterly yearly review type. I click to view the different % returns. My problem is I cant export the file. PLLLEASEEE is there a code i can use to extract this info to csv/ html format?
Re: [amibroker] Required procedure
SetOption(MaxOpenPositions, 1 ); // This sets maximum number of open positions to 1 - Original Message - From: prasantaroy36 To: amibroker@yahoogroups.com Sent: Friday, January 01, 2010 11:48 AM Subject: [amibroker] Required procedure Dear friends, During backtesting i want to always trade only 1(one) share, so ,what will be the procedure to fulfill my criteria ? Pl, guide me. Thanks
Re: [amibroker] Problem with the ZIG( 3rd TIME )
Plot(TroughBars(YL,200)==1,, colorBlack,styleOwnScale|styleLine); - Original Message - From: Yves To: amibroker@yahoogroups.com Sent: Wednesday, December 30, 2009 7:16 PM Subject: [amibroker] Problem with the ZIG( 3rd TIME ) [4 Attachments] [Attachment(s) from Yves included below] You Have below my formula in MS You have YOUR TRANSLATION of MS in AB See the screen in the file Z-CCI with MS.gif and see the file Z-CCI with AB.gif With AB for the ThroughBars, I'm obtain an AREA for the ThroughBars With MS I'm obtain only ONE DAY and it's O.K. Why I can't obtain that with AB And all time for the ThroughBars, I'm obtain alway time an AREA(see Z-CCI with AB Ex2.gif or Z-CCI with AB Ex3.gif) I'm used MetaStock(MS) around 10 year I'm use Amibroker(AM) around 3 month AB is maybe the best BUT I can make the same think with AB of MS Because I don't Know How write THAT ? In MS In AB Indic := CCI(21) ; YL:= If(Indic100,100, If(Indic-100,-100,Indic)) ; {yl; Zig(YL,200,%) ;} TroughBars(1,YL,200)=0 ; _SECTION_BEGIN(Z-CCI); Indic = CCI(21) ; YL = IIf(Indic100,100, /*{give me the Top } */ IIf(Indic-100,-100,Indic)); //{give me the Bottom } yl; //{my CCI } Plot(Zig(YL,200), , colorBlue); //{my Plot(yl, , colorRed); //Plot(TroughBars(YL,200)==0,, colorBlack,styleOwnScale); _SECTION_END(); Thank Merci YLTech ( Yves L. ) Le présent message et les documents qui y sont joints sont réservés exclusivement au destinataire indiqué. Il est strictement interdit d'en utiliser ou d'en divulguer le contenu. Si vous recevez le présent message par erreur, veuillez le détruire S.V.P. et nous en aviser immédiatement afin que nous puissions corriger nos dossiers. Merci. This message and the attached documents may contain privileged or confidential information that are intended to the addressee only. Any unauthorized disclosure is strictly prohibited. If you happen to receive this message by error, please delete it and notify us immediately so that we may correct our internal records. Thank you. ylt...@videotron.ca - Original Message - From: Mubashar Virk To: amibroker@yahoogroups.com Sent: Saturday, December 26, 2009 4:17 AM Subject: Re: [amibroker] Problem with the ZIG( 2nd TIME ) I don't know. Maybe Yves knows something new. On 12/26/2009 1:50 PM, Graham wrote: 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(Indic100,100,IIf(Indic-100,-100,Indic)) ; Top1 = PeakBars(YL,200,1) ;// Top2 = PeakBars(YL,200,2) ;// Plot(yl, Z-CCI, colorRed); Plot(Zig(YL,200), ZIG, colorBlue); Plot(TroughBars(YL,200,1)==0, , colorWhite, styleOwnScale); On 12/26/2009 10:18 AM, Yves wrote: Indic := CCI(21) ; YL:= If(Indic100,100, If(Indic-100,-100,Indic)) ; Top1 := PeakBars(1,YL,200) ; Top2 := PeakBars(2,YL,200) ; yl; Zig(YL,200,%) ; {TroughBars(1,YL,200)=0 ;} {
Re: [amibroker] Getting info from a Watchlist
Run an exploration. BuyRSI = RSI(14) 50; Filter=InWatchList(your_watchlist_number_here) AND BuyRSI; AddColumn(C,buyRSI); - Original Message - From: Marty J To: amibroker@yahoogroups.com Sent: Wednesday, December 30, 2009 9:30 PM Subject: [amibroker] Getting info from a Watchlist I would like to run my formula against all the 6 watchlist. I already done a composite on the watchlist which gives the results of all stocks in that watchlist, but I want to do the same thing for each individual stock in a watch list with the same formula to see which one is a buy or sell. Would like to do something like the Foreign function but use my formula to check it. example: BuyRSI = RSI(14) 50; qldF = Foreign(qld,X); qldF = Foreign(qld,BuyRSI); // This of course does not work. Is there an easy way to do this? Marty
Re: [amibroker] Is there a way to have the backtester visually show winning trades?
So, in between trade arrows you want to color the bars.green for winning trade and Red for losing trades... Is that what you are trying to accomplish ? - Original Message - From: Potato Soup To: amibroker@yahoogroups.com Sent: Sunday, December 27, 2009 10:06 AM Subject: Re: [amibroker] Is there a way to have the backtester visually show winning trades? I want it to be displayed on the chart though, I know how to find them in the grid of results. I mean when looking at the up and down arrows that represent trades on the chart, I'd like for them to be obviously showing winning or losing trades. -- From: Herman psy...@magma.ca To: amibroker@yahoogroups.com Sent: Sun, December 27, 2009 8:31:01 AM Subject: Re: [amibroker] Is there a way to have the backtester visually show winning trades? br turn on tradelist and sort by trade profit. herman Potato Soup wrote: For instance when you have it show all the entries and exits using arrows on individual trades from a backtest, there's no way to tell without inspecting the chart if it's a win or a loss. Is there any way to have it change its color so that winning buy/sell/short/cover signals are one color and losses are another?
Re: [amibroker] Re: 2 markets on one chart
You could use Relative Performance charts.. - Original Message - From: cascade3891 To: amibroker@yahoogroups.com Sent: Saturday, December 26, 2009 7:11 PM Subject: [amibroker] Re: 2 markets on one chart that's easy. just use the price(foreign) indicator and overlay the indicator on the chart, and remember to change the parameters to 'own scale'. --- In amibroker@yahoogroups.com, Joseph Occhipinti joseph_occhipi...@... wrote: Hi all, Anthony, thank you greatly, this is a fantastic resource and im glad ive found it. Rather than starting another thread, i may as well ask another question (unrelated) on this one I would like to put 2 stocks for example on the same chart , in aid of seeing their correlation, how can i do this? Or a commodtiy, say gold, with a gold stock, say an ASX gold stock or a NYSE gold stock how can this be done from 2 or 3 separate databases? oh, and on top of each, not one below the other thanks From: Anthony Faragasso ajf1...@... To: amibroker@yahoogroups.com Sent: Sat, 26 December, 2009 2:05:18 AM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required  Buy,Sell,Short, Cover added.. gapclosingfromupope n =Open Ref(H,-1)AND C Ref(L,-1) AND C Ref(H,-1); gapclosingfromdowno pen=Open Ref(L,-1) AND C Ref(L,-1) AND C Ref(H,-1); Color= IIf(gapclosingfromupop en,colorYellow,IIf(gapclosingfromdown open,colorOrange,ParamColor(color,colorBlack))); PlotShapes(gapclosingfromupop en*shapeDownArrow,colorRed,0,High,-15); PlotShapes(gapclosingfromdown open*shapeUpArrow,colorGreen,0,Low,-15); _SECTION_BEGIN(Price); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat({{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, Close, color , styleNoTitle | ParamStyle(Style) | GetPriceStyle() ); _SECTION_END();//Buy,Sell,Short, cover //Note: In AA settings ** General Positions ** set to long and short SetTradeDelays( 0, 0, 0, 0 );//overrides delay setting in AA window Buy=Ref(gapclosingfromdowno pen,-1);BuyPrice=Open; Sell=Ref(gapclosingfromdown open,-1);SellPrice=Close; Short=Ref(gapclosingfromupope n,-1);ShortPrice=Open; Cover=Ref(gapclosingfromupop en,-1);CoverPrice=Close; / / Filter= gapclosingfromupope n OR gapclosingfromdowno pen; AddColumn(C,); AddColumn(gapclosingfromupop en,up); AddColumn(gapclosingfromdown Open,down); __ See what's on at the movies in your area. Find out now: http://au.movies.yahoo..com/session-times/
Re: [amibroker] AB is not respecting share size
Are you doing it from the formula level ? Did you notify support ? Really not enough info to help constructively - Original Message - From: Potato Soup To: amibroker@yahoogroups.com Sent: Saturday, December 26, 2009 5:03 PM Subject: [amibroker] AB is not respecting share size I'm finding the Backtester to be a bit of a black box. I set share size explicitely to 5k. It goes and opens a position with 800 shares. I have a very high account balance and no margin. I do not understand why it disobeys these basic settings. Any suggstions?
Re: [amibroker] Re: Code for AFL on a reversal day. Help required
Buy,Sell,Short,Cover added.. gapclosingfromupopen =Open Ref(H,-1) AND C Ref(L,-1) AND C Ref(H,-1); gapclosingfromdownopen=Open Ref(L,-1) AND C Ref(L,-1) AND C Ref(H,-1); Color= IIf(gapclosingfromupopen,colorYellow,IIf(gapclosingfromdownopen,colorOrange,ParamColor(color,colorBlack))); PlotShapes(gapclosingfromupopen*shapeDownArrow,colorRed,0,High,-15); PlotShapes(gapclosingfromdownopen*shapeUpArrow,colorGreen,0,Low,-15); _SECTION_BEGIN(Price); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat({{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, Close, color , styleNoTitle | ParamStyle(Style) | GetPriceStyle() ); _SECTION_END(); //Buy,Sell,Short,cover //Note: In AA settings ** General Positions ** set to long and short SetTradeDelays( 0, 0, 0, 0 );//overrides delay setting in AA window Buy=Ref(gapclosingfromdownopen,-1); BuyPrice=Open; Sell=Ref(gapclosingfromdownopen,-1); SellPrice=Close; Short=Ref(gapclosingfromupopen,-1); ShortPrice=Open; Cover=Ref(gapclosingfromupopen,-1); CoverPrice=Close; // Filter= gapclosingfromupopen OR gapclosingfromdownopen; AddColumn(C,); AddColumn(gapclosingfromupopen,up); AddColumn(gapclosingfromdownOpen,down);
Re: [amibroker] A Portfolio Backtester challenge
can you nest multiple Foreign calls ? - Original Message - From: Herman To: amibroker@yahoogroups.com Sent: Friday, December 25, 2009 12:38 PM Subject: Re: [amibroker] A Portfolio Backtester challenge yes, but how do I define the 'signals' variable? Signals come from different stocks. I don't know how to 'know' how many signals there are in my Watchlist at any time. Am i missing something obvious/ thanks, herman Anthony Faragasso wrote: buy=signals =5 and Hold( until time ==9:35); - Original Message - From: Herman To: AmiBroker User Group Sent: Friday, December 25, 2009 12:10 PM Subject: [amibroker] A Portfolio Backtester challenge My portfolio trading system (1-min data) generates multiple signals during the first few minutes of the day, i.e., between 9:30-9:35. I want to open new positions all at the same time, at 9:35 AM, i.e., delay all entries until 9:35AM, so that I can use Real-Time Position Scoring. And, this is the challenge, I do not want to trade any days with less than 5 signals. How do I make the Portfolio Backtester only trade days with at least 5 signals and skip days which have less than 5 signals during the first 5 minutes? I am looking for a simple, non-CBT, solution. TIA for any ideas you may have! herman
Re: [amibroker] Re: Code for AFL on a reversal day. Help required
gapclosingfromupopen=Open Ref(H,-1) AND C Ref(L,-1) AND C Ref(H,-1); gapclosingfromdownopen=Open Ref(L,-1) AND C Ref(L,-1) AND C Ref(H,-1); Filter= gapclosingfromupopen OR gapclosingfromdownopen; AddColumn(C,); AddColumn(gapclosingfromupopen,up); AddColumn(gapclosingfromdownopen,down); - Original Message - From: Joseph Occhipinti To: amibroker@yahoogroups.com Sent: Thursday, December 24, 2009 5:49 PM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required hi peter unfortunately the same error message is coming up GapClosedWithinRang e = Open != Ref(Close,-1) AND Close Ref(Low,-1) AND Close Ref(High,-1) sorry to be a pest -- From: peter843 yahoogro...@snugmail.com To: amibroker@yahoogroups.com Sent: Fri, 25 December, 2009 9:18:07 AM Subject: [amibroker] Re: Code for AFL on a reversal day. Help required I assume you are not referring to the code posted below but the one in the subsequent post. Here is the correct version. GapClosedWithinRang e = Open != Ref(Close,-1) AND Close Ref(Low,-1) AND Close Ref(High,-1) ; --- In amibro...@yahoogrou ps.com, Joseph Occhipinti joseph_occhipinti@ ... wrote: Woops, hit send before i could finish email if its means anything, it had syntax error (error 30), the whole line was highlighted and the cursor was placed at the very end of the line _ _ __ From: Joseph Occhipinti joseph_occhipinti@ ... To: amibro...@yahoogrou ps.com Sent: Fri, 25 December, 2009 8:49:37 AM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required Peter, it has come up with a Syntax error _ _ __ From: Joseph Occhipinti joseph_occhipinti@ yahoo.com To: amibro...@yahoogrou ps.com Sent: Fri, 25 December, 2009 7:59:46 AM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required thanks for your help peter _ _ __ From: Joseph Occhipinti joseph_occhipinti@ yahoo.com To: amibro...@yahoogrou ps.com Sent: Fri, 25 December, 2009 7:53:20 AM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required thanks peter my definition of a gap: Previous days range, opens $1, high $1.02, low $0.95, closes $0.94. Next day it opens 90c, closes 98c (back within the previous days range), cheers _ _ __ From: peter843 yahoogroups@ snugmail. com To: amibro...@yahoogrou ps.com Sent: Fri, 25 December, 2009 3:24:27 AM Subject: [amibroker] Re: Code for AFL on a reversal day. Help required ClosedWithinRange = Close Ref(Low,-1) and Close Ref(High,-1) ; GapClosedWithinRang e = Open != Ref(Close,-1) AND Close Ref(Low,-1) AND Close Ref(High,-1); What is your definition of a gap? --- In amibro...@yahoogrou ps..com, siciliantrader joseph_occhipinti@ ... wrote: hi, i have another question to the AFL gurus who can help Im having some real trouble trying to code for the following: I want to identify / be able to scan for when a stock gaps down (or up), on open and then closes back into the previous days range (as per the link as per the following chart on the link below can anyone at least point me in the right direction? any help would be awesome http://f1.grp. yahoofs.com/ v1/YAMzS2xS1lym2 d3QIqSpFgLV6ggBl XGZ7uD8HtpW3rcD1 IfaXRS6AoFeC2- PBv4BP9rWGt- kgINT7shexZ3ukaS mMQ3kRc2dvNIBnQ/ Signal%202. gif _ _ __ See what's on at the movies in your area. Find out now. _ _ __ See what's on at the movies in your area. Find out now. _ _ __ See what's on at the movies in your area. Find out now. __._,_..___ Reply to sender | Reply to group Messages in this topic (7) Recent Activity: * New Members 48 * New Photos 2 * New Files 3 Visit Your Group Start a New Topic IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker..com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroke r.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroke r.com/devlog/ MARKETPLACE Going Green: Your Yahoo! Groups resource for green living _ _ __ Going Green: Your Yahoo! Groups resource for green living Switch to: Text-Only, Daily Digest •
Re: [amibroker] Re: Code for AFL on a reversal day. Help required
gapclosingfromupopen =Open Ref(H,-1) AND C Ref(L,-1) AND C Ref(H,-1); gapclosingfromdownopen=Open Ref(L,-1) AND C Ref(L,-1) AND C Ref(H,-1); Color= IIf(gapclosingfromupopen,colorYellow,IIf(gapclosingfromdownopen,colorRed,ParamColor(color,colorBlack))); _SECTION_BEGIN(Price); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat({{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, Close, color , styleNoTitle | ParamStyle(Style) | GetPriceStyle() ); _SECTION_END(); Filter= gapclosingfromupopen OR gapclosingfromdownopen; AddColumn(C,); AddColumn(gapclosingfromupopen,up); AddColumn(gapclosingfromdownOpen,down); - Original Message - From: Joseph Occhipinti To: amibroker@yahoogroups.com Sent: Thursday, December 24, 2009 8:34 PM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required hi Anthony and other helpers thanks heaps for your help so far the formula worked when i connected all the spaces is there anyway to highlight those days? Even if they dont reverse the trend, just all the days in question thanks -- From: Anthony Faragasso ajf1...@epix.net To: amibroker@yahoogroups.com Sent: Fri, 25 December, 2009 10:41:30 AM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required Joseph, I just did what you described I opened the price formula using edit formula.I copy and pasted the formula from the email into the price formula...and then clicked apply I GOT THE SAME ERROR MESSAGES AS YOU... The problem is WORD WRAP check the formula that you added...there will be spaces throughout the formula...you have to remove the spaces... Look at the email you sent me in response LOOK AT THE SPACES throughout the formula you added at the bottom.. - Original Message - From: Joseph Occhipinti To: amibro...@yahoogrou ps.com Sent: Thursday, December 24, 2009 6:29 PM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required thanks for jumping in anthony but i am still getting same error on all, some say error 31 (as well as error 30) i am right clicking mouse then going to 'edit formula', then adding your formula to the existing price formula so that i end up with this: _SECTION_BEGIN( Price); SetChartOptions( 0,chartShowArrow s|chartShowDates ); _N(Title = StrFormat({ {NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, Close, ParamColor( Color, colorBlack ), styleNoTitle | ParamStyle( Style) | GetPriceStyle( ) ); _SECTION_END( ); gapclosingfromupope n=Open Ref(H,-1) AND C Ref(L,-1) AND C Ref(H,-1); gapclosingfromdowno pen=Open Ref(L,-1) AND C Ref(L,-1) AND C Ref(H,-1); Filter= gapclosingfromupope n OR gapclosingfromdowno pen; AddColumn(C, ); AddColumn(gapclosin gfromupope n,up); AddColumn(gapclosin gfromdown Open,down) ; From: Anthony Faragasso ajf1...@epix. net To: amibro...@yahoogrou ps.com Sent: Fri, 25 December, 2009 10:07:59 AM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required gapclosingfromupope n=Open Ref(H,-1) AND C Ref(L,-1) AND C Ref(H,-1); gapclosingfromdowno pen=Open Ref(L,-1) AND C Ref(L,-1) AND C Ref(H,-1); Filter= gapclosingfromupope n OR gapclosingfromdowno pen; AddColumn(C,); AddColumn(gapclosingfromupope n,up); AddColumn(gapclosingfromdown open,down); - Original Message - From: Joseph Occhipinti To: amibro...@yahoogrou ps.com Sent: Thursday, December 24, 2009 5:49 PM Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required hi peter unfortunately the same error message is coming up GapClosedWithinRang e = Open != Ref(Close,-1) AND Close Ref(Low,-1) AND Close Ref(High,-1) sorry to be a pest -- From: peter843 yahoogroups@ snugmail. com To: amibro...@yahoogrou ps.com Sent: Fri, 25 December, 2009 9:18:07 AM Subject: [amibroker] Re: Code for AFL on a reversal day. Help required I assume you are not referring to the code posted below but the one in the subsequent post. Here is the correct version. GapClosedWithinRang e = Open != Ref(Close,-1) AND Close Ref(Low,-1) AND Close Ref(High,-1) ; --- In amibro...@yahoogrou ps.com, Joseph Occhipinti joseph_occhipinti@ ... wrote: Woops, hit send before i could finish email
Re: [amibroker] Re: How do you check for a condition that occurred over X days?
cond=ma(valuewhen(timenum()==09300,h-l),20); - Original Message - From: jim fenster To: amibroker@yahoogroups.com Sent: Tuesday, December 15, 2009 6:44 PM Subject: Re: [amibroker] Re: How do you check for a condition that occurred over X days? is there a way to check on another statistic? Like the average? like condition=timenum()==09300; if condition then h-l; then finding the average of the last 20 bars (h-l) that was 093000? J -- From: peter843 yg2...@xemaps.com To: amibroker@yahoogroups.com Sent: Sat, December 12, 2009 11:16:56 AM Subject: [amibroker] Re: How do you check for a condition that occurred over X days? Thanks. That worked. That one little statement taught me a lot about how AFL works. --- In amibro...@yahoogrou ps.com, Herman psy...@... wrote: sum( Condition, NumberOfDays) ? herman peter843 wrote: I want to check for conditions that occur over a number of consecutive days and specify the number of days with a variable. I assume I can do this with a FOR loop. Is there a simpler way? - - -- IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroke r.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroke r.com/devlog/ Yahoo! Groups Links -- Looking for the perfect gift? Give the gift of Flickr!
[amibroker] OT: yahoo ticker extractor [1 Attachment]
Anyone, Image shows error when trying to run Jim's yahoo ticker extractor...can anyone help with getting this extractor to work ... Thank you Anthony
Re: [amibroker] OT: yahoo ticker extractor
No One ? - Original Message - From: Anthony Faragasso To: amibroker@yahoogroups.com Sent: Sunday, November 29, 2009 8:04 AM Subject: [amibroker] OT: yahoo ticker extractor [1 Attachment] [Attachment(s) from Anthony Faragasso included below] Anyone, Image shows error when trying to run Jim's yahoo ticker extractor...can anyone help with getting this extractor to work ... Thank you Anthony
[amibroker] Yahoo ticker updater
Has anyone done anything that allows us to do ticker database update through Yahoo ? I have not been able to get Jim swindle's stock extractor to workI get compile error when trying to run it... Free or Feeplease let me knowprivate email or forum would be okay.. Thank you Anthony
Re: [amibroker] pl, help me to provide code
5dayAvg = MA(c,5); - Original Message - From: prasantaroy36 To: amibroker@yahoogroups.com Sent: Friday, November 27, 2009 12:05 PM Subject: [amibroker] pl, help me to provide code Dear Friends, I want last 5 days closing price avg to plot my system.So,pl, help me to provide request code(avg 5 days closing price). Thanks
Re: [amibroker] pl, help me to provide code
5dayAvg = Ref(MA(c,5),-1) ; - Original Message - From: Deepak Patade To: amibroker@yahoogroups.com Sent: Friday, November 27, 2009 12:46 PM Subject: Re: [amibroker] pl, help me to provide code can you write how to get moving average till yesterday and not today Deepak Patade, Nasik. -- From: Prashanth prash454...@gmail.com To: amibroker@yahoogroups.com Sent: Fri, November 27, 2009 10:55:08 PM Subject: Re: [amibroker] pl, help me to provide code Plot((Sum(C, 5)/5),Average , colorAqua, styleLine); Cheers Prashanth - Original Message - From: prasantaroy36 prasantaroy36@ yahoo.com To: amibro...@yahoogrou ps.com Sent: Friday, November 27, 2009 22:35 PM Subject: [amibroker] pl, help me to provide code Dear Friends, I want last 5 days closing price avg to plot my system.So,pl, help me to provide request code(avg 5 days closing price). Thanks - - -- IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroke r.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroke r.com/devlog/ Yahoo! Groups Links
Re: [amibroker] Is this tedious to write , please help
Hello, You wrote the following : //if current Close value is NOT greater than previous 10 bars avarage value * 1.0075 which I translated to the following : yousignal=C Ref(MA(C,10),-1)*1.0075 ; Anthony - Original Message - From: Deepak Patade To: amibroker@yahoogroups.com Sent: Wednesday, November 25, 2009 1:23 AM Subject: [amibroker] Is this tedious to write , please help How to write this in afl for a triangular moving avearge if current close value is not greater than previous 10 bars avarage value * 1.0075 then it should not give Buy Signal if current close value is not greater than previous 10 bars avarage value * 1.0075 then it should not give SELL Signal
Re: [amibroker] Re=Days since DMI crossover
Hi Alan, Please post your rules againI will revert with possible solution.. Anthony - Original Message - From: Alan a...@thenorthams.us To: amibroker@yahoogroups.com Sent: Sunday, November 22, 2009 9:29 AM Subject: Re: [amibroker] Re=Days since DMI crossover Hi soni67c: Thanks for the code. I tried it and here is a snippit of the results after a scan: Ticker Trade Date Close AAPL Sell 10/28/2009 192.4 AAPL Buy 11/5/2009 194.03 AAPL Sell 11/20/2009 199.92 ADBE Sell 10/22/2009 35.17 This table shows a sell signal on 10/28/09 while MDI is still positive, a buy signal on 11/05 when on the stock chart is shows a buy signal on 11/04, and the table shows a sell signal on 11/20/09 again while MDI is still positive. So I must not be doing something right. I am using a filter list of the 's and Scan set for n=30. Any ideas why I am getting these results? Regards, Alan soni67c wrote: Hello Alan, Check this formula...this is what you want :). Range = Param( +DI - D range, 10, 5, 30,1 ); Plot(PDI(Range),,5,1); Plot(MDI(Range),,4,1); Plot(ADX(Range),,13,1); Buy = Cross(PDI(Range), MDI(Range)); Sell = Cross(MDI(Range), PDI(Range)); PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,20,0); PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,20,0); bars=SelectedValue(Min( BarsSince( Cross(PDI(Range) , MDI(Range) )), BarsSince( Cross( MDI(Range), PDI(Range))) )); prevclose=Ref(Close,-bars); Com=EncodeColor(colorTan)+(\n\nCurrently the +DMI (+Range+) is + WriteIf(PDI(Range) MDI(Range),bullish,bearish)+, and it crossed + WriteIf(PDI(Range) MDI(Range),above,below)+ -DMI (+Range+) .+\n+EncodeColor(colorAqua)+ WriteVal( Min( BarsSince( Cross( PDI(Range), MDI(Range) )), BarsSince( Cross( MDI(Range), PDI(Range, 0.0)+ period(s) ago.)+EncodeColor(colorTan)+ Com=(\n\nSince the +DMI crossed -DMI, +Name()+ 's price has : )+EncodeColor(colorGold)+\n+ WriteIf(Closeprevclose,increased %,decreased %)+WriteVal(100*(Close-prevclose)/prevclose)+ EncodeColor(colorTan)+Com=(\n\nAnd has ranged from a high of + WriteVal(HHV(High,bars+1),6.2)+ to a low of +WriteVal(LLV(Low,bars+1),6.2)); Title = EncodeColor(colorWhite)+ ABS3 + - + Name() + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) + - + Date() + - +\n +EncodeColor(colorYellow) +Op-+O+ +Hi-+H+ +Lo-+L+ + Cl-+C+ + Vol= + WriteVal(V)+ Com; Thank you __ Information from ESET NOD32 Antivirus, version of virus signature database 4627 (20091121) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) * To change settings via email: amibroker-dig...@yahoogroups.com amibroker-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: amibroker-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [amibroker] Re=Days since DMI crossover
Alan, run this in explore modeI will post for indicator builder later if you want to visualize Anthony Mmdi=MDI(Param(NedMDI,14,1,20,1)); Ppdi=PDI(Param(PosPDI,14,1,20,1)); Crossup=Cross(Ppdi,Mmdi); Crossdown=Cross(Mmdi,Ppdi); Filter=1; /***Current State **/ stateUp=BarsSince(Mmdi Ppdi); stateDown=BarsSince(Mmdi Ppdi); AddColumn(stateUp,currentUp); AddColumn(statedown,CurrentDown); - Original Message - From: Alan To: amibroker@yahoogroups.com Sent: Sunday, November 22, 2009 3:03 PM Subject: Re: [amibroker] Re=Days since DMI crossover Hi Anthony: Thank you for your interest in helping me with my problem. I want to either do a Scan or an Exploration that will generate a table of stocks where the negative DMI has crossed above the positive DMI and show how many days ago the crossover took place. I am using a Filtered list that contains the 100 stocks comprising the 's which I have previously submitted to the forum as an attachment. Regards, Alan Anthony Faragasso wrote: Hi Alan, Please post your rules againI will revert with possible solution.. Anthony - Original Message - From: Alan a...@thenorthams.us To: amibroker@yahoogroups.com Sent: Sunday, November 22, 2009 9:29 AM Subject: Re: [amibroker] Re=Days since DMI crossover Hi soni67c: Thanks for the code. I tried it and here is a snippit of the results after a scan: Ticker Trade Date Close AAPL Sell 10/28/2009 192.4 AAPL Buy 11/5/2009 194.03 AAPL Sell 11/20/2009 199.92 ADBE Sell 10/22/2009 35.17 This table shows a sell signal on 10/28/09 while MDI is still positive, a buy signal on 11/05 when on the stock chart is shows a buy signal on 11/04, and the table shows a sell signal on 11/20/09 again while MDI is still positive. So I must not be doing something right. I am using a filter list of the 's and Scan set for n=30. Any ideas why I am getting these results? Regards, Alan soni67c wrote: Hello Alan, Check this formula...this is what you want :). Range = Param( +DI - D range, 10, 5, 30,1 ); Plot(PDI(Range),,5,1); Plot(MDI(Range),,4,1); Plot(ADX(Range),,13,1); Buy = Cross(PDI(Range), MDI(Range)); Sell = Cross(MDI(Range), PDI(Range)); PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,20,0); PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,20,0); bars=SelectedValue(Min( BarsSince( Cross(PDI(Range) , MDI(Range) )), BarsSince( Cross( MDI(Range), PDI(Range))) )); prevclose=Ref(Close,-bars); Com=EncodeColor(colorTan)+(\n\nCurrently the +DMI (+Range+) is + WriteIf(PDI(Range) MDI(Range),bullish,bearish)+, and it crossed + WriteIf(PDI(Range) MDI(Range),above,below)+ -DMI (+Range+) .+\n+EncodeColor(colorAqua)+ WriteVal( Min( BarsSince( Cross( PDI(Range), MDI(Range) )), BarsSince( Cross( MDI(Range), PDI(Range, 0.0)+ period(s) ago.)+EncodeColor(colorTan)+ Com=(\n\nSince the +DMI crossed -DMI, +Name()+ 's price has : )+EncodeColor(colorGold)+\n+ WriteIf(Closeprevclose,increased %,decreased %)+WriteVal(100*(Close-prevclose)/prevclose)+ EncodeColor(colorTan)+Com=(\n\nAnd has ranged from a high of + WriteVal(HHV(High,bars+1),6.2)+ to a low of +WriteVal(LLV(Low,bars+1),6.2)); Title = EncodeColor(colorWhite)+ ABS3 + - + Name() + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) + - + Date() + - +\n +EncodeColor(colorYellow) +Op-+O+ +Hi-+H+ +Lo-+L+ + Cl-+C+ + Vol= + WriteVal(V)+ Com; Thank you __ Information from ESET NOD32 Antivirus, version of virus signature database 4627 (20091121) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links __ Information from ESET NOD32 Antivirus, version of virus signature database 4627 (20091121) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [amibroker] Days since DMI crossover
Did you see BarsSince().? - Original Message - From: Alan a...@thenorthams.us To: amibroker@yahoogroups.com Sent: Saturday, November 21, 2009 3:51 PM Subject: [amibroker] Days since DMI crossover The following code will return a 1 when the negative DMI crosses above the positive DMI. mdmi = MDI(13); pdmi = PDI(13); dmicrossing = Cross(mdmi,pdmi); However, what I want to know is how many days have passed since the negative DMI crossed above the positive DMI. I have looked through the AFL formulas for a Days Since Crossing function but did not find one. Can anyone help me with the code to perform this function? Thanks, Alan IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) * To change settings via email: amibroker-dig...@yahoogroups.com amibroker-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: amibroker-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [amibroker] Switching watchlists during an exploration.
Mike, Something like: Filter= inwatchlist(1) and inwatchlist(2) and etc.and your other criteria; - Original Message - From: Mike To: amibroker@yahoogroups.com Sent: Tuesday, November 17, 2009 9:10 AM Subject: [amibroker] Switching watchlists during an exploration. I am running a simple exploration showing the ROC of a watchlist. I want to run the exploration over several different watchlists during one run of the exploration instead of having to Define each watchlist in the analyser and running the exploration several times. I have been trying the CategoryGetSymbols function but am having no success. Can anyone tell me, or point me in the right direction on how to make the code jump to the next watchlist and addcolumn for the ROC for each symbol in the that selected watchlist? Thanks for any help! mike
Re: [amibroker] Re: Is it possible to divide an indicator pane into several zones?
Hello, Formula returns Subscript out of range error.. - Original Message - From: Bisto To: amibroker@yahoogroups.com Sent: Tuesday, November 17, 2009 1:53 PM Subject: [amibroker] Re: Is it possible to divide an indicator pane into several zones? Hi Paul, in your case is definitely better to do as already suggest by the other guys but, according to me, sometimes it could be useful to divide one pane in two or more zones. the reason could be: 1) to share variables without using Static variables (to keep AFL more simple) 2) to have zones syncronized in a very fluid way (panes that share static variables are, at the best, syncronized every 1s setting RequestTimedRefresh( 1 ); ) I usually do it using the following functions to calculate min and max value to be used in plot with styleownscale I hope it could help bye Bisto function MinZone( array, PercZoneLow, PercZoneHigh ) { fvb = Status( firstvisiblebar ); lvb = Status( lastvisiblebar ); HHVMax = -1; LLVMin = 1; for ( i = fvb; i = Lvb; i++ ) { HHVMax = Max( array[ i ], HHVMax ); LLVMin = Min( array[ i ], LLVMin ); } MinZ = ( PercZoneLow * HHVMax - PercZoneHigh * LLVMin ) / ( PercZoneLow - PercZoneHigh ); return MinZ ; } function MaxZone( array, PercZoneLow, PercZoneHigh ) { fvb = Status( firstvisiblebar ); lvb = Status( lastvisiblebar ); HHVMax = -1; LLVMin = 1; for ( i = fvb; i = Lvb; i++ ) { HHVMax = Max( array[ i ], HHVMax ); LLVMin = Min( array[ i ], LLVMin ); } MinZ = ( PercZoneLow * HHVMax - PercZoneHigh * LLVMin ) / ( PercZoneLow - PercZoneHigh ); MaxZ = ( LLVMin - MinZ ) / PercZoneLow + MinZ; return MaxZ ; } // example: use the above functions to define min and max values of styleownscale // please note that axes type has to be linear (logartimic type requests little modification in the code) // please also note that plot style has to be ALSO styleOwnScale PercZoneLow1 = Param(PercZoneLow1,0.3,0.01,1,0.05) ; PercZoneHigh1 = Param(PercZoneHigh1 ,1,0.01,1,0.05) ; Plot( C, C in zone, colorBlack, styleCandle | styleOwnScale, MinZone(C,PercZoneLow1,PercZoneHigh1), MaxZone(C,PercZoneLow1,PercZoneHigh1)); PercZoneLow2 = Param(PercZoneLow2,0.1,0.01,1,0.05) ; PercZoneHigh2 = PercZoneLow1 ; // in case of time consuming array avoid to calculate 3 times arraylongtobecalculated = al = ATR(14); Plot( al, ATR(14) in zone, colorRed, styleLine | styleOwnScale, MinZone(al,PercZoneLow2,PercZoneHigh2), MaxZone(al,PercZoneLow2,PercZoneHigh2)); --- In amibroker@yahoogroups.com, polomorabe polom...@... wrote: Hello, I would like to plot four symbols in four different zones of an indicator pane. So the first 25% of the pane would be used for the first symbol, the next 25% for the second symbol, etc. I don't need to display scaling on the vertical axis. Thanks, Paul
Re: [amibroker] Re: Is it possible to divide an indicator pane into several zones?
Hello, I believe it is because if you have blank bars to the right of the last visible price...it produces error - Original Message - From: Bisto To: amibroker@yahoogroups.com Sent: Tuesday, November 17, 2009 4:05 PM Subject: [amibroker] Re: Is it possible to divide an indicator pane into several zones? I post it again with copy paste from AB where it's running ok... who knows? function MinZone( array, PercZoneLow, PercZoneHigh ) { fvb = Status( firstvisiblebar ); lvb = Status( lastvisiblebar ); HHVMax = -1; LLVMin = 1; for ( i = fvb; i = Lvb; i++ ) { HHVMax = Max( array[ i ], HHVMax ); LLVMin = Min( array[ i ], LLVMin ); } MinZ = ( PercZoneLow * HHVMax - PercZoneHigh * LLVMin ) / ( PercZoneLow - PercZoneHigh ); return MinZ ; } function MaxZone( array, PercZoneLow, PercZoneHigh ) { fvb = Status( firstvisiblebar ); lvb = Status( lastvisiblebar ); HHVMax = -1; LLVMin = 1; for ( i = fvb; i = Lvb; i++ ) { HHVMax = Max( array[ i ], HHVMax ); LLVMin = Min( array[ i ], LLVMin ); } MinZ = ( PercZoneLow * HHVMax - PercZoneHigh * LLVMin ) / ( PercZoneLow - PercZoneHigh ); MaxZ = ( LLVMin - MinZ ) / PercZoneLow + MinZ; return MaxZ ; } // example: use the above functions to define min and max values of styleownscale // please note that axes type has to be linear (logartimic type requests little modification in the code) // please also note that plot style has to be ALSO styleOwnScale PercZoneLow1 = Param(PercZoneLow1,0.3,0.01,1,0.05) ; PercZoneHigh1 = Param(PercZoneHigh1 ,1,0.01,1,0.05) ; Plot( C, C in zone, colorBlack, styleCandle | styleOwnScale, MinZone(C,PercZoneLow1,PercZoneHigh1), MaxZone(C,PercZoneLow1,PercZoneHigh1)); PercZoneLow2 = Param(PercZoneLow2,0.1,0.01,1,0.05) ; PercZoneHigh2 = PercZoneLow1 ; // in case of time consuming array avoid to calculate 3 times arraylongtobecalculated = al = ATR(14); Plot( al, ATR(14) in zone, colorRed, styleLine | styleOwnScale, MinZone(al,PercZoneLow2,PercZoneHigh2), MaxZone(al,PercZoneLow2,PercZoneHigh2)); --- In amibroker@yahoogroups.com, Anthony Faragasso ajf1...@... wrote: Hello, Formula returns Subscript out of range error..
Re: [amibroker] Re: Is it possible to divide an indicator pane into several zones?
Hello, I changed each LVB line ( 2 ) locations to the following. lvb =BarCount-1;//Status( lastvisiblebar ); It now plots no matter with blank bars to the right... - Original Message - From: Bisto To: amibroker@yahoogroups.com Sent: Tuesday, November 17, 2009 4:36 PM Subject: [amibroker] Re: Is it possible to divide an indicator pane into several zones? You are right! I don't use blank bars at the right indeed, so I never noticed it before if you set them at 0 it works I will appreciate if you'll keep me informed if you change the code to solve this bug Bisto --- In amibroker@yahoogroups.com, Anthony Faragasso ajf1...@... wrote: Hello, I believe it is because if you have blank bars to the right of the last visible price...it produces error - Original Message - From: Bisto To: amibroker@yahoogroups.com Sent: Tuesday, November 17, 2009 4:05 PM Subject: [amibroker] Re: Is it possible to divide an indicator pane into several zones? I post it again with copy paste from AB where it's running ok... who knows? function MinZone( array, PercZoneLow, PercZoneHigh ) { fvb = Status( firstvisiblebar ); lvb = Status( lastvisiblebar ); HHVMax = -1; LLVMin = 1; for ( i = fvb; i = Lvb; i++ ) { HHVMax = Max( array[ i ], HHVMax ); LLVMin = Min( array[ i ], LLVMin ); } MinZ = ( PercZoneLow * HHVMax - PercZoneHigh * LLVMin ) / ( PercZoneLow - PercZoneHigh ); return MinZ ; } function MaxZone( array, PercZoneLow, PercZoneHigh ) { fvb = Status( firstvisiblebar ); lvb = Status( lastvisiblebar ); HHVMax = -1; LLVMin = 1; for ( i = fvb; i = Lvb; i++ ) { HHVMax = Max( array[ i ], HHVMax ); LLVMin = Min( array[ i ], LLVMin ); } MinZ = ( PercZoneLow * HHVMax - PercZoneHigh * LLVMin ) / ( PercZoneLow - PercZoneHigh ); MaxZ = ( LLVMin - MinZ ) / PercZoneLow + MinZ; return MaxZ ; } // example: use the above functions to define min and max values of styleownscale // please note that axes type has to be linear (logartimic type requests little modification in the code) // please also note that plot style has to be ALSO styleOwnScale PercZoneLow1 = Param(PercZoneLow1,0.3,0.01,1,0.05) ; PercZoneHigh1 = Param(PercZoneHigh1 ,1,0.01,1,0.05) ; Plot( C, C in zone, colorBlack, styleCandle | styleOwnScale, MinZone(C,PercZoneLow1,PercZoneHigh1), MaxZone(C,PercZoneLow1,PercZoneHigh1)); PercZoneLow2 = Param(PercZoneLow2,0.1,0.01,1,0.05) ; PercZoneHigh2 = PercZoneLow1 ; // in case of time consuming array avoid to calculate 3 times arraylongtobecalculated = al = ATR(14); Plot( al, ATR(14) in zone, colorRed, styleLine | styleOwnScale, MinZone(al,PercZoneLow2,PercZoneHigh2), MaxZone(al,PercZoneLow2,PercZoneHigh2)); --- In amibroker@yahoogroups.com, Anthony Faragasso ajf@ wrote: Hello, Formula returns Subscript out of range error..
Re: [amibroker] Problem plotting an array
Is your instrument1 variable enclosed in? Do you have period1 defined.? I ran the below script and it workd.. Period1=10; t1 = Correlation( Foreign(GR, Close), Foreign(F, Close), Period1); Plot(t1, Correlation, colorYellow); hv1 = StDev(log(t1/Ref(t1,-1)),Period1)*sqrt(260); Plot(hv1,Volatility, colorWhite,styleLine|styleOwnScale); - Original Message - From: Potato Soup To: amibroker@yahoogroups.com Sent: Sunday, November 15, 2009 3:17 AM Subject: [amibroker] Problem plotting an array I have a simple script that calculates the correlation between two instruments. I then take the code we've been discussing for historical volatility, and try to plot the volatility of the correlation. However the second plot function of the volatility just shows a flat line at 0. Any ideas what I'm missing here? t1 = Correlation( Foreign(instrument1, Close), Foreign(instrument2, Close), period1); Plot(t1, Correlation, colorYellow); hv1 = StDev(log(t1/Ref(t1,-1)),period1)*sqrt(260); Plot(hv1,Volatility, colorWhite,styleLine|styleOwnScale);
Re: [amibroker] To sort the productivity
would it be this, AddColumn(lastvalue(Rapport),Rapport,1.3); - Original Message - From: AaJ To: amibroker@yahoogroups.com Sent: Sunday, November 15, 2009 6:35 AM Subject: [amibroker] To sort the productivity Hello !! I wihs to sort all my database's stocks by using the productivity's indicator .The sort uses only the 2 last bars for each single stock . The matter is that I use a For loop by accessing to each elements .And that is not a array . If I want to sort I must use a filter and the function setsortcolums .But filter and sortcolumms need data array . The purpose is to compare the productivity's stocks .Thanks ... Here is my code . stockname = Name(); listdestocks = CategoryGetSymbols( categoryMarket, 2) ; nbstock = 0 ; for( i = 0; ( sym = StrExtract( listdestocks, i ) ) != ; i++ ) { nbstock = i ; action = Foreign( sym, Close); for( j = BarCount-1; j BarCount-2 ; j-- ) { Rapport[j] = action[j]/action[j-1]; _TRACE(sym); _TRACE(NumToStr(Rapport[j])); // Good value that i want to sort on the last month to compare the stocks beetween each other . } } nbstock++ ; Filter = 1 ; AddColumn(Rapport,Rapport,1.3);
Re: [amibroker] Problem plotting an array
Correctionthe volatility is at the bottom of the graph... I believe you should not match the periods of correlation and volatility...the volatility output remains at 0. if you increase your correlation period to something like 180 days and historical volatility to 20 you should see volatility register... - Original Message - From: Anthony Faragasso To: amibroker@yahoogroups.com Sent: Sunday, November 15, 2009 6:45 AM Subject: Re: [amibroker] Problem plotting an array Is your instrument1 variable enclosed in? Do you have period1 defined.? I ran the below script and it workd.. Period1=10; t1 = Correlation( Foreign(GR, Close), Foreign(F, Close), Period1); Plot(t1, Correlation, colorYellow); hv1 = StDev(log(t1/Ref(t1,-1)),Period1)*sqrt(260); Plot(hv1,Volatility, colorWhite,styleLine|styleOwnScale); - Original Message - From: Potato Soup To: amibroker@yahoogroups.com Sent: Sunday, November 15, 2009 3:17 AM Subject: [amibroker] Problem plotting an array I have a simple script that calculates the correlation between two instruments. I then take the code we've been discussing for historical volatility, and try to plot the volatility of the correlation. However the second plot function of the volatility just shows a flat line at 0. Any ideas what I'm missing here? t1 = Correlation( Foreign(instrument1, Close), Foreign(instrument2, Close), period1); Plot(t1, Correlation, colorYellow); hv1 = StDev(log(t1/Ref(t1,-1)),period1)*sqrt(260); Plot(hv1,Volatility, colorWhite,styleLine|styleOwnScale);
Re: [amibroker] Re: Trying to plot historical volatility with AFL
here is how I calculate Historical volatility: ( 20 period ) hv1=20; vl= StDev(log(C/Ref(C,-1)),hv1)*sqrt(365); - Original Message - From: Potato Soup To: AmiBroker (Discussion List) Sent: Saturday, November 14, 2009 9:33 AM Subject: Re: [amibroker] Re: Trying to plot historical volatility with AFL Thx but they are showing historical or realized volatility, not implied as far as I can tell. More to the point is what I'm doing correct or are there other preferred methods of calculating historical volatility? -Original Message- From: dbwyatt_1999 dbw...@bellsouth.net Date: Sat, 14 Nov 2009 14:01:24 To: amibroker@yahoogroups.com Subject: [amibroker] Re: Trying to plot historical volatility with AFL I'm not familiar with ivolatility.com, but I would guess they are calculating an implied volatility based on closing SP option prices using an option pricing model like Black-Scholes. Regards, David --- In amibroker@yahoogroups.com, Potato Soup potatoso...@... wrote: I'm trying to plot the 30 day historical volatility of the SP 500, using the following AFL on a daily chart with around 2 years of end of day prices for the SP 500: Plot(StDev(Close, 30),Historical Volatility, colorOrange,styleLine); However when I look at the values, they appear to be a bit off to what I see when I look online here: http://www.ivolatility.com/options.j?ticker=SPX:CBOER=1period=12chart=2vct= For today they have 18.99, where as my chart shows 19.348. All my other values going back further don't match their chart either. Any ideas, are they calculating it differently than just a simple standard deviation? IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
Re: [amibroker] Re: Trying to plot historical volatility with AFL
I believe there is much discussion about Trading days or calender year in calculating historical volatility...I trade options and use calender days in my calculation... Anthony - Original Message - From: potatosoupz To: amibroker@yahoogroups.com Sent: Saturday, November 14, 2009 10:40 AM Subject: [amibroker] Re: Trying to plot historical volatility with AFL Thanks, I think your formula is correct, except you should be multiplying by 260, not 365, since 260 reflects actual trading days. See here: http://www2.barchart.com/support/learning.asp?what=hisvolcode=BSTK When I change your formula to 260, the results look very close to what is found on IVolatility.com. Let me know what you think. --- In amibroker@yahoogroups.com, Anthony Faragasso ajf1...@... wrote: here is how I calculate Historical volatility: ( 20 period ) hv1=20; vl= StDev(log(C/Ref(C,-1)),hv1)*sqrt(365); - Original Message - From: Potato Soup To: AmiBroker (Discussion List) Sent: Saturday, November 14, 2009 9:33 AM Subject: Re: [amibroker] Re: Trying to plot historical volatility with AFL Thx but they are showing historical or realized volatility, not implied as far as I can tell. More to the point is what I'm doing correct or are there other preferred methods of calculating historical volatility? -Original Message- From: dbwyatt_1999 dbw...@... Date: Sat, 14 Nov 2009 14:01:24 To: amibroker@yahoogroups.com Subject: [amibroker] Re: Trying to plot historical volatility with AFL I'm not familiar with ivolatility.com, but I would guess they are calculating an implied volatility based on closing SP option prices using an option pricing model like Black-Scholes. Regards, David --- In amibroker@yahoogroups.com, Potato Soup potatosoupz@ wrote: I'm trying to plot the 30 day historical volatility of the SP 500, using the following AFL on a daily chart with around 2 years of end of day prices for the SP 500: Plot(StDev(Close, 30),Historical Volatility, colorOrange,styleLine); However when I look at the values, they appear to be a bit off to what I see when I look online here: http://www.ivolatility.com/options.j?ticker=SPX:CBOER=1period=12chart=2vct= For today they have 18.99, where as my chart shows 19.348. All my other values going back further don't match their chart either. Any ideas, are they calculating it differently than just a simple standard deviation? IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
Re: [amibroker] Re: Trying to plot historical volatility with AFL
my belief is because of the time decay portion of optionsoption decay does not ** turn off **during non trading days - Original Message - From: windwhupper To: amibroker@yahoogroups.com Sent: Saturday, November 14, 2009 1:50 PM Subject: [amibroker] Re: Trying to plot historical volatility with AFL I trade options and use calender days in my calculation... Why are calendar days any better for options trading than trading days?
Re: [amibroker] Re: Help!! simple looping problem???
Mike, This corrected version produces the exact structure...thanks for the Null tip... resline = Null; for( i = 2; i BarCount; i++ ) { prev = resline[ i - 1]; resline[ i ] = IIf( H[i-2] H[i-1] AND H[i-1] H[i], H[i-1], prev ); } Plot(ResLine,ResLine,colorRed, styleLine|styleThick); Anthony - Original Message - From: Mike To: amibroker@yahoogroups.com Sent: Monday, November 02, 2009 12:40 AM Subject: [amibroker] Re: Help!! simple looping problem??? Nope. See my earlier post http://finance.groups.yahoo.com/group/amibroker/message/143523 Your solution will plot zero for the first 2 bars when it should be NULL. If the original poster wanted to keep your structure (i.e. IIF and no pre-assignament of OneHigh, TwoHigh, ThreeHigh), then just change the initialization of ResLine to ResLine = NULL. Mike --- In amibroker@yahoogroups.com, Anthony Faragasso ajf1...@... wrote: Hello, This does what you are expecting... resline = 0; for( i = 2; i BarCount; i++ ) { prev = resline[ i - 1]; resline[ i ] = IIf( H[i-2] H[i-1] AND H[i-1] H[i], H[i-1], prev ); } Plot(ResLine,ResLine,colorRed, styleLine|styleThick); Anthony - Original Message - From: christianvost To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 4:04 PM Subject: [amibroker] Re: Help!! simple looping problem??? Hi Thomas, Thanks for the suggestion. I tried this, but the results didn't match the previous code sample. I just got spiking lines where the indicator reset itself to zero, after each iteration? I'm assuming that this code correction goes in at line 7? could you please make the correction to the looping sample and re-post? I'd really appreciate it. Many thanks, Chris. --- In amibroker@yahoogroups.com, Thomas Z. tzg@ wrote: Hi, you need to change it to: ResLine[i] = H[i-1]; Thomas www.patternexplorer.com -Ursprüngliche Nachricht- Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im Auftrag von christianvost Gesendet: Sonntag, 1. November 2009 10:37 An: amibroker@yahoogroups.com Betreff: [amibroker] Help!! simple looping problem??? Hi, This is probably an easy one, but I'm struggling with looping through arrays in afl. Have a look at the simple code below. ( copy+paste into editor then drag into price pane ). //Resline.afl // OneHigh = H; TwoHigh = Ref(H,-1); ThreeHigh = Ref(H,-2); ResLine = ValueWhen( ThreeHigh TwoHigh AND TwoHigh OneHigh,TwoHigh,1); Plot(ResLine,ResLine, ParamColor( Color, colorCycle ), ParamStyle(Style) ); I tried to write a 'for,if' loop to replace the previous code, but it's not working. Can anyone correct the following code sample for me please??? Thank-you to all. ResLine[0] = 0; for(i=2; iBarCount; i++) { if(H[i-2] H[i-1] AND H[i-1] H[i]) { ResLine = H[i-1]; } //Plot(ResLine,ResLine,colorRed, styleLine|styleThick); //inside loop plots multiple lines } Plot(ResLine,ResLine,colorRed, styleLine|styleThick); //outside loop plots single line (most recent value when condition is met) IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
Re: [amibroker] plotshapes question
I will be happy to share via private emailposting here may cause code to become part of commercial formulas being sold on the internet as a package... Anthony - Original Message - From: James Hutchison To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 5:34 PM Subject: Re: [amibroker] plotshapes question Could you share your code with us Thank you Jim Hutchison At 12:59 PM 11/1/2009, you wrote: [Attachment(s) from Anthony Faragasso included below] I was able to achieve what was intended with the line touches...I have attached an image thank you for those that responded Anthony - Original Message - From: Panos Boufardeas To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 7:42 AM Subject: Re: [amibroker] plotshapes question Hi i was thinking maybe you need also the trick to count the numbers, and i will add an example how to plot only the numbers and not the rest of the shapes. sorry i donot have the time now to start count from the left but i will do it later on. _SECTION_BEGIN( ElliotWaves_Shapes_i); ew=MA((H+L )/2,5 )-MA((H+L )/2,34); Plot( ew, , 2, 1+8); Plot( 0, , 1, 1); /counter*/ up=Cross(ew, 0 );DN=Cross(0 ,ew); VAR1=Cum(UP); VAR2=2*Cum (UP)-2*int (Cum(UP)/10 )*10+33; //count every 10 steps VAR3=2*Cum (dn)-2*int (Cum(dn)/10 )*10+34 ; // IF.1*cum()=up_and_down WriteVal( VAR1 ,1.8)+ VAR1 ; WriteVal( VAR2 ,1)+ VAR2 ; WriteVal( VAR3 ,1)+ VAR3 ; PlotShapes(IIf(up,VAR2,IIf(dn,Var3,0)) , IIf(up,colorGreen,colorRed), 0 ,0); //PlotShapes( IIf (up,VAR2,IIf(dn,Var3, 0)) , IIf(up,colorGreen,colorRed ), 0 ,IIf(up,ew-50 ,IIf(var2,ew+50 ,ew))); _SECTION_END(); Panos At 15:22 31-10-2009 31-10-2009, you wrote: I have a plotshapes added to an indicator...when I try to add an offset the shape disappears...any help appreciated... example: PlotShapes(shapeDigit1*(Low==trs),colorYellow); Also, I am doing line touches...How can I manipulate the digits to plot concurrently.. like: first touch is digit 1 , second touch is digit 2...etcstarting from left to right.. Thank you Anthony
Re: [amibroker] plotshapes question
Panos, Thank you for the code ...I will try it out Just this morning I too was thinking about elliot wave and counting the waves... Anthony - Original Message - From: Panos Boufardeas To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 7:42 AM Subject: Re: [amibroker] plotshapes question Hi i was thinking maybe you need also the trick to count the numbers, and i will add an example how to plot only the numbers and not the rest of the shapes. sorry i donot have the time now to start count from the left but i will do it later on. _SECTION_BEGIN( ElliotWaves_Shapes_i); ew=MA((H+L )/2,5 )-MA((H+L )/2,34); Plot( ew, , 2, 1+8); Plot( 0, , 1, 1); /counter*/ up=Cross(ew,0 );DN=Cross(0 ,ew); VAR1=Cum(UP); VAR2=2*Cum (UP)-2*int (Cum(UP)/10 )*10+33; //count every 10 steps VAR3=2*Cum (dn)-2*int (Cum(dn)/10 )*10+34 ; // IF.1*cum()=up_and_down WriteVal( VAR1 ,1.8)+ VAR1 ; WriteVal( VAR2 ,1)+ VAR2 ; WriteVal( VAR3 ,1)+ VAR3 ; PlotShapes(IIf(up,VAR2,IIf(dn,Var3,0)) , IIf(up,colorGreen,colorRed), 0 ,0); //PlotShapes(IIf (up,VAR2,IIf(dn,Var3, 0)) , IIf(up,colorGreen,colorRed ), 0 ,IIf(up,ew-50 ,IIf(var2,ew+50 ,ew))); _SECTION_END(); Panos At 15:22 31-10-2009 31-10-2009, you wrote: I have a plotshapes added to an indicator...when I try to add an offset the shape disappears...any help appreciated... example: PlotShapes(shapeDigit1*(Low==trs),colorYellow); Also, I am doing line touches...How can I manipulate the digits to plot concurrently.. like: first touch is digit 1 , second touch is digit 2...etcstarting from left to right.. Thank you Anthony
Re: [amibroker] plotshapes question [1 Attachment]
I was able to achieve what was intended with the line touches...I have attached an image thank you for those that responded Anthony - Original Message - From: Panos Boufardeas To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 7:42 AM Subject: Re: [amibroker] plotshapes question Hi i was thinking maybe you need also the trick to count the numbers, and i will add an example how to plot only the numbers and not the rest of the shapes. sorry i donot have the time now to start count from the left but i will do it later on. _SECTION_BEGIN( ElliotWaves_Shapes_i); ew=MA((H+L )/2,5 )-MA((H+L )/2,34); Plot( ew, , 2, 1+8); Plot( 0, , 1, 1); /counter*/ up=Cross(ew,0 );DN=Cross(0 ,ew); VAR1=Cum(UP); VAR2=2*Cum (UP)-2*int (Cum(UP)/10 )*10+33; //count every 10 steps VAR3=2*Cum (dn)-2*int (Cum(dn)/10 )*10+34 ; // IF.1*cum()=up_and_down WriteVal( VAR1 ,1.8)+ VAR1 ; WriteVal( VAR2 ,1)+ VAR2 ; WriteVal( VAR3 ,1)+ VAR3 ; PlotShapes(IIf(up,VAR2,IIf(dn,Var3,0)) , IIf(up,colorGreen,colorRed), 0 ,0); //PlotShapes(IIf (up,VAR2,IIf(dn,Var3, 0)) , IIf(up,colorGreen,colorRed ), 0 ,IIf(up,ew-50 ,IIf(var2,ew+50 ,ew))); _SECTION_END(); Panos At 15:22 31-10-2009 31-10-2009, you wrote: I have a plotshapes added to an indicator...when I try to add an offset the shape disappears...any help appreciated... example: PlotShapes(shapeDigit1*(Low==trs),colorYellow); Also, I am doing line touches...How can I manipulate the digits to plot concurrently.. like: first touch is digit 1 , second touch is digit 2...etcstarting from left to right.. Thank you Anthony
Re: [amibroker] plotshapes question
Aron, Thank you... Anthony - Original Message - From: Aron To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 2:50 PM Subject: Re: [amibroker] plotshapes question VarSet(shape1, shapeDigit1); VarSet(shape2, shapeDigit2); VarSet(shape3, shapeDigit3); VarSet(shape4, shapeDigit4); // etc, Buy = mtRandomA() 0.9; n = 0; shape = Null; for ( i = 0; i BarCount; i++ ) { if ( Buy[i] ) { n++; shape[i] = VarGet( shape + n ); } } Plot(C,, 39, styleBar); PlotShapes( shape, colorGreen, 0, L); On 10/31/2009 2:22 PM, Anthony Faragasso wrote: I have a plotshapes added to an indicator...when I try to add an offset the shape disappears...any help appreciated... example: PlotShapes(shapeDigit1*(Low==trs),colorYellow); Also, I am doing line touches...How can I manipulate the digits to plot concurrently.. like: first touch is digit 1 , second touch is digit 2...etcstarting from left to right.. Thank you Anthony
Re: [amibroker] Re: Help!! simple looping problem???
Thomas, the second code snippet does not plot like the first code snippet... I believe that is what he is after... Anthony - Original Message - From: Thomas Z. To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 4:29 PM Subject: AW: [amibroker] Re: Help!! simple looping problem??? Hi, //Resline.afl // OneHigh = H; TwoHigh = Ref( H, -1 ); ThreeHigh = Ref( H, -2 ); ResLine = ValueWhen( ThreeHigh TwoHigh AND TwoHigh OneHigh, TwoHigh, 1 ); Plot( ResLine, ResLine, ParamColor( Color, colorCycle ), ParamStyle( Style ) ); ResLine[0] = 0; for ( i = 2; i BarCount; i++ ) { if ( H[i-2] H[i-1] AND H[i-1] H[i] ) { ResLine[i] = H[i-1]; } } Plot(ResLine,ResLine,colorBlue, styleLine|styleThick); Thomas www.patternexplorer.com -Ursprüngliche Nachricht- Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im Auftrag von christianvost Gesendet: Sonntag, 1. November 2009 22:05 An: amibroker@yahoogroups.com Betreff: [amibroker] Re: Help!! simple looping problem??? Hi Thomas, Thanks for the suggestion. I tried this, but the results didn't match the previous code sample. I just got spiking lines where the indicator reset itself to zero, after each iteration? I'm assuming that this code correction goes in at line 7? could you please make the correction to the looping sample and re-post? I'd really appreciate it. Many thanks, Chris. --- In amibroker@yahoogroups.com, Thomas Z. t...@... wrote: Hi, you need to change it to: ResLine[i] = H[i-1]; Thomas www.patternexplorer.com -Ursprüngliche Nachricht- Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im Auftrag von christianvost Gesendet: Sonntag, 1. November 2009 10:37 An: amibroker@yahoogroups.com Betreff: [amibroker] Help!! simple looping problem??? Hi, This is probably an easy one, but I'm struggling with looping through arrays in afl. Have a look at the simple code below. ( copy+paste into editor then drag into price pane ). //Resline.afl // OneHigh = H; TwoHigh = Ref(H,-1); ThreeHigh = Ref(H,-2); ResLine = ValueWhen( ThreeHigh TwoHigh AND TwoHigh OneHigh,TwoHigh,1); Plot(ResLine,ResLine, ParamColor( Color, colorCycle ), ParamStyle(Style) ); I tried to write a 'for,if' loop to replace the previous code, but it's not working. Can anyone correct the following code sample for me please??? Thank-you to all. ResLine[0] = 0; for(i=2; iBarCount; i++) { if(H[i-2] H[i-1] AND H[i-1] H[i]) { ResLine = H[i-1]; } //Plot(ResLine,ResLine,colorRed, styleLine|styleThick); //inside loop plots multiple lines } Plot(ResLine,ResLine,colorRed, styleLine|styleThick); //outside loop plots single line (most recent value when condition is met) IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
Re: [amibroker] Re: Help!! simple looping problem???
Hello, This does what you are expecting... resline = 0; for( i = 2; i BarCount; i++ ) { prev = resline[ i - 1]; resline[ i ] = IIf( H[i-2] H[i-1] AND H[i-1] H[i], H[i-1], prev ); } Plot(ResLine,ResLine,colorRed, styleLine|styleThick); Anthony - Original Message - From: christianvost To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 4:04 PM Subject: [amibroker] Re: Help!! simple looping problem??? Hi Thomas, Thanks for the suggestion. I tried this, but the results didn't match the previous code sample. I just got spiking lines where the indicator reset itself to zero, after each iteration? I'm assuming that this code correction goes in at line 7? could you please make the correction to the looping sample and re-post? I'd really appreciate it. Many thanks, Chris. --- In amibroker@yahoogroups.com, Thomas Z. t...@... wrote: Hi, you need to change it to: ResLine[i] = H[i-1]; Thomas www.patternexplorer.com -Ursprüngliche Nachricht- Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im Auftrag von christianvost Gesendet: Sonntag, 1. November 2009 10:37 An: amibroker@yahoogroups.com Betreff: [amibroker] Help!! simple looping problem??? Hi, This is probably an easy one, but I'm struggling with looping through arrays in afl. Have a look at the simple code below. ( copy+paste into editor then drag into price pane ). //Resline.afl // OneHigh = H; TwoHigh = Ref(H,-1); ThreeHigh = Ref(H,-2); ResLine = ValueWhen( ThreeHigh TwoHigh AND TwoHigh OneHigh,TwoHigh,1); Plot(ResLine,ResLine, ParamColor( Color, colorCycle ), ParamStyle(Style) ); I tried to write a 'for,if' loop to replace the previous code, but it's not working. Can anyone correct the following code sample for me please??? Thank-you to all. ResLine[0] = 0; for(i=2; iBarCount; i++) { if(H[i-2] H[i-1] AND H[i-1] H[i]) { ResLine = H[i-1]; } //Plot(ResLine,ResLine,colorRed, styleLine|styleThick); //inside loop plots multiple lines } Plot(ResLine,ResLine,colorRed, styleLine|styleThick); //outside loop plots single line (most recent value when condition is met) IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
Re: [amibroker] Re: Help!! simple looping problem???
Thomas, I beg to differ with youremove your second code snippet from the first code snippet and plot it aloneyou will see that it does not plot like the first...with the same stair step... I do not believe he wishes to plot both together...he is trying to convert the first code snippet from AFLinto a looping fomula ... Here is the code that produces the exact same results as the first AFL code snippet.. resline = 0; for( i = 2; i BarCount; i++ ) { prev = resline[ i - 1]; resline[ i ] = IIf( H[i-2] H[i-1] AND H[i-1] H[i], H[i-1], prev ); } Plot(ResLine,ResLine,colorRed, styleLine|styleThick); Anthony - Original Message - From: Thomas Z. To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 5:19 PM Subject: AW: [amibroker] Re: Help!! simple looping problem??? Hi Anthony, Yes, it was the case in this first attempt, because he stored a single value inside his loop: ResLine = H[i-1]; Now the code plots both lines identically. Thomas www.patternexplorer.com Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im Auftrag von Anthony Faragasso Gesendet: Sonntag, 1. November 2009 22:55 An: amibroker@yahoogroups.com Betreff: Re: [amibroker] Re: Help!! simple looping problem??? Thomas, the second code snippet does not plot like the first code snippet... I believe that is what he is after... Anthony - Original Message - From: Thomas Z. To: amibroker@yahoogroups.com Sent: Sunday, November 01, 2009 4:29 PM Subject: AW: [amibroker] Re: Help!! simple looping problem??? Hi, //Resline.afl // OneHigh = H; TwoHigh = Ref( H, -1 ); ThreeHigh = Ref( H, -2 ); ResLine = ValueWhen( ThreeHigh TwoHigh AND TwoHigh OneHigh, TwoHigh, 1 ); Plot( ResLine, ResLine, ParamColor( Color, colorCycle ), ParamStyle( Style ) ); ResLine[0] = 0; for ( i = 2; i BarCount; i++ ) { if ( H[i-2] H[i-1] AND H[i-1] H[i] ) { ResLine[i] = H[i-1]; } } Plot(ResLine,ResLine,colorBlue, styleLine|styleThick); Thomas www.patternexplorer.com -Ursprüngliche Nachricht- Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im Auftrag von christianvost Gesendet: Sonntag, 1. November 2009 22:05 An: amibroker@yahoogroups.com Betreff: [amibroker] Re: Help!! simple looping problem??? Hi Thomas, Thanks for the suggestion. I tried this, but the results didn't match the previous code sample. I just got spiking lines where the indicator reset itself to zero, after each iteration? I'm assuming that this code correction goes in at line 7? could you please make the correction to the looping sample and re-post? I'd really appreciate it. Many thanks, Chris. --- In amibroker@yahoogroups.com, Thomas Z. t...@... wrote: Hi, you need to change it to: ResLine[i] = H[i-1]; Thomas www.patternexplorer.com -Ursprüngliche Nachricht- Von: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] Im Auftrag von christianvost Gesendet: Sonntag, 1. November 2009 10:37 An: amibroker@yahoogroups.com Betreff: [amibroker] Help!! simple looping problem??? Hi, This is probably an easy one, but I'm struggling with looping through arrays in afl. Have a look at the simple code below. ( copy+paste into editor then drag into price pane ). //Resline.afl // OneHigh = H; TwoHigh = Ref(H,-1); ThreeHigh = Ref(H,-2); ResLine = ValueWhen( ThreeHigh TwoHigh AND TwoHigh OneHigh,TwoHigh,1); Plot(ResLine,ResLine, ParamColor( Color, colorCycle ), ParamStyle(Style) ); I tried to write a 'for,if' loop to replace the previous code, but it's not working. Can anyone correct the following code sample for me please??? Thank-you to all. ResLine[0] = 0; for(i=2; iBarCount; i++) { if(H[i-2] H[i-1] AND H[i-1] H[i]) { ResLine = H[i-1]; } //Plot(ResLine,ResLine,colorRed, styleLine|styleThick); //inside loop plots multiple lines } Plot(ResLine,ResLine,colorRed, styleLine|styleThick); //outside loop plots single line (most recent value when condition is met) IMPORTANT PLEASE READ This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG
[amibroker] plotshapes question
I have a plotshapes added to an indicator...when I try to add an offset the shape disappears...any help appreciated... example: PlotShapes(shapeDigit1*(Low==trs),colorYellow); Also, I am doing line touches...How can I manipulate the digits to plot concurrently.. like: first touch is digit 1 , second touch is digit 2...etcstarting from left to right.. Thank you Anthony
Re: [amibroker] Re: plotshapes question
Thank you, there was enough info in your response that allowed me to get the offsets working as intended Any thoughts on the second question ? Anthony - Original Message - From: bistrader To: amibroker@yahoogroups.com Sent: Saturday, October 31, 2009 5:42 PM Subject: [amibroker] Re: plotshapes question Not enough info in your request to totally understand your question. Here is an example with offset that follows PlotShapes in AmiBroker Help. OffsetTradeArrow = -25; PlotShapes(buy*shapeUpArrow, colorGreen, 0, Close, OffsetTradeArrow); PlotShapes(sell*shapeDownArrow, colorRed, 0, Close, OffsetTradeArrow); --- In amibroker@yahoogroups.com, Anthony Faragasso ajf1...@... wrote: I have a plotshapes added to an indicator...when I try to add an offset the shape disappears...any help appreciated... example: PlotShapes(shapeDigit1*(Low==trs),colorYellow); Also, I am doing line touches...How can I manipulate the digits to plot concurrently.. like: first touch is digit 1 , second touch is digit 2...etcstarting from left to right.. Thank you Anthony
Re: [amibroker] Amibroker crash when using edit image
Pete, When amibroker suddenly began to crash...did you recently install software before the crash ? There might be some software conflict... Anthony - Original Message - From: Peter Kasper To: Amibroker@yahoogroups.com Sent: Saturday, October 24, 2009 12:39 PM Subject: [amibroker] Amibroker crash when using edit image A few months ago Amibroker suddenly began to crash every time I selected one of the options from the Edit/image menu. I reported the problem to Amibroker support and tried all their suggestions to fix the problem. Nothing has worked thus far. I was able to get help from a Microsoft engineer who checked out my operating system and couldn't find anything wrong. I was hoping to find another Amibroker user who had a similar problem and was able to fix the problem. My operating system is the 32 bit version of Vista Home premium. When selecting an option from the edit/image menu I get the information packed error message Amibroker for Win32 has stopped working and then get dumped to the desktop. Regards Pete
Re: [amibroker] Re: Multiple Charts in AFT in one Pane?
Mark, What I sent you...It did not Help ? Anthony - Original Message - From: MarkK To: amibroker@yahoogroups.com Sent: Wednesday, September 30, 2009 2:36 PM Subject: RE: [amibroker] Re: Multiple Charts in AFT in one Pane? Correct From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of bistrader Sent: Wednesday, September 30, 2009 1:31 PM To: amibroker@yahoogroups.com Subject: [amibroker] Re: Multiple Charts in AFT in one Pane? Do I understand? 1. One Tab 2. Three charts, one at the top say price, one in the middle say Macd and one at the bottom say Stochastic. 3. All from one afl. I have tried this and had to create 3 afls, but would rather have one afl to do all 3. --- In amibroker@yahoogroups.com, MarkK mailya...@... wrote: Not sure if I have the correct subject name What I would like to do I have a Three AFL's that are open and produce 3 different charts on one tab What I would like to do is combine all three into one AFL though I do not want all the information to be combined 1) Pricing and Liner Regression Lines 2) Stochastic Lines 3) RSi lines Would like to have all three in one AFL yet the chart on the tab page to look like three different charts even though it would be one AFL and one chart Can this be done? if so can someone show me how? Thank you MarkK
Re: [amibroker] Multiple Charts in AFT in one Pane?
Mark, Here is an example with Price and RSI at the bottom of the pane ..Is this what you want to do ? Anthony Plot(C,Price,colorBlack,styleCandle); indicator=RSI; R = RSI(); PH = 20; // Height of RSI in percent pane height RSIHeight = 100/PH*100; GraphXSpace = 5*PH; Plot(70,,colorBlack,styleLine|styleOwnScale,0,RSIHeight); Plot(R,,4,1|styleOwnScale,0,RSIHeight); Plot(30,,colorBlack,styleOwnScale|styleLine,0,RSIHeight); Plot(100,,colorLightGrey,styleArea|styleOwnScale|styleNoLabel,0,RSIHeight); - Original Message - From: MarkK To: amibroker@yahoogroups.com Sent: Tuesday, September 29, 2009 1:40 PM Subject: [amibroker] Multiple Charts in AFT in one Pane? Not sure if I have the correct subject name What I would like to do I have a Three AFL's that are open and produce 3 different charts on one tab What I would like to do is combine all three into one AFL though I do not want all the information to be combined 1) Pricing and Liner Regression Lines 2) Stochastic Lines 3) RSi lines Would like to have all three in one AFL yet the chart on the tab page to look like three different charts even though it would be one AFL and one chart Can this be done? if so can someone show me how? Thank you MarkK
[amibroker] setsortcolumns leaking ?
Has anyone experienced thisI have setsortcolumns() in 1 exploration but when I run other explorations it seems to be ( leaking out ?) into those other explorationsmeaning they also sort even without the code.. Thanks Anthony
[amibroker] range markers
Does anyone have a simple example of how to use the range markers for statistics... Thank you Anthony
Re: [amibroker] Live scanning
The AA window has that capability Run every : etc... - Original Message - From: myremisier To: amibroker@yahoogroups.com Sent: Saturday, August 22, 2009 5:41 AM Subject: [amibroker] Live scanning Hi.. is there any live scanning for amibroker? I want to find out activities during the day such as: - Volume spike - Breakout on automatic basis without periodally clicking at scanning button. thanks..
Re: [amibroker] Help with an indicator formula
something like this: x=MA(Min(H-O,O-L),10); Plot(x,,colorRed,styleLine); - Original Message - From: john10987654321 To: amibroker@yahoogroups.com Sent: Saturday, August 29, 2009 6:20 AM Subject: [amibroker] Help with an indicator formula I need help writing an indicator: The 10 period SMA of the absolute difference between the open and either the high or low, whichever difference is smaller. Any advice appreciated.
Re: [amibroker] Re: TimeFrames: Is their use flawed?
Hello, Just reading this and would like to ask several questions. What were your observations using the Timeframe functions and why they did not work for you ? Have you reported your observations to Support ? Thank you Anthony - Original Message - From: jorgen_wallgren To: amibroker@yahoogroups.com Sent: Thursday, August 13, 2009 4:59 AM Subject: [amibroker] Re: TimeFrames: Is their use flawed? Herman, I agree with you and I have the same questions. I have been working on a RT system using data from 2 additional time frames and the result was very clear! I can't use the AB TimeFrame Functions and get a system which works in real time and can also be properly be back tested. Therefore I wrote my own TimeFrame Function and now when I have the data from the 2 longer timeframes in the same resolution as my chart interval, 1 minute, everything works very well. Regards, Jorgen
[amibroker] Rolling back to previous
Hello, After installing the 5.27.1 alpha and letting the program do the data back..is it possible to roll back to a previous Beta ? I am experiencing issues with the new alpha at this time and would like to roll back, I tried to roll back to 5.26.5 but is said broker.layers corrupted and will not be loaded,,, I was unsuccessful, must we roll back to an official version ? Thank you Anthony