Need year month day hour minute as one number.
So I can compare as bars go by
(1) Please define BUY4DATE
(2) Please define SELL5DATE
(3) So I can use in compare like
if(SELL5DATE > BUY4DATE) { then calc %gain}
...........EXAMPLE....................
if(close(0) > 6MA)
{
BUY4DATE = ???? that has year,month,day,hour,minute of the
current bar
}
PS: I do not want some one to do a new study
Just want to know how to define a bar's year,month,day,hour,minute as "one number"
So I can compare as bars go by
(1) Please define BUY4DATE
(2) Please define SELL5DATE
(3) So I can use in compare like
if(SELL5DATE > BUY4DATE) { then calc %gain}
...........EXAMPLE....................
if(close(0) > 6MA)
{
BUY4DATE = ???? that has year,month,day,hour,minute of the
current bar
}
PS: I do not want some one to do a new study
Just want to know how to define a bar's year,month,day,hour,minute as "one number"
Comment