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

[amibroker] Re: I GIVE UP with this to code



PureBytes Links

Trading Reference Links

Hello Dingo,

The problem is How to specify the point where I need the line to be 
start from.

Here is the code I try.

----------------------------------


			Cond = C > Ref(H,-3);
			Line = Cond;
			A = Line ;

			VerticalLineLimit = 5;
			VerticalLineColor = colorBlue;

//-----------------------------------------------------------

		_SECTION_BEGIN("Line HIGHLIGHT");

			BGAREAON = ParamToggle("BG AREA 
ON/OFF","ON,OFF",0);
			Limit = Param("VERTICAL LINE 
LIMIT",VerticalLineLimit);
			VerticalLineColor = ParamColor("VERTICAL LINE 
COLOR",VerticalLineColor);

		_SECTION_END();

//------------------------------------------------------

			LineA = ValueWhen(A,H);

			LineALim = BarsSince(A)>Limit;

			LineAVal = (LineALim AND Ref(LineALim,-1)==0);

			LineAJump = LineA!=Ref(LineA,1);

			Plot( IIf( BGAREAON | LineAJump OR 
LineALim,Null, LineA), "", VerticalLineColor, styleStaircase);
			top = IIf( BGAREAON | LineAJump OR 
LineALim,Null, LineA); 

//---------------------------------------------------------

This is the point explanation:

I would like to plot Limited Horizontal line from the high of previous
candle High and if the current candle High lowers then the previous
High the Line will move to it, till the candle close above Horizontal
line.

-------------


Regards


--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxx> wrote:
>
> What code?  Please include the text/code you're referring to. No 
one wants
> to go searching for your messages.
> 
> Finally, most around here are not going to keep coding stuff for 
you if you
> don't show some effort and make some progress on your own.  
> 
> d
> 
> > -----Original Message-----
> > From: amibroker@xxxxxxxxxxxxxxx 
> > [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Mohammed
> > Sent: Saturday, March 08, 2008 12:30 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] I GIVE UP with this to code
> > 
> > Hi all,
> > 
> > Any helping hand there.  Please don't direct me to the help 
> > or user KB. 
> > I GIVE UP with this to code.
> > 
> > I would like to plot Limited Horizontal line from the high of 
> > previous 
> > candle High and if the current candle High lowers then the 
previous 
> > High the Line will move to it, till the candle close above 
Horizontal 
> > line.
> > 
> > Regards.
> > 
> > 
> > 
> > 
> > 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

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