help with condition to be valid for forward time intervals

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #88297 quote
    MacroT
    Participant
    Average

    I need some help with the following

    Assume a simple code condition …….if Moving Ave 10>Moving Ave 20 buy at X

    In PRT the buy at X is only valid for the current time interval.

    Is there a way to have the condition of buy at X valid for 8 forward time intervals ?

    Thanks

    #88298 quote
    robertogozzi
    Moderator
    Master

    Pending orders MUST be placed again each new bar, if needed.

    The first time conditions are met you should start counting until you either:

    1. reach 8 (or whatever limit suits you best)
    2. are OnMarket
    3. your conditions are no more met

    in such cases the counter should be reset to zero.

    #88299 quote
    MacroT
    Participant
    Average

    thanks

    #88317 quote
    Vonasi
    Moderator
    Master

    Topic moved to ProOrder forum as it is a strategy question and not an indicator question. Please try to post in the correct forum with future topics.

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

help with condition to be valid for forward time intervals


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
MacroT @macrot Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Vonasi
7 years, 1 month ago.

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