Is it possible to enter on close of the bar?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6851 quote
    Dave CharlesDave Charles
    Participant
    New

    Hi,

    I am just wondering if it is possible to enter of the close of a bar once an objective/target has been hit. Or do I have to wait for the open of the next bar?

     

    Thanks!

     

    David

    #6881 quote
    NicolasNicolas
    Keymaster
    Legend

    Each line of a ProOrder script is run at each new bar. So for example, it is possible to make an exit  a previous sell order and enter a new buy order in the same candlestick.

    #7146 quote
    Dave CharlesDave Charles
    Participant
    New

    Hi Nicholas.

    I just want to clarify what I meant. Is there a way to program a back test or a automated trading program, so that a position is entered a few seconds before a close of the current bar. Or do i have to wait for the bar to close and enter on the open of the next bar?

     

    Thanks

    #7147 quote
    AdolfoAdolfo
    Participant
    Senior

    Hi! You can buy or sell in the same candle if you have STOP or LIMIT orders waiting to be executed.

    Cheers.

    #7211 quote
    Dave CharlesDave Charles
    Participant
    New

    Hi Adolfo,

    Thanks for your reply 🙂

    I was wondering if you can enter just before the close of the bar or whether you have to wait for the open of the next bar?

     

    Thanks!

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

Is it possible to enter on close of the bar?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Dave CharlesDave Charles
10 years, 4 months ago.

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