[amibroker] mirror image of charts
I would like to chart a mirror image of my charts. An uptrend would become a downtrend, and vice versa. Is this possible to do? I would maybe know how to program it, but I don't know how to implement it really. How would I know what values I would calculate for each of O H L C?
[amibroker] Re: mirror image of charts
YES!! This does exactly what I want! Thanks ChrisB and gp_sydney for your help! --- In amibroker@yahoogroups.com, ChrisB [EMAIL PROTECTED] wrote: carlacash26 Could you see if this does what you need? Can't remember where I say this for credits. // Flip price chart Plot(C,,colorBlack,64); if(ParamToggle(Upside Down?,No|Yes)) GraphXSpace = -100; *** Just use the param function to Flip the chart. regards ChrisB carlacash26 wrote: I would like to chart a mirror image of my charts. An uptrend would become a downtrend, and vice versa. Is this possible to do? I would maybe know how to program it, but I don't know how to implement it really. How would I know what values I would calculate for each of O H L C?
[amibroker] Amiquote crashes on Windows Vista
Hi, my amiquote crashes on Windows Vista. I searched for this issue and have tried to act according to the tips given to others; -I have Installed full amibroker 5.00 -I have amiquote 1.94 -Run as administrator No luck. Sometimes it works fine, but sometimes after amiquote downloads some tickers data it crashes with following message: Quote MFC Application has stopped working Any suggestions?
[amibroker] Re: Mark stocks automatically when added to watchlist in exploration
Yes, this would be perfect! I'm having trouble figuring out how to have the exploration plot the shape in the price chart, as my exploration code is only a external scan that is not included in the price chart code. I do not want to write my plotshape code in the price chart formula, but have my exploration plot the shape if and when it finds a stock. Is it possible? --- In amibroker@yahoogroups.com, wavemechanic [EMAIL PROTECTED] wrote: If you want the bar marked on the chart, I suspect that including the exploration conditions in the chart code together with plotshapes() or coloring the bar might be the simplest approach. Bill - Original Message - From: carlacash26 [EMAIL PROTECTED] To: amibroker@yahoogroups.com Sent: Monday, September 24, 2007 1:01 AM Subject: [amibroker] Re: Mark stocks automatically when added to watchlist in exploration Thanks, I think this is to indicate in the exploration window. I would like to have the mark on the chart itself. --- In amibroker@yahoogroups.com, wavemechanic fimdot@ wrote: See the thread starting with message #109175. Bill - Original Message - From: carlacash26 carlacash26@ To: amibroker@yahoogroups.com Sent: Sunday, September 23, 2007 8:04 AM Subject: [amibroker] Mark stocks automatically when added to watchlist in exploration Hi, I have an exploration which returns a number of stocks. These are then automatically added to a watchlist. I would like to know if it would be possible to have the exploration to somehow automatically mark the bar, with a dot or something, on the day the stock was added to the watchlist, in order to later know when it was added, as I go through my watchlist. Thanks! Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
[amibroker] Re: Mark stocks automatically when added to watchlist in exploration
If i right-click the chart, choose edit formula, and write the plot code there it works alright. But my exploration is different than that formula, I have several explorations, one in each file, that I load in Auto-analyser when I want to run the exploration. The chart formula (rightclick chart, edit formula...) is always left untouched. I don't know what is the normal way to work in amibroker, do you always write all code in the chart formula? I don't use any indicators, only explore prices, by using an other exploration file which I load into the Auto-analyser. --- In amibroker@yahoogroups.com, wavemechanic [EMAIL PROTECTED] wrote: Maybe there is a way to connect your price chart with an exploration output but off hand nothing comes to mind. Not sure why you do not want to include exploration with plotting code but maybe I misunderstand. In any case, I would (and often do) just make up a code along these lines: Exploration code plot(c, , colorbar, ...) plotshapes(...) plottext(...) Bill - Original Message - From: carlacash26 [EMAIL PROTECTED] To: amibroker@yahoogroups.com Sent: Monday, September 24, 2007 10:42 AM Subject: [amibroker] Re: Mark stocks automatically when added to watchlist in exploration Yes, this would be perfect! I'm having trouble figuring out how to have the exploration plot the shape in the price chart, as my exploration code is only a external scan that is not included in the price chart code. I do not want to write my plotshape code in the price chart formula, but have my exploration plot the shape if and when it finds a stock. Is it possible? --- In amibroker@yahoogroups.com, wavemechanic fimdot@ wrote: If you want the bar marked on the chart, I suspect that including the exploration conditions in the chart code together with plotshapes() or coloring the bar might be the simplest approach. Bill - Original Message - From: carlacash26 carlacash26@ To: amibroker@yahoogroups.com Sent: Monday, September 24, 2007 1:01 AM Subject: [amibroker] Re: Mark stocks automatically when added to watchlist in exploration Thanks, I think this is to indicate in the exploration window. I would like to have the mark on the chart itself. --- In amibroker@yahoogroups.com, wavemechanic fimdot@ wrote: See the thread starting with message #109175. Bill - Original Message - From: carlacash26 carlacash26@ To: amibroker@yahoogroups.com Sent: Sunday, September 23, 2007 8:04 AM Subject: [amibroker] Mark stocks automatically when added to watchlist in exploration Hi, I have an exploration which returns a number of stocks. These are then automatically added to a watchlist. I would like to know if it would be possible to have the exploration to somehow automatically mark the bar, with a dot or something, on the day the stock was added to the watchlist, in order to later know when it was added, as I go through my watchlist. Thanks! Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
[amibroker] Mark stocks automatically when added to watchlist in exploration
Hi, I have an exploration which returns a number of stocks. These are then automatically added to a watchlist. I would like to know if it would be possible to have the exploration to somehow automatically mark the bar, with a dot or something, on the day the stock was added to the watchlist, in order to later know when it was added, as I go through my watchlist. Thanks!
[amibroker] Re: Mark stocks automatically when added to watchlist in exploration
Thanks, I think this is to indicate in the exploration window. I would like to have the mark on the chart itself. --- In amibroker@yahoogroups.com, wavemechanic [EMAIL PROTECTED] wrote: See the thread starting with message #109175. Bill - Original Message - From: carlacash26 [EMAIL PROTECTED] To: amibroker@yahoogroups.com Sent: Sunday, September 23, 2007 8:04 AM Subject: [amibroker] Mark stocks automatically when added to watchlist in exploration Hi, I have an exploration which returns a number of stocks. These are then automatically added to a watchlist. I would like to know if it would be possible to have the exploration to somehow automatically mark the bar, with a dot or something, on the day the stock was added to the watchlist, in order to later know when it was added, as I go through my watchlist. Thanks! Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
[amibroker] Re: Mark stocks automatically when added to watchlist in exploration
Thanks. This would write the text to the notepad?I guess that would suffice, but I had hoped there was a function that could draw a sign on the chart itself? I guess AFL can get the computer's date and write it to the notepad if the stock is found in an exploration. I would not have to write the date myself I hope? This is pseudocode, could I implement it like this: For any stock that is filtered in exploration: NoteSet(, Stock was found in exploration on date() ); --- In amibroker@yahoogroups.com, murthysuresh [EMAIL PROTECTED] wrote: you could try to write to a custom log or noteget noteset whichever if conventient. --- In amibroker@yahoogroups.com, carlacash26 carlacash26@ wrote: Hi, I have an exploration which returns a number of stocks. These are then automatically added to a watchlist. I would like to know if it would be possible to have the exploration to somehow automatically mark the bar, with a dot or something, on the day the stock was added to the watchlist, in order to later know when it was added, as I go through my watchlist. Thanks!
[amibroker] Re: Deleting Watchlists
Erase(make empty) all watchlists that are not needed, then exit amibroker and when you open amibroker again it the watchlist-list is only showing those that were not erased (made empty) This is an old message, but I had problems with this and got it sorted out. Wanted to share for future reference. --- In amibroker@yahoogroups.com, Bruce H. [EMAIL PROTECTED] wrote: Richard, Thanks for the response.. Its appreciated.. When I go to add a particular stock to a watch list, I am presented with a list of all lists (1-34).. Is there a way to delete some of these excess list, so that I only see a list of say 3 or 4 rather than all 34 of them.. Hoping this explains my situation a bit better.. Bruce Perth, Australia - Original Message - From: Richard Alford To: amibroker@yahoogroups.com Sent: Monday, June 17, 2002 9:29 PM Subject: Re: [amibroker] Deleting Watchlists Edit/Erase Watch Lists offers the choice of erasing specified lists. rma
[amibroker] PEAK/THROUGH
Dear all, is it possible to define the last three price peaks that have occurred on about the same level as the HHV of a range? Say there is some kind of a trading range and I would like to find all days when price has been in the approximate level of the highest high value of the entire range, and thus define the approxiamte resistance level. Are the PEAK and THROUGH functions something that I could use for this, or what are these functions?
[amibroker] Re: help with weighted index
Waleed, I'm trying to do the same thing with weighted index. Try this code, and maybe you can find what is the error, this code produces some graph.(Change to you own stocks) weight = IIf( Name() == AA, 5, IIf( Name() == C, 4, IIf( Name() == CAT, 6, IIf( Name() == GE, 7, 0 ) ) ) ); AddToComposite( weight * C, ~test, X ); Buy = 0; Graph0 = Foreign( ~test, C )/Foreign( ~test, I ); It just plots dots, not linechart or anything. I would like to have a index with OHLC but I don't know how... If anybody knows how to do this, please help! --- In amibroker@yahoogroups.com, Waleed Khalil [EMAIL PROTECTED] wrote: Hi all can any one please tell me what is wrong withe wight part in this code weight = IIf( Name() == elsh, 5, IIf( Name() == unit, 4, IIf( Name() == elka, 6, IIf( Name() == ocdi, 7, IIf( Name() == arei, 3, IIf( Name() == mnhd, 3, IIf( Name() == heli, 2, 0 ) ) ) ; AddToComposite( Close, ~housing, X ); AddToComposite( V , ~housing, V ); AddToComposite( 1, ~housing, I ); Buy = 0; Graph0 = Foreign( ~housing, C )/Foreign( ~housing, I ); this code produces zero , but when i remove the weight part everything is ok and i get my curve thanks in advance Waleed
[amibroker] Re: help with weighted index
If i put the code in a new pane it will plot a linechart. Is there any way to get th hich, low and Open values and plot candles or barcharts? --- In amibroker@yahoogroups.com, carlacash26 [EMAIL PROTECTED] wrote: Waleed, I'm trying to do the same thing with weighted index. Try this code, and maybe you can find what is the error, this code produces some graph.(Change to you own stocks) weight = IIf( Name() == AA, 5, IIf( Name() == C, 4, IIf( Name() == CAT, 6, IIf( Name() == GE, 7, 0 ) ) ) ); AddToComposite( weight * C, ~test, X ); Buy = 0; Graph0 = Foreign( ~test, C )/Foreign( ~test, I ); It just plots dots, not linechart or anything. I would like to have a index with OHLC but I don't know how... If anybody knows how to do this, please help! --- In amibroker@yahoogroups.com, Waleed Khalil waleedkhalil@ wrote: Hi all can any one please tell me what is wrong withe wight part in this code weight = IIf( Name() == elsh, 5, IIf( Name() == unit, 4, IIf( Name() == elka, 6, IIf( Name() == ocdi, 7, IIf( Name() == arei, 3, IIf( Name() == mnhd, 3, IIf( Name() == heli, 2, 0 ) ) ) ; AddToComposite( Close, ~housing, X ); AddToComposite( V , ~housing, V ); AddToComposite( 1, ~housing, I ); Buy = 0; Graph0 = Foreign( ~housing, C )/Foreign( ~housing, I ); this code produces zero , but when i remove the weight part everything is ok and i get my curve thanks in advance Waleed
[amibroker] Re: help with weighted index
Here is a revised code, I'm trying to calculate Open, High, Low and Close to be able to plot candles/bars for a weighted index. Hope someone could help... START OF CODE weight = IIf( Name() == AA, 5, IIf( Name() == C, 4, IIf( Name() == CAT, 6, IIf( Name() == GE, 7, 0 ) ) ) ); AddToComposite( weight * O, ~test, nO ); AddToComposite( weight * H, ~test, nH ); AddToComposite( weight * L, ~test, nL ); AddToComposite( weight * C, ~test, nC ); Buy = 0; nO = Foreign( ~test, O );/// nH = Foreign( ~test, H );/// nL = Foreign( ~test, L );/// nC = Foreign( ~test, C );/// // plot chart PlotOHLC(nO, nH, nL, nC, ~test , colorBlack, styleLine); END OF CODE If i change the StyleLine to StyleBar, this code doesn't work. I was hoping i had the O,H,L,C calculated like thi... :( --- In amibroker@yahoogroups.com, carlacash26 [EMAIL PROTECTED] wrote: If i put the code in a new pane it will plot a linechart. Is there any way to get th hich, low and Open values and plot candles or barcharts? --- In amibroker@yahoogroups.com, carlacash26 carlacash26@ wrote: Waleed, I'm trying to do the same thing with weighted index. Try this code, and maybe you can find what is the error, this code produces some graph.(Change to you own stocks) weight = IIf( Name() == AA, 5, IIf( Name() == C, 4, IIf( Name() == CAT, 6, IIf( Name() == GE, 7, 0 ) ) ) ); AddToComposite( weight * C, ~test, X ); Buy = 0; Graph0 = Foreign( ~test, C )/Foreign( ~test, I ); It just plots dots, not linechart or anything. I would like to have a index with OHLC but I don't know how... If anybody knows how to do this, please help! --- In amibroker@yahoogroups.com, Waleed Khalil waleedkhalil@ wrote: Hi all can any one please tell me what is wrong withe wight part in this code weight = IIf( Name() == elsh, 5, IIf( Name() == unit, 4, IIf( Name() == elka, 6, IIf( Name() == ocdi, 7, IIf( Name() == arei, 3, IIf( Name() == mnhd, 3, IIf( Name() == heli, 2, 0 ) ) ) ; AddToComposite( Close, ~housing, X ); AddToComposite( V , ~housing, V ); AddToComposite( 1, ~housing, I ); Buy = 0; Graph0 = Foreign( ~housing, C )/Foreign( ~housing, I ); this code produces zero , but when i remove the weight part everything is ok and i get my curve thanks in advance Waleed
[amibroker] Re: help with weighted index
Thank you so much! This thread will probably be good for reference in the future! --- In amibroker@yahoogroups.com, brian_z321 [EMAIL PROTECTED] wrote: --- In amibroker@yahoogroups.com, Waleed Khalil waleedkhalil@ wrote: Brian, finally i have made it , it works great. Hello Waleed Khalil, Thanks for the feedback. Your code looks good. I had just uploaded some example files when I saw your post. They are superfluous now but I will leave them up for a while as they might help someone else. CompareIndexToPortfolio folder. WeightedIndex.doc WeightedIndexes.xls I downloaded a few bars as per carlacash26's code, ran the scan and exported all the data into Xcel. The yellow cells are the equivalent of the composite calculated in Xcel from the raw data. It matches the exported values for ~test. CC26's modified code START OF CODE weight = IIf( Name() == AA, 5, IIf( Name() == C, 4, IIf( Name() == CAT, 6, IIf( Name() == GE, 7, 0 ) ) ) ); AddToComposite( weight * O, ~test, O ); AddToComposite( weight * H, ~test, H ); AddToComposite( weight * L, ~test, L ); AddToComposite( weight * C, ~test, C ); Buy = 0; PlotForeign(~test,test,colorBlack,styleCandle); END OF CODE Brian_z
[amibroker] create custom weighted index
Hi, hope you could help me in creating my own custom index. I have 8 stocks that I would like to include in the index, and each of the stocks have their own weighting in the index; O= (Open of A * 42) + (Open of B * 60) + (Open of C * 231 ETC...) H= (High of A * 42) + (High of B * 60) + (High of C * 231 ETC...) L= (Low of A * 42) + (Low of B * 60) + (Low of C * 231 ETC...) C= (Close of A * 42) + (Close of B * 60) + (Close of C * 231 ETC...) V= Volume added together Is there any smooth way to create this with the weightings? I have found the following info: A sample formula could look like this: Code: AddToComposite(C,~myindex, C); AddToComposite(H,~myindex, H); AddToComposite(L,~myindex, L); AddToComposite(O,~myindex, O); AddToComposite(V,~myindex, V); You would need to copy this formula into Automatic Analysis window. Click on Filter - choose appropriate category you want to calculate index from, then click OK. Now click SCAN. Then choose View-Refresh All menu. In the ticker tree you will see ~myindex ticker.
[amibroker] Re: create custom weighted index
The sample code did not work. Nothing happened when I tried to run it like that, so I don't know how to continue from here... --- In amibroker@yahoogroups.com, carlacash26 [EMAIL PROTECTED] wrote: Hi, hope you could help me in creating my own custom index. I have 8 stocks that I would like to include in the index, and each of the stocks have their own weighting in the index; O= (Open of A * 42) + (Open of B * 60) + (Open of C * 231 ETC...) H= (High of A * 42) + (High of B * 60) + (High of C * 231 ETC...) L= (Low of A * 42) + (Low of B * 60) + (Low of C * 231 ETC...) C= (Close of A * 42) + (Close of B * 60) + (Close of C * 231 ETC...) V= Volume added together Is there any smooth way to create this with the weightings? I have found the following info: A sample formula could look like this: Code: AddToComposite(C,~myindex, C); AddToComposite(H,~myindex, H); AddToComposite(L,~myindex, L); AddToComposite(O,~myindex, O); AddToComposite(V,~myindex, V); You would need to copy this formula into Automatic Analysis window. Click on Filter - choose appropriate category you want to calculate index from, then click OK. Now click SCAN. Then choose View- Refresh All menu. In the ticker tree you will see ~myindex ticker.
[amibroker] How to use function?
Hi I have received some Amibroker code but I cant get it to work, could someone advice me how to do this? It is made up of a function, and it works as a smooth moving average. It returns an array, and I suppose I want to plot this array? function Smoother(inputArray, period, inertia) { resultArray = Cum(0); //CODE REMOVED if (loopParam 30) SmoothValue = Null; SmoothValueBuffer[shift] = SmoothValue; resultArray[resultArrayIndex++] = SmoothValue; } return resultArray; }
[amibroker] Re: How to use function?
Thanks Graham it worked. Bob, i just removed the code when i posted the code publicly since it's copyright material. --- In amibroker@yahoogroups.com, Bob Jagow [EMAIL PROTECTED] wrote: Try unremoving the code. -Original Message- From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of carlacash26 Sent: Wednesday, March 28, 2007 12:54 AM To: amibroker@yahoogroups.com Subject: [amibroker] How to use function? Hi I have received some Amibroker code but I cant get it to work, could someone advice me how to do this? It is made up of a function, and it works as a smooth moving average. It returns an array, and I suppose I want to plot this array? function Smoother(inputArray, period, inertia) { resultArray = Cum(0); //CODE REMOVED if (loopParam 30) SmoothValue = Null; SmoothValueBuffer[shift] = SmoothValue; resultArray[resultArrayIndex++] = SmoothValue; } return resultArray; } Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
[amibroker] Re: matastock vs amibroker
I'd say Amibroker, I have tried both, as well as tradestation and wealthlab. Amibroker is the number one. VERY competitive price, VERY good programming language - perhaps steep learning curve but hey - you are going to want a powerful language eventually, VERY good charts. Scans, explorations. Customizability, ease of use, plugins, service, you name it. --- In amibroker@yahoogroups.com, Natasha ~~!!! [EMAIL PROTECTED] wrote: http://shop.fundsoft.com/shop/category.asp?catid=3 this is the cost of additions to mEtastock All this is coded free for amibroker users in the library section . On 2/10/07, Yuki Taga [EMAIL PROTECTED] wrote: Saturday, February 10, 2007, 3:30:51 PM, you wrote: f Which one is better overall amibroker or metastock. f I'm trying to buy either one. f please comment. f Thanks There is a *huge* number of former Metastock users who now use Amibroker. I doubt if hardly anyone goes in the other direction. That should be a clue. And of course asking on this board ... well, why don't you ask Bill Gates in person if Apple is better than Windows, or vice versa? Yuki -- Warm Regards; `` Natasha !!!
[amibroker] Re: Finding trading range/horizontal channel, can it be done like this?
OK, here is what I have come up with. It will perform an exploration, but it will just list all the stock, not filter out the ones that are not meeting my criteria. Background; I search for the 3 highest high value for past 10 days, 10-20 days and 20-30 days. Then I want to find the smallest of these values and compare it to the highest high value of them all, if they don't deviate by more than 2%, the stock has a resistance level at that point. Same thing with the lowest low values, which will find me the support level. The problem I am facing now is that there is something wrong with finding the smallest of the Highest high values. The HHmin is just set as 1.00 and not as the value of the smallest of the 3 HHVs. I hope someone can help me with this. I think I'm close now. /* Find stocks in a trading range **/ // First find the highest high values, And lowest low values for the //3 periods; 10 days ago, 10-20 days ago, and 20-30 days ago HHA=Ref(HHV(H,10),-1); //HHV of 10 days ago (for example 33) HHB=Ref(HHV(H,10),-10); //HHV of 10 to 20 ago (for example 32) HHC=Ref(HHV(H,10),-20); //HHV of 20 to 30 days ago (for example 34) LLA=Ref(LLV(L,10),-1); //LLV of 10 days ago (for example 33) LLB=Ref(LLV(L,10),-10); //LLV of 10 to 20 ago (for example 32) LLC=Ref(LLV(L,10),-20); //LLV of 20 to 30 days ago (for example 34) //Then find the smallest value of the 3 HHVs, and the largest value of the LLVs HHmin = IIf((HHA HHB=True) AND (HHA HHC=True), HHA, HHB); HHmin = IIf((HHB HHA=True) AND (HHB HHC=True), HHB, HHB); HHmin = IIf((HHC HHB=True) AND (HHC HHA=True), HHC, HHB); LLmax = IIf((LLA LLB=True) AND (LLA LLC=True), LLA, LLA); LLmax = IIf((LLB LLA=True) AND (LLB LLC=True), LLB, LLB); LLmax = IIf((LLC LLB=True) AND (LLC LLA=True), LLC, LLB); //Then caluculate the average of these HHVs and LLVs //NOTE: this is not needed for the time being HHavg=((HHA+HHB+HHC)/3);//(for example = 33) LLavg=((LLA+LLB+LLC)/3); //(for example =28) //Then check to see if the min and max of the three HHVs and //LLVs are not deviating too much, I chose 5% as example //of maximum deviation. HChannel=False; minHHrange=(HHV(H,30) * 0.95); //set the min and max values maxHHrange=(HHV(H,30) * 1.05); minLLrange=(LLV(L,30) * 0.95); maxLLrange=(LLV(L,30) * 1.05); hChannelHHmin = IIf (HHmin minHHrange, True, False); hChannelHHmax = IIf (HHmin maxHHrange, True, False); hChannelLLmin = IIf (LLmax minLLrange, True, False); hChannelLLmax = IIf (LLmax maxLLrange, True, False); //Then sum up all of the criteria hChannel = IIf (hChannelHHmin=True AND hChannelHHmax=True AND hChannelLLmin=True AND hChannelLLmax=True, True, False); //And finally filter out the ones that don't meet the criteria Filter=hChannel=True; COLA= Close; COLB= Ref(HHV(H,10),-1); COLC=HHB=Ref(HHV(H,10),-10); COLD=Ref(HHV(H,10),-20); COLE= HHmin; AddColumn(Cola,close); AddColumn(Colb,HHV-10); AddColumn(Colc,HHV-10-20); AddColumn(Cold,HHV-20-30); AddColumn(Cole,HHmin); //END OF CODE
[amibroker] Re: Finding trading range/horizontal channel, can it be done like this?
Thanks again Wayne! I appreciate your input! I have solved the problems I had. Filter=hChannel; worked, I guess if the variable is 1 or true then you don't need the = at all. --- In amibroker@yahoogroups.com, wlandry01 [EMAIL PROTECTED] wrote: Hi, A couple of things occur to me: 1.) At one point the code defines HChannel as False. Later the terminology used is hChannel. Should those be the same? 2.) Also, the statement, Filter=hChannel=True; probably should read Filter=hChannel==True;. I believe the current wording sets Filter to True but it appears that you want to set the Filter to True only when hChannel is True. Hope this helps. Wayne --- In amibroker@yahoogroups.com, carlacash26 carlacash26@ wrote: OK, here is what I have come up with. It will perform an exploration, but it will just list all the stock, not filter out the ones that are not meeting my criteria. Background; I search for the 3 highest high value for past 10 days, 10-20 days and 20-30 days. Then I want to find the smallest of these values and compare it to the highest high value of them all, if they don't deviate by more than 2%, the stock has a resistance level at that point. Same thing with the lowest low values, which will find me the support level. The problem I am facing now is that there is something wrong with finding the smallest of the Highest high values. The HHmin is just set as 1.00 and not as the value of the smallest of the 3 HHVs. I hope someone can help me with this. I think I'm close now. /* Find stocks in a trading range **/ // First find the highest high values, And lowest low values for the //3 periods; 10 days ago, 10-20 days ago, and 20-30 days ago HHA=Ref(HHV(H,10),-1); //HHV of 10 days ago (for example 33) HHB=Ref(HHV(H,10),-10); //HHV of 10 to 20 ago (for example 32) HHC=Ref(HHV(H,10),-20); //HHV of 20 to 30 days ago (for example 34) LLA=Ref(LLV(L,10),-1); //LLV of 10 days ago (for example 33) LLB=Ref(LLV(L,10),-10); //LLV of 10 to 20 ago (for example 32) LLC=Ref(LLV(L,10),-20); //LLV of 20 to 30 days ago (for example 34) //Then find the smallest value of the 3 HHVs, and the largest value of the LLVs HHmin = IIf((HHA HHB=True) AND (HHA HHC=True), HHA, HHB); HHmin = IIf((HHB HHA=True) AND (HHB HHC=True), HHB, HHB); HHmin = IIf((HHC HHB=True) AND (HHC HHA=True), HHC, HHB); LLmax = IIf((LLA LLB=True) AND (LLA LLC=True), LLA, LLA); LLmax = IIf((LLB LLA=True) AND (LLB LLC=True), LLB, LLB); LLmax = IIf((LLC LLB=True) AND (LLC LLA=True), LLC, LLB); //Then caluculate the average of these HHVs and LLVs //NOTE: this is not needed for the time being HHavg=((HHA+HHB+HHC)/3);//(for example = 33) LLavg=((LLA+LLB+LLC)/3); //(for example =28) //Then check to see if the min and max of the three HHVs and //LLVs are not deviating too much, I chose 5% as example //of maximum deviation. HChannel=False; minHHrange=(HHV(H,30) * 0.95); //set the min and max values maxHHrange=(HHV(H,30) * 1.05); minLLrange=(LLV(L,30) * 0.95); maxLLrange=(LLV(L,30) * 1.05); hChannelHHmin = IIf (HHmin minHHrange, True, False); hChannelHHmax = IIf (HHmin maxHHrange, True, False); hChannelLLmin = IIf (LLmax minLLrange, True, False); hChannelLLmax = IIf (LLmax maxLLrange, True, False); //Then sum up all of the criteria hChannel = IIf (hChannelHHmin=True AND hChannelHHmax=True AND hChannelLLmin=True AND hChannelLLmax=True, True, False); //And finally filter out the ones that don't meet the criteria Filter=hChannel=True; COLA= Close; COLB= Ref(HHV(H,10),-1); COLC=HHB=Ref(HHV(H,10),-10); COLD=Ref(HHV(H,10),-20); COLE= HHmin; AddColumn(Cola,close); AddColumn(Colb,HHV-10); AddColumn(Colc,HHV-10-20); AddColumn(Cold,HHV-20-30); AddColumn(Cole,HHmin); //END OF CODE
[amibroker] Re: Finding trading range/horizontal channel, can it be done like this?
Yes, it all makes sense! The same thing is in other programming languages... Why didn't I think about that... :( Thanks! --- In amibroker@yahoogroups.com, wlandry01 [EMAIL PROTECTED] wrote: Another follow up. You might want to check your code for the use of = (assignment) versus == (equal). It looks like you should be using == instead of = in several places. There's some explanatory text in the User's Guide regarding the difference in usage, as follows: = (assignment) vs == (equality check) There are two similar looking but completely different operators in AFL. = is a variable assignment operator == is an equality check operator EXAMPLE Incorrect code: result = IIf( Variable = 10 , High, Low ); // WRONG If you want to check if variable is equal to 10, you MUST use == Correct code: result = IIf( Variable == 10 , High, Low ); // CORRECT Wayne --- In amibroker@yahoogroups.com, carlacash26 carlacash26@ wrote: OK, here is what I have come up with. It will perform an exploration, but it will just list all the stock, not filter out the ones that are not meeting my criteria. Background; I search for the 3 highest high value for past 10 days, 10-20 days and 20-30 days. Then I want to find the smallest of these values and compare it to the highest high value of them all, if they don't deviate by more than 2%, the stock has a resistance level at that point. Same thing with the lowest low values, which will find me the support level. The problem I am facing now is that there is something wrong with finding the smallest of the Highest high values. The HHmin is just set as 1.00 and not as the value of the smallest of the 3 HHVs. I hope someone can help me with this. I think I'm close now. /* Find stocks in a trading range **/ // First find the highest high values, And lowest low values for the //3 periods; 10 days ago, 10-20 days ago, and 20-30 days ago HHA=Ref(HHV(H,10),-1); //HHV of 10 days ago (for example 33) HHB=Ref(HHV(H,10),-10); //HHV of 10 to 20 ago (for example 32) HHC=Ref(HHV(H,10),-20); //HHV of 20 to 30 days ago (for example 34) LLA=Ref(LLV(L,10),-1); //LLV of 10 days ago (for example 33) LLB=Ref(LLV(L,10),-10); //LLV of 10 to 20 ago (for example 32) LLC=Ref(LLV(L,10),-20); //LLV of 20 to 30 days ago (for example 34) //Then find the smallest value of the 3 HHVs, and the largest value of the LLVs HHmin = IIf((HHA HHB=True) AND (HHA HHC=True), HHA, HHB); HHmin = IIf((HHB HHA=True) AND (HHB HHC=True), HHB, HHB); HHmin = IIf((HHC HHB=True) AND (HHC HHA=True), HHC, HHB); LLmax = IIf((LLA LLB=True) AND (LLA LLC=True), LLA, LLA); LLmax = IIf((LLB LLA=True) AND (LLB LLC=True), LLB, LLB); LLmax = IIf((LLC LLB=True) AND (LLC LLA=True), LLC, LLB); //Then caluculate the average of these HHVs and LLVs //NOTE: this is not needed for the time being HHavg=((HHA+HHB+HHC)/3);//(for example = 33) LLavg=((LLA+LLB+LLC)/3); //(for example =28) //Then check to see if the min and max of the three HHVs and //LLVs are not deviating too much, I chose 5% as example //of maximum deviation. HChannel=False; minHHrange=(HHV(H,30) * 0.95); //set the min and max values maxHHrange=(HHV(H,30) * 1.05); minLLrange=(LLV(L,30) * 0.95); maxLLrange=(LLV(L,30) * 1.05); hChannelHHmin = IIf (HHmin minHHrange, True, False); hChannelHHmax = IIf (HHmin maxHHrange, True, False); hChannelLLmin = IIf (LLmax minLLrange, True, False); hChannelLLmax = IIf (LLmax maxLLrange, True, False); //Then sum up all of the criteria hChannel = IIf (hChannelHHmin=True AND hChannelHHmax=True AND hChannelLLmin=True AND hChannelLLmax=True, True, False); //And finally filter out the ones that don't meet the criteria Filter=hChannel=True; COLA= Close; COLB= Ref(HHV(H,10),-1); COLC=HHB=Ref(HHV(H,10),-10); COLD=Ref(HHV(H,10),-20); COLE= HHmin; AddColumn(Cola,close); AddColumn(Colb,HHV-10); AddColumn(Colc,HHV-10-20); AddColumn(Cold,HHV-20-30); AddColumn(Cole,HHmin); //END OF CODE
[amibroker] Finding trading range/horizontal channel, can it be done like this?
I want to plot a horizontal line from the Highest High Value and one from the Lowest Low Value for the past 30 days. In addition to this I want to have an exploration find stocks where the price has turned in the proximity of this line (support/resistance) over the past 30 days (or any period that I define). In other words I want to search for a horizontal channel that has lasted for past 30* days. I have thought about how to implement this and maybe this is a suitable way?..: To find the the HHV for the last 10 days, AND the HHV for the last 10 to 20 days, AND the HHV for the last 20 to 30 days. And then the same thing for the LLV. Do you understand what I mean? Then if the HHV/LLV for these timeperiods don't deviate from each other that much, then I can assume that there is resistance/support for past 30 days at this level. I could divide the range into more/less timeperiods also, I don't know the best number of periods, I chose 3 to begin with. What do you think about this approach? Do you find anything that don't make sense about this? /***/ //THE CODE I HAVE COME UP WITH, //it's not finished by any means but you get my point hopefully //The syntax is probably not correct, this is some kind //of pseudo code I guess, I have just written this in notepad /***/ // First find the highest high values, And lowest low values for the 3 periods; 10 days ago, 10-20 days ago, and 20-30 days ago HHA=HHV(H,10,-1);//HHV of 10 days ago (for example 33) HHB=HHV(H,10,-10); //HHV of 10 to 20 ago (for example 32) HHC=HHV(H,10,-20); //HHV of 20 to 30 days ago (for example 34) LLA=LLV(L,10,-1);//LLV of 10 days ago (for example 27) LLB=LLV(L,10,-10); //LLV of 10 to 20 ago (for example 28) LLC=LLV(L,10,-20); //LLV of 20 to 30 days ago (for example 29) //Then caluculate the average of these HHVs and LLVs HHavg=(HHA+HHB+HHC/3);//(for example = 33) LLavg=(LLA+LLB+LLC/3); //(for example =28) //Then check to see if the averages of the three HHVs and //LLVs are not deviating too much, I chose 5% as example //of maximum deviation. //HHAvg is between HHV - 5% and HHV + 5% if ((HHavg (HHV(H,30) * 0.95)) AND (HHavg (HHV(H,30) * 1.05))) AND //LLAvg is between LLV - 5% and LLV + 5% if ((LLavg (LLV(L,30) * 0.95)) AND (LLavg (LLV(L,30) * 1.05))) { hChannel=TRUE; } //if they don't differ more than 5% there is a horizontal channel Filter=hChannel; //filter for stocks where hchannel is true //now plot the channel for stocks where hChannel=true //i.e. plot lines from HHavg and LLavg, AND plot lines //from HHV(H,30,-1) and LLV(L,30,-1) //then maybe explore stocks that break out of these //resistance levels. Haven't thought about this yet... //Code ends here Please could you give your opinion on this, I might have missed something or maybe I'm completely off track? Is there a better way to find horizontal support and resistance that I could use to find horizontal channels/ranges? Thank you very much for any help or suggestions or comments you can give! It's highly appreciated!
[amibroker] Re: Finding trading range/horizontal channel, can it be done like this?
OK first problem I encounter when trying to write this in amibroker, is that this doesn't work...: HHA=HHV(H,10); //HHV of 10 days ago (for example 33) HHB=HHV(H,10,-10); //HHV of 10 to 20 ago (for example 32) HHC=HHV(H,10,-20); //HHV of 20 to 30 days ago (for example 34) Any idea how to get the highest high value from, 10 days ago (not counting today), 10 to 20 days ago and 20-30 days ago? Is it possible in an easy fashion? Thanks! --- In amibroker@yahoogroups.com, carlacash26 [EMAIL PROTECTED] wrote: I want to plot a horizontal line from the Highest High Value and one from the Lowest Low Value for the past 30 days. In addition to this I want to have an exploration find stocks where the price has turned in the proximity of this line (support/resistance) over the past 30 days (or any period that I define). In other words I want to search for a horizontal channel that has lasted for past 30* days. I have thought about how to implement this and maybe this is a suitable way?..: To find the the HHV for the last 10 days, AND the HHV for the last 10 to 20 days, AND the HHV for the last 20 to 30 days. And then the same thing for the LLV. Do you understand what I mean? Then if the HHV/LLV for these timeperiods don't deviate from each other that much, then I can assume that there is resistance/support for past 30 days at this level. I could divide the range into more/less timeperiods also, I don't know the best number of periods, I chose 3 to begin with. What do you think about this approach? Do you find anything that don't make sense about this? /***/ //THE CODE I HAVE COME UP WITH, //it's not finished by any means but you get my point hopefully //The syntax is probably not correct, this is some kind //of pseudo code I guess, I have just written this in notepad /***/ // First find the highest high values, And lowest low values for the 3 periods; 10 days ago, 10-20 days ago, and 20-30 days ago HHA=HHV(H,10,-1); //HHV of 10 days ago (for example 33) HHB=HHV(H,10,-10); //HHV of 10 to 20 ago (for example 32) HHC=HHV(H,10,-20); //HHV of 20 to 30 days ago (for example 34) LLA=LLV(L,10,-1); //LLV of 10 days ago (for example 27) LLB=LLV(L,10,-10); //LLV of 10 to 20 ago (for example 28) LLC=LLV(L,10,-20); //LLV of 20 to 30 days ago (for example 29) //Then caluculate the average of these HHVs and LLVs HHavg=(HHA+HHB+HHC/3);//(for example = 33) LLavg=(LLA+LLB+LLC/3); //(for example =28) //Then check to see if the averages of the three HHVs and //LLVs are not deviating too much, I chose 5% as example //of maximum deviation. //HHAvg is between HHV - 5% and HHV + 5% if ((HHavg (HHV(H,30) * 0.95)) AND (HHavg (HHV(H,30) * 1.05))) AND //LLAvg is between LLV - 5% and LLV + 5% if ((LLavg (LLV(L,30) * 0.95)) AND (LLavg (LLV(L,30) * 1.05))) { hChannel=TRUE; } //if they don't differ more than 5% there is a horizontal channel Filter=hChannel; //filter for stocks where hchannel is true //now plot the channel for stocks where hChannel=true //i.e. plot lines from HHavg and LLavg, AND plot lines //from HHV(H,30,-1) and LLV(L,30,-1) //then maybe explore stocks that break out of these //resistance levels. Haven't thought about this yet... //Code ends here Please could you give your opinion on this, I might have missed something or maybe I'm completely off track? Is there a better way to find horizontal support and resistance that I could use to find horizontal channels/ranges? Thank you very much for any help or suggestions or comments you can give! It's highly appreciated!
[amibroker] Re: Finding trading range/horizontal channel, can it be done like this?
Hi, thanks a lot for your help! It seems to work like that, thanks! Haven't succeeded to run this because I don't seem to get my if- statements correct either. The error message i get is Error 6. Condition in IF, WHILE, FOR statements has to be Numeric or Boolean type. You can not use array here, please use [] (array subscript operator) to access array elements.. :( Hopefully someone can solve this for me, I tried to do it in two ways but haven't really got it right.. :( /CODE Snippet //Averages of three HHVs and LLVs HHavg=(HHA+HHB+HHC/3); LLavg=(LLA+LLB+LLC/3); //Calculate 5% of HHV, both 5% more and 5% less HHmin=(HHV(H,30) * 0.95); HHmax=(HHV(H,30) * 1.05); LLmin=(LLV(L,30) * 0.95); LLmax=(LLV(L,30) * 1.05); //Now check to see if the averages of the three HHVs and //LLVs are not deviating too much from the min and max values, //I chose 5% as example of maximum deviation. //HHAvg is between HHV - 5% and HHV + 5% //LLAvg is between LLV - 5% and LLV + 5% //I tried to make this like a nested if-statement //HChannel is set as False to begin with... HChannel=False; if (HHavg HHmin) { if (HHavg HHmax) { if (LLavg LLmin) { if (LLavg LLmax) { hChannel=True; } } } } //Finally the filter for the exploration Filter=hChannel=True; --- In amibroker@yahoogroups.com, wlandry01 [EMAIL PROTECTED] wrote: Hi, I believe that you have included one too many arguments for HHV. Are you trying to use Ref with HHV? You can use the following simple code to see if this helps: HHB=Ref(HHV(C,10),-10); AddColumn(C,Close,1.2); AddColumn(Htest,Htest,1.2); Filter=1; I don't know if this will get you where you are trying to go or not but the syntax does appear to be a problem. Others who are much more familiar with AFL will, no doubt, be able to provide more insight. I would also check the AFL library as I seem to recall seeing some examples that address channels. TJ has some code there that deals with troughs and peaks, which is somewhat related to your subject. He has some excellent commentary included in the listing that you might find interesting and helpful: http://www.amibroker.com/library/detail.php?id=19 Wayne --- In amibroker@yahoogroups.com, carlacash26 carlacash26@ wrote: I want to plot a horizontal line from the Highest High Value and one from the Lowest Low Value for the past 30 days. In addition to this I want to have an exploration find stocks where the price has turned in the proximity of this line (support/resistance) over the past 30 days (or any period that I define). In other words I want to search for a horizontal channel that has lasted for past 30* days. I have thought about how to implement this and maybe this is a suitable way?..: To find the the HHV for the last 10 days, AND the HHV for the last 10 to 20 days, AND the HHV for the last 20 to 30 days. And then the same thing for the LLV. Do you understand what I mean? Then if the HHV/LLV for these timeperiods don't deviate from each other that much, then I can assume that there is resistance/support for past 30 days at this level. I could divide the range into more/less timeperiods also, I don't know the best number of periods, I chose 3 to begin with. What do you think about this approach? Do you find anything that don't make sense about this? /***/ //THE CODE I HAVE COME UP WITH, //it's not finished by any means but you get my point hopefully //The syntax is probably not correct, this is some kind //of pseudo code I guess, I have just written this in notepad /***/ // First find the highest high values, And lowest low values for the 3 periods; 10 days ago, 10-20 days ago, and 20-30 days ago HHA=HHV(H,10,-1);//HHV of 10 days ago (for example 33) HHB=HHV(H,10,-10); //HHV of 10 to 20 ago (for example 32) HHC=HHV(H,10,-20); //HHV of 20 to 30 days ago (for example 34) LLA=LLV(L,10,-1);//LLV of 10 days ago (for example 27) LLB=LLV(L,10,-10); //LLV of 10 to 20 ago (for example 28) LLC=LLV(L,10,-20); //LLV of 20 to 30 days ago (for example 29) //Then caluculate the average of these HHVs and LLVs HHavg=(HHA+HHB+HHC/3);//(for example = 33) LLavg=(LLA+LLB+LLC/3); //(for example =28) //Then check to see if the averages of the three HHVs and //LLVs are not deviating too much, I chose 5% as example //of maximum deviation. //HHAvg is between HHV - 5% and HHV + 5% if ((HHavg (HHV(H,30) * 0.95)) AND (HHavg (HHV(H,30) * 1.05))) AND //LLAvg is between LLV - 5% and LLV + 5% if ((LLavg (LLV(L,30) * 0.95)) AND (LLavg (LLV(L,30) * 1.05))) { hChannel=TRUE; } //if they don't differ more than 5% there is a horizontal channel Filter=hChannel; //filter for stocks where
[amibroker] Re: Filtering - close higher than highest high
Super! Thanks a lot! --- In amibroker@yahoogroups.com, Ara Kaloustian [EMAIL PROTECTED] wrote: Use Filter = C Ref(HHV(C,30),-1); This will exclude today close from the 30 bar high - Original Message - From: carlacash26 [EMAIL PROTECTED] To: amibroker@yahoogroups.com Sent: Monday, February 05, 2007 10:22 PM Subject: [amibroker] Filtering - close higher than highest high I'm having a problem with doing an exploration. I want to find stocks that close higher than the highest high value for past 30 days. This is what I have come up with: Filter=C HHV(C,30) I think the problem is that todays CLOSE is included in the HHV (C,30), so I should shift the HHV(C,30) to only include prices from 20 days earlier, one day ago. ??? Many thanks! Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
[amibroker] Filtering - close higher than highest high
I'm having a problem with doing an exploration. I want to find stocks that close higher than the highest high value for past 30 days. This is what I have come up with: Filter=C HHV(C,30) I think the problem is that todays CLOSE is included in the HHV(C,30), so I should shift the HHV(C,30) to only include prices from 20 days earlier, one day ago. ??? Many thanks!
[amibroker] Re: Automate System Scan E-Mail?
--- In amibroker@yahoogroups.com, inner_records [EMAIL PROTECTED] wrote: Hi, how can I automatically have Amibroker do a scan for system signals and e-mail me the results, for when I'm travelling? Has someone already written a script for this and is willing to share? Thanks so much for your help! I don't know if there is this functionality in Amibroker, hopefully the gurus here can tell you more. Look at this free service that lets you log on to your computer at home, from any computer with internet access. http://www.logmein.com. You could also do it with a macro. A macro is like a recording of the tasks you want to perform, and then run this recording on a scheduled basis. So you can record your computer to do your scan and then e-mail it to you. Then schedule our computer to do this every day at 4. I think theree are numerous macro-software out there.
[amibroker] Filtering with many criteria?
I have 5 criteria I want to filter in a explorer. I want a list of stocks that fill all of the 5 criteria. It doesnt't seem to work if I try to do it like this: Filter= (criteria1); Filter= (criteria2); Filter= (criteria3); Filter= (criteria4); Filter= (criteria5); Any idea? :(
[amibroker] Re: Filtering with many criteria?
Thanks both of you, seem to work better like that! :) --- In amibroker@yahoogroups.com, kailash pareek [EMAIL PROTECTED] wrote: hi, try this Filter= (criteria1)and(criteria2)and(criteria3) and (criteria4)and (criteria5); johnny --- carlacash26 [EMAIL PROTECTED] wrote: I have 5 criteria I want to filter in a explorer. I want a list of stocks that fill all of the 5 criteria. It doesnt't seem to work if I try to do it like this: Filter= (criteria1); Filter= (criteria2); Filter= (criteria3); Filter= (criteria4); Filter= (criteria5); Any idea? :( Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097
[amibroker] Re: patternexplorer?
How does this compare to patternexplorer.com? Thanks CC --- In amibroker@yahoogroups.com, paulradge [EMAIL PROTECTED] wrote: look up Pattern Recognition Exploration by Dimitris in the library http://www.amibroker.com/library/detail.php?id=105 - Original Message - From: carlacash26 To: amibroker@yahoogroups.com Sent: Monday, January 08, 2007 6:59 PM Subject: [amibroker] patternexplorer? Anyone tried the tools from patternexplorer.com. Are they good and worth the price? Are there any similar free tools?
[amibroker] Re: scan for trading ranges?
I would define a trading range like when price has bounced between a support and a resistance line X number of times over a X period of time. How would you define it? Is there any code available for anything like this? --- In amibroker@yahoogroups.com, Herman [EMAIL PROTECTED] wrote: It would depend on your definition of a trading range...almost anything precisely defined can be coded. herman -Original Message- From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of carlacash26 Sent: December 28, 2006 6:09 AM To: amibroker@yahoogroups.com Subject: [amibroker] scan for trading ranges? Is it possible to scan a large number of stocks to get a list of those who are currently in a trading range? Or is this very hard to accomplish? Are there any code available of such? Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
[amibroker] Re: scan for trading ranges?
Or could it be so that a relative high point and a relative low point, where prices have been reversing (with some % tolerance) for a X number of bars, these high and low points are stored and defined as the resistance levels. I'm kind of looking into breakouts from ranges. --- In amibroke [EMAIL PROTECTED], Prashanth [EMAIL PROTECTED] wrote: Hello, Instead of using Support / Resistances points which are different to each scrip, I would say that you better check out Boilinger Bands and Keltner Bands and see how you can code using them for determinnation of Trading Ranges. Cheers Prashanth - Original Message - From: carlacash26 To: amibroker@yahoogroups.com Sent: Thursday, December 28, 2006 5:36 PM Subject: [amibroker] Re: scan for trading ranges? I would define a trading range like when price has bounced between a support and a resistance line X number of times over a X period of time. How would you define it? Is there any code available for anything like this? --- In amibroker@yahoogroups.com, Herman psytek@ wrote: It would depend on your definition of a trading range...almost anything precisely defined can be coded. herman -Original Message- From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of carlacash26 Sent: December 28, 2006 6:09 AM To: amibroker@yahoogroups.com Subject: [amibroker] scan for trading ranges? Is it possible to scan a large number of stocks to get a list of those who are currently in a trading range? Or is this very hard to accomplish? Are there any code available of such? Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
[amibroker] Re: Jurik Moving Average JMA
Yes, I could share it, if someone is good at both .NET and AFL that could code it. Or otherwise efficient in reading code in any programming language and AFL. I'm having a trader/programmer who use .NET to test the indicator, I'll get back to you with results as to how good a clone it really is. I was told it was made from the JMA dll itself. Can't tell if it's true or not at this moment. /Carlacash26 --- In amibroker@yahoogroups.com, a a [EMAIL PROTECTED] wrote: Can you share the .net clone? Maybe somebody can help. carlacash26 [EMAIL PROTECTED] wrote: Hi, I'm lookng for a JMA clone for Amibroker. I have gotten a clone but it is written in .NET so I don't know how to implement it in AFL. - Everyone is raving about the all-new Yahoo! Mail beta.
[amibroker] Re: Jurik Moving Average JMA
I wonder how that formula compares to the other MA's? Anyone tested it in comparison to HULL, T3, JMA etc? Is it a good JMA clone? Would appreciate any results of such a comparison! /Carlacash --- In amibroker@yahoogroups.com, brpnw1 [EMAIL PROTECTED] wrote: Someone posted this about 3 or 4 years ago, here. I believe the original post may have been deleted. I have never used the real JMA, so I have nothing to compare it to, but it does work and is a bit tighter than Tillson's T3. So here it is again -- function JMA( array, per ) { TN1=MA(array,per); s1=0; for( i = 0; i per; i=i+1 ) { s1=s1+((per-(2*i)-1)/2)*Ref(array,-i); } return TN1+(((per/2)+1)*S1)/((per+1)*per); } k=Param(Period,15,1,100,1); J=JMA(C,k); ~B --- In amibroker@yahoogroups.com, carlacash26 carlacash26@ wrote: Hi, I'm lookng for a JMA clone for Amibroker. I have gotten a clone but it is written in .NET so I don't know how to implement it in AFL.
[amibroker] Re: Jurik Moving Average JMA
There is one for the jurik CCI, or what's it called. Also from the same source as the JMA. Haven't even looked at that... --- In amibroker@yahoogroups.com, a a [EMAIL PROTECTED] wrote: How about the other Jurik Tools. Are there clones for them as well. carlacash26 [EMAIL PROTECTED] wrote: I wonder how that formula compares to the other MA's? Anyone tested it in comparison to HULL, T3, JMA etc? Is it a good JMA clone? Would appreciate any results of such a comparison! /Carlacash --- In amibroker@yahoogroups.com, brpnw1 tradermail@ wrote: Someone posted this about 3 or 4 years ago, here. I believe the original post may have been deleted. I have never used the real JMA, so I have nothing to compare it to, but it does work and is a bit tighter than Tillson's T3. So here it is again -- function JMA( array, per ) { TN1=MA(array,per); s1=0; for( i = 0; i per; i=i+1 ) { s1=s1+((per-(2*i)-1)/2)*Ref(array,-i); } return TN1+(((per/2)+1)*S1)/((per+1)*per); } k=Param(Period,15,1,100,1); J=JMA(C,k); ~B --- In amibroker@yahoogroups.com, carlacash26 carlacash26@ wrote: Hi, I'm lookng for a JMA clone for Amibroker. I have gotten a clone but it is written in .NET so I don't know how to implement it in AFL. - Have a burning question? Go to Yahoo! Answers and get answers from real people who know.
[amibroker] Jurik Moving Average JMA
Hi, I'm lookng for a JMA clone for Amibroker. I have gotten a clone but it is written in .NET so I don't know how to implement it in AFL.
[amibroker] Automatically import EOD data from Interactive brokers?
Is it possible to automatically import EOD data from IB to Amibroker by using the IB-plugin?
[amibroker] Automatically import EOD data from Interactive brokers to Amibroker?
Is it possible to automatically import EOD data from Interactive brokers using the plugin for IB in Amibroker?
[amibroker] Nested if-statements
Hi! I have a system that has a few indicators. I want to code this in amibroker. I want a buy signal when all of the indicators acts in a specific way. When one of my indicators acts the way i like a variabel is set to true (or 1), when all of these are true, i want the buy signal. So when a,b,c, or d are == 1 then give buy signal. Is this done like this with nested if-statements? if (a == 1){ if (b == 1){ if (c == 1){ if (d == 1){ BUY-SIGNAL } } } } Thanks! Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[amibroker] Re: Nested if-statements
Thanks for the tip! I'll look into that, it seems much more straight forward. Don't worry, I'll ask for help if I get stuck! :) Thanks! Carla --- In amibroker@yahoogroups.com, Edward Pottasch [EMAIL PROTECTED] wrote: hi, you can do it like that but in Amibroker you can also work with arrays. So for instance: constraint1 = ...; constraint2 = ...; constraint1 and 2 are both arrays that contain 0 and 1. allconstraints = constraint1 AND constraint2; now allconstraints is an array that carries the values 0 when only 1 or neither constraint applies and it carries 1 when both constraints apply, So then: Buy = allconstraints; rgds, Ed - Original Message - From: carlacash26 To: amibroker@yahoogroups.com Sent: Thursday, October 12, 2006 1:40 PM Subject: [amibroker] Nested if-statements Hi! I have a system that has a few indicators. I want to code this in amibroker. I want a buy signal when all of the indicators acts in a specific way. When one of my indicators acts the way i like a variabel is set to true (or 1), when all of these are true, i want the buy signal. So when a,b,c, or d are == 1 then give buy signal. Is this done like this with nested if-statements? if (a == 1){ if (b == 1){ if (c == 1){ if (d == 1){ BUY-SIGNAL } } } } Thanks! Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[amibroker] Re: Advanced Trailing Stop
--- In amibroker@yahoogroups.com, zebdez [EMAIL PROTECTED] wrote: Does anyone have the AFL version of the MetaStock plugin for the Advanced Trailing Stop that is based on Chandelier Exit developed by Chuck Le Beau? I have enough information to develop it, but prefer to not re-invent the wheel. Thanks, Rob Please post your code if you find it or if you develop it yourself! Would be appreciated! Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[amibroker] Exrem / flip
Could someone please explain how to use the exrem / flip functions. I would like my system to NOT enter a trade if one trade is already placed for a particular stock. Would this do the trick? Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy); Short = ExRem(Short, Cover); Cover = ExRem(Cover, Short); What if I want to use a trailing stop loss instead of a sell signal to close trades? Or both a trailing tops and a sell signal? Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/