Only to execute trade at end of the time period

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44624 quote
    karljohnkarljohn
    Participant
    New

    Good morning

    I am new to programming.  I am trying to backtest strategies and am having a problem with the set up.

    What I am trying to do is to execute a trade at the beginning of a new time period only if at the close of the previous time period the conditions are met. My problem is if during the previous time period the condition is met an order is executed and it doesnt wait to the close.

    Thanks for your time

    #44630 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    No, ProOPrder ALWAYS executes strategies at the very close of each candle, just BEFORE a new candle is opened (where a new trade is opened if conditions are met). There is no way to execute a strategy before a candle is closed.

    #44889 quote
    DerekDerek
    Participant
    Veteran

    Well, you can go on a lower timeframe if the signal can be reproduced there.

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

Only to execute trade at end of the time period


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
karljohn @karljohn Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by DerekDerek
9 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/25/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...