Search the web
Sign In
New User? Sign Up
amibroker · AmiBroker User's List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Getting New High-New Low data into AB using AmiQuote?   Message List  
Reply | Forward Message #116405 of 143805 |
Re: Getting New High-New Low data into AB using AmiQuote?

The answer is No as far as Yahoo is concerned. You can develop your
own using the complete US-Stocks database (Hemscott) using th
following formula:

Dick H

// Breadth of Stocks
// Develops 4 composites that can be plotted or manipulated as you wish
// How to Run
// 1) Select Group - Stocks or Market -NYSE,Nasdq, AMEX
// 2) Select an issue with a long history in the current ticker window
// 3) Set APPLY TO to use filter Market - Stocks
// 4) Set RANGE to one bar... 1 n last quotations
// 5) Press SCAN

//===================52 Weeks New High
-Lows==================================
NHi = (C> HHV(Ref(C,-1),250));
NLo = (C< LLV(Ref(C,-1),250));
AddToComposite(IIf(C > HHV(Ref(C, -1), 250), 1,0), "~StocksNewHi",
"X"); //Find New Highs over the past 52 weeks.
AddToComposite(IIf(C < LLV(Ref(C, -1), 250), 1,0), "~StocksNewLo",
"X"); //Same for lows next.
NewHigh = Foreign("~StocksNewHi","X");
NewLow = Foreign("~StocksNewLo","X");

DIFF_H_L = NewHigh-NewLow;

//Plot(NewHigh,"NewHigh",colorGreen,styleThick);
//Plot(NewLow,"NewLow",colorRed,styleThick);
//Plot(Diff_H_L,"Diff_H_L",colorPlum,styleThick);

//===================Advance/Decline Issues
AddToComposite(C>Ref(C,-1),"~StocksAdv","X");
AddToComposite(C<Ref(C,-1),"~StocksDec","X");
AddToComposite(C==Ref(C,-1),"~StocksNC","X");

Adv = Foreign("~StocksAdv","X");
Dec = Foreign("~StocksDec","X");
NC =Foreign ("~StocksNC","X");
DIFF_A_D = Adv-Dec;
ADRatio = IIf(Dec>Adv,(Dec*-1)/Adv,Adv/Dec);
Plot(Adv,"Adv",colorBlack,styleLine);
Plot(Dec,"Dec",colorBrown,styleLine);
//Plot( Adv-Dec, "Adv/Dec Histogram", IIf(Adv-Dec >
0,colorBrightGreen,colorRed ), styleNoTitle | ParamStyle("Histogram
style", styleHistogram | styleNoLabel, maskHistogram ));
Plot(Diff_A_D,"Diff_A_D",colorBlack,styleThick);
Plot(ADRatio,"AdvanceDeclineRatio",colorDarkBlue,styleHistogram);
GraphXSpace = 2;
Filter = C;
Buy = Sell = 0;

Result = WriteIf(Buy,"Buy","Sell");
//AddTextColumn( WriteIf(Buy, "Buy" , "Sell" ) , "TRADE" , 5 ,
IIf(Buy,colorYellow, colorWhite), IIf(Buy, colorDarkGreen,
colorDarkRed) );
AddTextColumn(Result,"Trade",
formatChar,IIf(Buy,colorDarkGreen,colorLightYellow ),
IIf(Sell,colorLightYellow,colorLime));
//AddTextColumn(Result,"Trade",
formatChar,IIf(Buy,colorDarkGreen,colorRed ),
IIf(Sell,colorLightYellow,colorLime));
AddTextColumn(FullName(),"Full name",77,colorPlum, IIf(Close
<1.00,colorYellow,colorDefault ) );
AddTextColumn(IndustryID(1) ," Industry Sector ", 25.0,
colorWhite, colorBlue);
AddColumn( Close, "Close", 1.2, IIf( ROC(C, 1 ) >= 0,
colorDarkGreen,colorRed ),50 );
AddColumn(NHi,"52 Wk High",1.2,colorBrown);
AddColumn(NLo,"52 Wk Low",1.2,colorDarkBlue);
//AddColumn ((NHi-NLo/NHi)*100,"% Dif Hi_Lo", 3.2,
colorYellow,colorGreen);
AddColumn( ( (HHV(C,252))-LLV(C,252))/(HHV(C,252))*100,"% Dif Hi_Lo",
3.2, colorYellow,colorGreen);
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
_SECTION_END();

--- In amibroker@yahoogroups.com, "peakwk79" <phaser2679@...> wrote:
>
> Hi, does anyone know how to get the data into AB using AmiQuote or
> another free source?
>
> Thanks in advance!
>





Wed Oct 24, 2007 5:34 pm

areehoi
Offline Offline
Send Email Send Email

Forward
Message #116405 of 143805 |
Expand Messages Author Sort by Date

Hi, does anyone know how to get the data into AB using AmiQuote or another free source? Thanks in advance!...
peakwk79
Offline Send Email
Oct 24, 2007
12:09 pm

The answer is No as far as Yahoo is concerned. You can develop your own using the complete US-Stocks database (Hemscott) using th following formula: Dick H //...
areehoi
Offline Send Email
Oct 24, 2007
5:34 pm

photo photo2 photo3...
phaser2679
peakwk79
Offline Send Email
Oct 25, 2007
11:53 am

photo photo2 photo3...
phaser2679
peakwk79
Offline Send Email
Oct 25, 2007
4:10 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help