Until a coder gets back to you, review this:

if(interval() == inDaily OR interval() == inMonthly OR interval() ==
inweekly)

SYNTAX  interval( format = 0 )  
RETURNS NUMBER  
FUNCTION  Interval() function returns bar interval. 
Possible formats: format = 0 - returns bar interval in seconds format = 1 - as 
above plus TICK bar intervals are returned with negative sign so Interval() 
function applied to 10 tick chart will return -10 format = 2 - returns STRING 
with name of interval such as "weekly/monthly/daily/hourly/15-minute/5-tick" 

Example time intervals in seconds: 
tick bars = 0
5 sec bars = 5
1 min bars = 60 (inMinute constant)
hourly bars = 3600
daily bars = 86400 (inDaily constant)
weekly bars = 432001 (inWeekly constant) 
monthly bars = 2160001 (inMonthly constant) 
 




--- In [email protected], "Vinay Gakkhar." <vgakk...@...> wrote:
>
> Can some learned member of this group help me in a coding problem that I am 
> facing?
> 
> I download end-of-day data on some days, and whole-day or part-of-the-day 
> intraday data plus EOD data on some other days. I use PlotShape to alert me 
> visually,and AlertIf to give me audio & email alerts when rate of change 
> between current bar's price & previous bar's price is above or below my 
> specified percentage.
> 
> I want to code in such a way that I get alerts when this percentage for 
> intraday data is 0.3% and is 3.0% while analysing EOD data.
> 
> Can someone please write this part of the code for me?
> 
> Thank you.
> 
> Vinay Gakkhar
>


Reply via email to