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
    macdopa
    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
    robertogozzi
    Moderator
    Master
    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
    macdopa
    Participant
    Average

    Thanks

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

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

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