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

RE: [amibroker] Line thickness



PureBytes Links

Trading Reference Links

The Plot(C...) was just added to show a price chart. You don't need it. It
was just a quick example and you are correct; properly used you should
divide the offset by 2 and add it to the first two price arguments and
subtract it from the second two price arguments.  That way your wide line
would be more accurately positioned, which may become important when using
very think lines:


function wPlot( Pr, Txt, Co, St )
{
    Thickness = 0.01 / 2;
     PlotOHLC(Pr+Thickness,Pr+Thickness,Pr-Thickness,Pr-Thickness,"",Co,styl
eCloud);
}

wPlot(C,"",ColorWhite,StyleLine);

h
  -----Original Message-----
  From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
Behalf Of toxutao
  Sent: December 1, 2006 6:48 AM
  To: amibroker@xxxxxxxxxxxxxxx
  Subject: Re: [amibroker] Line thickness


  Hi, Herman


  What is the use of     Plot(C,"",1,128);    here ?  If I delete this line,
I find the code act as well.

  Also, in PlotOHLC line, argument High=pr, low=p+0.005, high is bigger than
low ? Is this correct ?

  thanks /tom_itmwh

    ----- Original Message -----
    From: Herman
    To: amibroker@xxxxxxxxxxxxxxx
    Sent: Friday, December 01, 2006 6:28 PM
    Subject: RE: [amibroker] Line thickness


    You can plot lines of any given thickness using StyleCloud:

    function wPlot( Pr, Txt, Co, St )
    {
    PlotOHLC(Pr,Pr,Pr+0.005,Pr+0.005,"",Co,styleCloud);
    }

    Plot(C,"",1,128);
    wPlot(C,"",2,1);

    best regards,
    herman

    -----Original Message-----
    From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
    Behalf Of cstrader
    Sent: November 30, 2006 7:03 PM
    To: amibroker@xxxxxxxxxxxxxxx
    Subject: Re: [amibroker] Line thickness

    I don't think you can change the line thickness. I fake it however with
a
    homebuilt function:
    Maybe this will help?
    function Drawthickline(Startpoint, DrawColor)

    {

    Offset = 0.01;

    if (ST == "ER")

    {Offset = .001;}

    if (ST == "YM")

    {Offset = .3;}

    if (ST == "EU" OR ST == "FG" OR ST == "AU" OR ST == "GB")

    {Offset = .000001;}

    Plot(Startpoint, "", DrawColor, 5);

    Plot(Startpoint+Offset, "", DrawColor, 5+4096);

    Plot(Startpoint+Offset, "", DrawColor, 5+4096);

    Plot(Startpoint+Offset, "", DrawColor, 5+4096);

    Plot(Startpoint+Offset, "", DrawColor, 5+4096);

    }

    ----- Original Message -----
    From: "Bruce Hawkins" <hawkinsk001@xxxxxxxxxxxxx>
    To: <amibroker@xxxxxxxxxxxxxxx>
    Sent: Thursday, November 30, 2006 3:43 PM
    Subject: [amibroker] Line thickness

    > Plot( StochD( 35 , 10 , 1 ), "StochD - 3",
    > colorBlack,styleNoLabel,styleThick);
    >
    > In the above, how can I increase the thickness of the line?
    >
    > 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



  

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.15.3/562 - Release Date: 12/1/2006 1:12 PM