force buy/sell commands

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #161339 quote
    kevin12345
    Participant
    Average

    hi,

    when i have a short position active and the long conditions are met, it closes my short position and opens a long position. anyone know how to force the trade so that i have sell and long position active at the same time? and if not, how do i stop the long position from opening?

    thank you.

    #161345 quote
    Vonasi
    Moderator
    Master

    Being both long and short in a strategy is not possible in ProOrder.

    It is better to create two strategies – one long only and one short only.

    Alternatively to stop a trade opening in the opposite direction use:

    if not shortonmarket and (your enter long conditions) then
    buy 1 contract at market
    endif
    
    if not longonmarket and (your enter short conditions) then
    sellshort 1 contract at market
    endif
    
    #161346 quote
    GraHal
    Participant
    Master

    We can’t go Long and Short at the same time in the same strategy.

    how do i stop the long / short position from opening?
    Ty …

    If NotonMarket and Yourconditions Then

    (Mods – Insert Code buttons and all buttons missing? Weird??)

    #170539 quote
    Gaby
    Participant
    Average

    It is possible that the same strategy triggers a signal to go long & short at the same time (with different target profits and stop losses); that is working well during sideways periods.  Unfortunately the only solution as now is what Vonasi mentioned before: to break the strategy into two pieces and trading both separately with two accounts.

    Would it be possible to raise a request to the PRT development team to implement a force open instruction into the code for auto-trading? The functionality is already there, if you want to trade it manually… it is just not “callable” in the code.

    Thanks, Gaby

    #170551 quote
    GraHal
    Participant
    Master

    You can ask PRT directly on their webform below

    https://www.prorealtime.com/en/contact?

    I think you may find the restriction (no hedging in Pro-Order) is placed by IG.

    Let us know what PRT say please.

    #170654 quote
    David
    Participant
    Veteran

    The Force Open is there to stop you from closing existing open positions in the same instrument from another strategy or manual trade but not within a strategy.

    Within strategy hedging would be the best feature PRT could invest their time on but considering this is still not a feature after so many years – I’m very doubtful it will ever happen.

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

force buy/sell commands


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
kevin12345 @kevin12345 Participant
Summary

This topic contains 5 replies,
has 5 voices, and was last updated by David
4 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/13/2021
Status: Active
Attachments: No files
Logo Logo
Loading...