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

Re: [EquisMetaStock Group] Highlighting a point "x" number of days away?



PureBytes Links

Trading Reference Links

Roy,

Yet again, Thanks :-)

And even though I've never used the Expert Advisor before, I've 
managed to complete this task.

Thanks again Roy...........

Chorlton




--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> 
wrote:
>
> Hi Chorlton
> 
> 
> One way of identifying the last bar of a data array or chart is 
this.
> LastValue(Cum(1))=Cum(1);
> 
> You could accumulate almost any small whole number within both Cum
() functions and it would work just as well. Accumulating "1" can be 
useful in other ways, such as identifying any bar number within an 
array. With a small adjustment to the above code you can locate and 
mark the bar X bars before the last bar.
> LastValue(Cum(1))-X=Cum(1);
> 
> The last bar could also be defined as
> LastValue(Cum(1))-0=Cum(1);
> 
> So to find the bar 10 bars before the last bar (11th from last) 
you would use.
> LastValue(Cum(1))-10=Cum(1);
> 
> Since the constant, 10 in this case, isn't used as the periods 
parameter in a function it can be calculated as a variable to 
provide a variable marker point for different charts. Of course it 
must still be a whole number, or the test for equality will fail.
> 
> To mark the required bar you could create a symbol in the expert 
forming part of your default template (or add an expert to the 
template if you don't already have one), and use the code as the 
condition for displaying your chosen symbol.
> 
> Hope this helps.
> 
> 
> Regards
> 
> Roy
> 
> 
> 
> 
> 
>  
> ----- Original Message ----- 
> From: chorlton_c_hardy 
> To: equismetastock@xxxxxxxxxxxxxxx 
> Sent: Tuesday, October 18, 2005 12:02 AM
> Subject: [EquisMetaStock Group] Highlighting a point "x" number of 
days away?
> 
> 
> Hi All,
> 
> 
> I have a question and would welcome any help / advice. 
> 
> I currently have a template in Metastock which contains 4 windows. 
> Window 1 contains an oscillator (with 2 MA lines), Window 2 
contains 
> price data & some MA's, Window 3 contains volume and Window 4 
> contains a RSI.
> 
> I would like to find some way of highlighting a point on the chart
> (in windows 1 & 2) that is "x" number of days back from the 
current 
> day. I don't mind how this is achieved but if possible some form 
of 
> symbol such as an coloured arrow or something similar would be 
useful.
> 
> At the moment, I am having to physically count back x number of 
days 
> which is very time consuming especially considering the number of 
> charts I am currently looking at.
> 
> Therefore, what is the easiest way to highlight this point in 
time??  
> 
> 
> Many thanks in advance,
> 
> Chorlton
> 
> 
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------------------
-------------
> YAHOO! GROUPS LINKS 
> 
>   a..  Visit your group "equismetastock" on the web.
>     
>   b..  To unsubscribe from this group, send an email to:
>    equismetastock-unsubscribe@xxxxxxxxxxxxxxx
>     
>   c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
> 
> 
> -------------------------------------------------------------------
-------------
>








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/