help with condition to be valid for forward time intervals

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #88297 quote
    MacroTMacroT
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    MacroTMacroT
    Participant
    Average

    thanks

    #88317 quote
    VonasiVonasi
    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.
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

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 VonasiVonasi
7 years, 10 months ago.

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