What are the DEFPARAMs for starting and closing the market per day?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #161261 quote
    macdopamacdopa
    Participant
    Average

    What are the DEFPARAMs for starting and closing the market per day?
    How to leave the market at a fixed end time (Exit-Market) and return at a specified time (Return) from the market in a strategy using daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
    The idea is to start the market at 6:00 am and close at 9:00 pm and so on every working day (Monday to Friday).
    Thanks…

    #161265 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    DEFPARAM FlatBefore = 090000

    will make sure no trades are entered BEFORE that time, but the strategy is ALWAYS executed in all cases and conditions evaluated.

    DEFPARAM FlatAfter = 180000

    will make sure no trades are left open AFTER that time, but the strategy is ALWAYS executed in all cases and conditions evaluated.

    #161864 quote
    macdopamacdopa
    Participant
    Average

    Thanks

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

What are the DEFPARAMs for starting and closing the market per day?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
macdopa @macdopa Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by macdopamacdopa
5 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/13/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...