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

[EquisMetaStock Group] Re: How to Test and validate Current Date



PureBytes Links

Trading Reference Links

Amit, I am completely and utterly baffled as to how you can offer 
"MetaStock Programming for only US$30/hr" and "MetaStock Language 
Programming Course via Emails", if you can't deal with such a simple 
and basic MetaStock programming task.

Anyway, this is the easiest way to display signals (only) on the last 
bar:

YourCondition AND Cum(1)=LastValue(Cum(1))


jose '-)
http://www.metastocktools.com



--- In equismetastock@xxxxxxxxxxxxxxx, "Athena 
Research" <athena.investments@xxx> wrote:
>
> Dear All,
> 
> I have an expert advisor for real time data. It takes values from
> an Indicator. I would like to show Buy/sell signal for today only
> and previous all days signals should not be displayed. How can I
> write the code that it should display signals Today only and all
> previous days should not be displayed. 
> 
> What I had written I am pasting below but sometimes it shows
> signals for previous days. A signal may appear for any previous day
> not necessarily yesterday only. 
> 
> If(DayOfMonth()<> Ref(DayOfMonth(), -1) AND Month() AND 
> ExtFml( "AthenaDLL.BuySignal") = 1 AND
> ExtFml( "AthenaDLL.BuySignal") <> 0 , {then} 1, {else} 0)
> OR
> If(Ref(DayOfMonth(), -1) AND Month() AND 
> ExtFml( "AthenaDLL.BuySignal") = 1 AND
> ExtFml( "AthenaDLL.BuySignal") <> 0 , {then} 0, {else} 0)
> 
> 
> Any suggestions for testing today's date only and not displaying
> any previous date?
> 
> 
> Thanks and Regards,
> Amit Trivedi
> President & CEO
> Athenasolutionz.com - "We sell hope, in the stock market."











------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/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/