currentdate = datenum();
previousdate = Ref(datenum(),1);


On 08/26/2010 1:32 AM, isalert wrote:

hi,all

i wanna get current bar's date and previous bar's date and compare with each other,if current bar's date equals previous bar's date ,return 1,else return 0.

i write this code,but compilation error,

date()=ref(datenum(),-1)

so how to achieve my goal?


Reply via email to