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

Re: [amibroker] HowTo - Paint 'Band' or Ribbon on bottom of chart, and othe plotting questions.



PureBytes Links

Trading Reference Links

Thank Terry !!   

----- Original Message ----
From: Terry <MagicTH@xxxxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, January 7, 2007 9:21:33 PM
Subject: RE: [amibroker] HowTo - Paint 'Band' or Ribbon on bottom of chart, and othe plotting questions.









  


    
            I have time for your first question:



Plot(IIf(array > 0,array,Null) ,color...



Actually your 2nd question is easy too:



array2 == True or False;

Plot(array2, "array2", colorWhatever, styleArea | styleOwnScale, 0, 10);

//The above makes a band 10% of your screen height.

//To make is 1/20th of your screen use 0,20



Alternative for arrays such as an oscillator that may be + or -

Plot(1,"array3" ,IIf(array3 > 0,colorGreen, colorRed) ,styleArea |

styleOwnScale, 0, 10);



Variations come go from there. To do several bands, you can vary the last

two parameters, such as -2,8. You will have to "play" with the values to get

them all in the right place.



If you search the archives a couple of months (or more) back for heat map

you will find some code that does this.

--

Terry

-----Original Message-----

From: amibroker@xxxxxxxxx ps.com [mailto:amibroker@xxxxxxxxx ps.com] On Behalf

Of wes_zoltran2

Sent: Sunday, January 07, 2007 19:00

To: amibroker@xxxxxxxxx ps.com

Subject: [amibroker] HowTo - Paint 'Band' or Ribbon on bottom of chart, and

othe plotting questions.



Hello

Struggling with some plotting questions, and hoping the group can help

me out. 



1) .. how to plot 'nothing'.  Or maybe better phrased... I want the

background color and existing plots to show 'thru' when the array has

a 0 or null in it. 



Using something like  Plot(array," ",IIf(array= 1,colorBlack, colorWhite) ..

sort of does it, but what I really want is 'colortransparent' for the

false case.  Can this be done? 



2) How would would one program a narrow 'paint band' across the

bottom/top of a chart similar to what the folks at PatternExplorers do

?  See the bottom of the price chart at

http://www.patterne xplorer.com/ price-chart. html  for an example. 



I have a need for several of these 'status bands'.

I've tried various combinations of styleownscale, and styleleftaxis,

but  don't really like what I've got so far. 



3) Along the same lines .. 

What is the best way to change the color of a chart background for

just a certain time/date range .. for example .. how would I color the

background to show price> ema(C,21) for example.



I kind of have this working now, using styleownscale, and the scale of

0 to 1. but it overwrites the chart grid lines, which is not what I want.



thanks in advance !



Wes



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.amibroke r.com/devlog/



For other support material please check also:

http://www.amibroke r.com/support. html

 

Yahoo! Groups Links





    
  

    
    




<!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;
color:#666;
text-align:right;
}
#ygrp-actbar .left{
float:left;
white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;
font-size:77%;
padding:15px 0;
}
#ygrp-ft{
font-family:verdana;
font-size:77%;
border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;
}

#ygrp-vital{
background-color:#e0ecee;
margin-bottom:20px;
padding:2px 0 8px 8px;
}
#ygrp-vital #vithd{
font-size:77%;
font-family:Verdana;
font-weight:bold;
color:#333;
text-transform:uppercase;
}
#ygrp-vital ul{
padding:0;
margin:2px 0;
}
#ygrp-vital ul li{
list-style-type:none;
clear:both;
border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;
color:#ff7900;
float:right;
width:2em;
text-align:right;
padding-right:.5em;
}
#ygrp-vital ul li .cat{
font-weight:bold;
}
#ygrp-vital a {
text-decoration:none;
}

#ygrp-vital a:hover{
text-decoration:underline;
}

#ygrp-sponsor #hd{
color:#999;
font-size:77%;
}
#ygrp-sponsor #ov{
padding:6px 13px;
background-color:#e0ecee;
margin-bottom:20px;
}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;
margin:0;
}
#ygrp-sponsor #ov li{
list-style-type:square;
padding:6px 0;
font-size:77%;
}
#ygrp-sponsor #ov li a{
text-decoration:none;
font-size:130%;
}
#ygrp-sponsor #nc {
background-color:#eee;
margin-bottom:20px;
padding:0 8px;
}
#ygrp-sponsor .ad{
padding:8px 0;
}
#ygrp-sponsor .ad #hd1{
font-family:Arial;
font-weight:bold;
color:#628c2a;
font-size:100%;
line-height:122%;
}
#ygrp-sponsor .ad a{
text-decoration:none;
}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;
}
#ygrp-sponsor .ad p{
margin:0;
}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;
}
#ygrp-text tt{
font-size:120%;
}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
-->






Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.7/618 - Release Date: 1/6/2007 7:47 PM