[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Was May 6, 2003 a non-trading day in the US?



PureBytes Links

Trading Reference Links

Hi Marty,

This code, with which I use a LightGrey background, should help move you
along. I also suggest you do all the chart-related tutorials and check out
William Peter's site: www.amitools.com

<clip>
MAPeriod1=Param("MAl",50,5,100,5);
MAPeriod2=Param("MA2",200,100,300,20);
MA1=MA(Close,MAPeriod1);
MA2=MA(Close,MAPeriod2);
MAdiff=MA1-MA2;
Plot(Close,"C",colorBlack,styleCandle|styleOwnScale|styleLeftAxisScale,5,500
);
Plot(MA1,"MA(C,"+WriteVal(MAPeriod1,1)+")",colorBlue,1|styleOwnScale|styleLe
ftAxisScale,5,500);
Plot(MA2,"MA(C,"+WriteVal(MAPeriod2,1)+")",colorOrange,1|styleOwnScale|style
LeftAxisScale,5,500);
Plot(MAdiff,"MAdiff",colorGreen,styleNoLine|styleOwnScale|styleNoLabel);
Plot(V,"Volume",IIf(C>=Ref(C,-1),colorLightBlue,colorWhite),styleHistogram|s
tyleOwnScale);
Buy=Cross(MA(Close,MAPeriod1),MA(Close,MAPeriod2));
Sell=Cross(MA(Close,MAPeriod2),MA(Close,MAPeriod1));
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone) ,colorBrightGreen);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed);
<clip>

-john
----- Original Message ----- 
From: "prog200" <prog200@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, April 09, 2004 6:21 PM
Subject: [amibroker] Re: Volume color


Got the vol plot to work but how do you over lay the price, ma ect
onto it?

Thanks

Marty

--- In amibroker@xxxxxxxxxxxxxxx, "john gibb" <jgibb1@xxxx> wrote:
> whoops, should be:
>
> Plot(V,"Volume",IIf(C>=Ref(C,-
1),colorBlack,colorRed),styleHistogram);
>
> -john
> ----- Original Message ----- 
> From: "john gibb" <jgibb1@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, April 09, 2004 4:09 PM
> Subject: Re: [amibroker] Volume color
>
>
> Hi Marty,
>
> Try this:
>
> Plot(V,"Volume",IIf(C>=Ref(C,-
),colorBlack,colorRed),styleHistogram);
>
> -john
> ----- Original Message ----- 
> From: "prog200" <prog200@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, April 09, 2004 1:54 PM
> Subject: [amibroker] Volume color
>
>
> Is there a way to change the volume so the up spikes are black and
> down are red.
>
> Thanks
>
> Marty
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links








------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/