Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
By using this site, you agree to our Terms of Use.
How to Identify Last Trading Day of Month in EL?
in TradeStation
Posted
With this is enougth. Works in intraday bar.
//Calculo de la sesion del mes
If time = 0005 and month(date) <> month(date[1]) then Sesion = 1
Else If time = 0005 then Sesion = Sesion[1] + 1
Else Sesion = Sesion[1];