Entry before close

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #236171 quote
    coh123coh123
    Participant
    New
    Hi there I am trying to create a new algorithm that enters into the market as soon as the conditions are triggered rather than after the close. Is this possible? I know there has been a few big updates so I was wondering if this is now allowed.   Many thanks for your help
    #236172 quote
    JSJS
    Participant
    Master

    Hi,

    In PRT, the code is read after the Close of the bar, so conditions that are triggered during the formation of the bar will (still) be executed after the Close of the bar… (for buy/sell on the Open of the next bar

    Short answer: unfortunately not possible

    #236177 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    JS is right in general, but since the Multi Time Frame support was added, a few years ago, it’s indeed possible to achieve your goal. Coding with multiple timeframes is not so complicated, but it requires a few additional skills that you can learn reading the hundreds of examples, posts and blogs on the subject. Search this forum for the MTF word and you will be returned dozens of links to tons of lines of code and info.
    #236735 quote
    Niklas87Niklas87
    Participant
    New
    Another way is to use stop/limit orders. Tho the stratergy have to be made acordingly (place the order to sett a buy limit earlyer), but for a brakeout strategy is one way to do it.
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

Entry before close


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
coh123 @coh123 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/06/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...