Hi, I'd like to grab the current day of the week for the current candle. I used the code below and it grabbed the current date from my PC's clock. I'm doing this so I can cut my positon in 1/2 on fridays and mondays. Thanks!
daynow = new Date(); //dont work
if (
daynow.getDay() == 5
) onAction3()
thanks always
Geoff
daynow = new Date(); //dont work
if (
daynow.getDay() == 5
) onAction3()
thanks always
Geoff
Comment