As you did in your code use iif() to differentiate
color but incorporate the value of the stops. For example, for an n-bar
stop:
iif(sell == 5, colorwhite,
colorred)
Bill
----- Original Message -----
Sent: Tuesday, December 09, 2008 11:34
AM
Subject: [amibroker] Re: Plot
Uniquely-Colored Stops?
Well, all I see there is a comment at the bottom saying to
apply the following code below the Applystop formula in Indicator
Builder:
"Equity(1); // THIS EVALUATES
STOPS
Plot(Sell==4,"ApplyStop
Sell",colorRed,1|styleOwnScale); Plot(Cover==4,"ApplyStop
Cover",colorGreen,1|styleOwnScale);"
This doesn't appear to be what I
need (though I tried it anyway). In case I didn't make myself clear,
I just want to differentiate n-bar stops from regular sells by giving them
differently colored arrows (something other than red) when I plot my
backtesting results. I assume this would be done by altering or
adding to the PlotShapes code I already posted.
Sorry if
this is a basic question--I've tried to find/figure out the answer, but
haven't had luck. Obviously, I'm no AFL wiz.
Thanks,
Grant
--- In amibroker@xxxxxxxxxxxxxxx,
"wavemechanic" <timesarrow@xxx> wrote: > > The
visualization of stops is discussed in the ApplyStop() section of the
Users Guide. > > Bill > ----- Original Message
----- > From: longarm61 > To: amibroker@xxxxxxxxxxxxxxx
> Sent: Monday, December 08, 2008 3:09
PM > Subject: [amibroker] Plot Uniquely-Colored
Stops? > > > I'm hoping this is an easy
one. Couldn't search for the answer here > as the
"search server is busy"...again. > > How would I
change or add to this code... > > shape = Buy *
shapeUpArrow + Sell * shapeDownArrow; > PlotShapes( shape,
IIf( Buy, colorGreen, colorRed ),0, IIf( Buy, Low, >
High ) ); > > ...so that stop sells (say, n-bar
stops) have a different shape/ color > than regular ol'
buys & sells? > > Thanks in advance, >
> Grant > > > >
> ------------------------------------ >
> **** IMPORTANT **** > This group is for
the discussion between users only. > This is *NOT* technical
support channel. > >
********************* > TO GET TECHNICAL 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 > > > > > >
------------------------------------------------------------------------------ >
> > > No virus found in this incoming
message. > Checked by AVG - http://www.avg.com > Version:
8.0.176 / Virus Database: 270.9.15/1838 - Release Date: 12/8/2008 6:16
PM >
------------------------------------
****
IMPORTANT **** This group is for the discussion between users only. This
is *NOT* technical support channel.
********************* TO GET
TECHNICAL 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
<*> 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:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*>
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/
No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus
Database: 270.9.15/1839 - Release Date: 12/9/2008 9:59
AM
__._,_.___
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL 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
*********************************
__,_._,___
|