Execute a trade on current bar/candlestick

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7426 quote
    algotraderalgotrader
    Participant
    Average

    Hello All
    Looking for a code to execute a trade on current bar/candlestick
    Please advise.
    Thanks,
    Amit.

    #7429 quote
    NicolasNicolas
    Keymaster
    Legend

    Hello Amit,

    What do you mean exactly? Because trades ON MARKET (not pending ones) are only launched once at the end of the bar.

    #7431 quote
    algotraderalgotrader
    Participant
    Average

    Hi Nicolas
    Well, I want to trade on the ‘NOW’.
    Trading on the ‘NEXT BAR’ is too late.
    If there is news that move price significantly, I want to take advantage on that.
    Waiting for the next bar is no good for the strategy.

    #7440 quote
    NicolasNicolas
    Keymaster
    Legend

    Sorry it’s not possible unless you use pending orders like STOP or LIMIT ones. These kind of orders will be executed at the exact price you placed them but of course you’ll never know when they will be executed.

    #7661 quote
    algotraderalgotrader
    Participant
    Average

    I understand
    Thank you.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

From idea to ProBuilder code in seconds.

Your coding copilot for ProRealTime™. Ask in plain English — get clean, ready-to-paste indicators, screeners and systems.

Available in 7 languages
Try ProRealAI

Execute a trade on current bar/candlestick


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
algotrader @algotrader Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by algotraderalgotrader
10 years, 5 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 05/19/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...