Trade times long and short?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #131909 quote
    bullbear
    Participant
    Senior

    How do i write the code if i want short to trade between 10:00 and 14:00.

    Long will trade at all other times.

    Can this work for short?

    timeok1 = NOT(time < 100000 AND time > 140000)

    And code för Long att all other times.

    timeok = NOT(time > 100000 AND time <140000)
    #131916 quote
    bullbear
    Participant
    Senior

    I solved it myself 🙂

    #178462 quote
    Suzu Yuk
    Participant
    Average

    Good idea!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Trade times long and short?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
bullbear @bullbear Participant
Summary

This topic contains 2 replies,
has 1 voice, and was last updated by Suzu Yuk
4 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/17/2020
Status: Active
Attachments: No files
Logo Logo
Loading...