Execute a trade on current bar/candlestick

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

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

    #7429 quote
    Nicolas
    Keymaster
    Master

    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
    algotrader
    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
    Nicolas
    Keymaster
    Master

    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
    algotrader
    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.

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 algotrader
9 years, 9 months ago.

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