Trade times long and short?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #131909 quote
    bullbearbullbear
    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
    bullbearbullbear
    Participant
    Senior

    I solved it myself šŸ™‚

    #178462 quote
    Suzu YukSuzu Yuk
    Participant
    Average

    Good idea!!

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 YukSuzu Yuk
5 years ago.

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