Buy/Sell before bar close

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #55226 quote
    GaastraGaastra
    Participant
    New

    Is it possible to buy/sell before a bar Close?

    EX: I want to buy on Daily when last price is higher than yesterdays high.

    IF Close > high[1] THEN

    I don´t want to wait for the Daily bar to Close Before i buy.

    #55227 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    At present it is not possible, unless you use a lower TF.

    #55231 quote
    NicolasNicolas
    Keymaster
    Legend

    It is possible by putting a buy stop order at High, each time the code is read. Since this order will remain active during the consecutive bar, it may be triggered by the price (Close) in real time. 

    Gaastra thanked this post
    #55290 quote
    EricEric
    Participant
    Master

    if you use a stop order remember to add the spread (half the spread) 

    for example dax 5 point spread and high 13 000

    then the buystop order would be 13 002,6

    Nicolas and Gaastra thanked this post
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

Buy/Sell before bar close


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Gaastra @gaastra Participant
Summary

This topic contains 3 replies,
has 4 voices, and was last updated by EricEric
8 years, 9 months ago.

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