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

Re: [amibroker] Re: draw stop loss



PureBytes Links

Trading Reference Links

Hello,

Color can be an array - that's how, for example, price/volume bars can be 
colored for up/down days. The code should work if you fill in the name of 
your background color.

You can also draw individual horizontal lines at each day ( looks good when 
plotting stops! ) by using this method:

Color = Iif( Stop != 0, colorBlue, your background color );
Plot( Close, "Close", colorBlack, styleCandle );
PlotOHLC( Stop, Stop, Stop, Stop, "Stop", Color, StyleCandle );

Steve

----- Original Message ----- 
From: "archstone2003" <archstone2003@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, June 03, 2005 2:35 AM
Subject: [amibroker] Re: draw stop loss


> The color parameter is expected to be a single value, not an array, I
> think.
>
> But thank you for your help anyway.
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Steve Dugas" <sjdugas@xxxx> wrote:
>> How about something like this?
>>
>> Color = Iif( Stop != 0, colorBlue, your background color );
>> Plot( Stop, "Stop", Color, StyleDots|StyleNoLine );
>>
>> Steve
>>
>> ----- Original Message ----- 
>> From: "archstone2003" <archstone2003@xxxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Thursday, June 02, 2005 2:11 PM
>> Subject: [amibroker] draw stop loss
>>
>>
>> > Hi,
>> >
>> > Suppose I have calculated an array for stop losses (for either
> long or
>> > short trade), how do I draw it along with price?
>> >
>> > I don't want to draw a continues line, I know how to do that. In
> the
>> > stop loss array, if there is no trade signal (or if ther is no
> open
>> > trade) based on my system, the stop loss value for that day is 0,
>> > otherwise I calcualte a value for that day, how can I draw the
> stop
>> > loss only when it value is not 0?
>> >
>> > I tried PlotShape but I couldn't find a shape that is small
> enough for
>> > this drawing purpose -- they are too big to fit with the price
> chart.
>> >
>> > 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 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 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/

<*> 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/