Exclude trading over Summer/Dec

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8882 quote
    K12AN
    Participant
    Junior

    Is there a way prevent trading over Summer (June-August) and December?

    If I can select specific weeks then that is even better – as I would ideally stop on 2nd Week of June and resume on 2nd week of Sept.

    Similarly I would stop on 2nd week of Dec and resume in 2nd Week of Jan.

    #8883 quote
    Adolfo
    Participant
    Senior

    To exclude full months is something like this:

    IF MONTH>=6 AND MONTH<=8 OR MONTH = 12 THEN //No trading june - august, and december
    TRADING = 0
    ELSE
    TRADING = 1
    ENDIF

    I don’t know if you can set “intramonth days”.

Viewing 2 posts - 1 through 2 (of 2 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

Exclude trading over Summer/Dec


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
K12AN @k12an Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Adolfo
10 years, 3 months ago.

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