Announcement

Collapse
No announcement yet.

thx for tick interval script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • thx for tick interval script

    Alex,
    Thanks for the tick interval RegularTradingHours script. It worked fine on first pass. Sorry, that my second thread was sent prior to receiving your email, which had already been sent to me, but I get email on another machine that I don't check until after trading hours. Next I'm going to try using that same script on time interval data just to see if it works there too, instead of the EOD version. Then on to the next hiccup as I gradually pick up the idiom of EFS, which seems very "loose" compared to the coding styles I was trained in years ago. I could never have imagined that a machine could decipher (!Alert). :-)
    Thanks again.
    Tilmon

  • #2
    Tilmon
    You are most welcome.
    The script will work also with interval based charts if these are based on a Time Template that includes all sessions. If instead the Time Template is set to regular trading hours only then you need to use the day(0)!=day(-1) conditional statement.
    To allow the script to close the trades at the end of the day in either case replace
    if(!AllowTrading){
    with the following
    if(!AllowTrading || (AllowTrading && day(0)!=day(-1))){
    Alex

    Comment

    Working...
    X