Set Up in different directions

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #202748 quote
    SM656514
    Participant
    New

    I try to have two set ups in different directions, one Long and one Short. The real trading systems says cannot have conflicting directions. My example is as follows:

    DEFPARAM CumulateOrders = False

    Buy 1 contract at close – 50 Limit

    SellShort 1 contract at close + 50 stop

    Any advise?

    Thank you.

    Tham

    #202750 quote
    robertogozzi
    Moderator
    Master

    You can’t open opposite positions, but you CAN place opposite pending orders.

    If both are triggered, the second one will automatically close the first one.

    In any case, your second pending order is a LIMIT order (not a STOP one, as you are trying to go short at a more favourable price).

    #202779 quote
    SM656514
    Participant
    New

    Thank you, Roberto,

    I make mistakes in the two instructions. I am trying to have setups so that I Long when the price break above a certain level and SHORT when the price break down a certain level. They should be :

    BUY 1 CONTRACT at close + 50 STOP

    SELLSHORT 1 CONTRACT at close – 50 STOP.

    To do so is because I do not know which direction the price will go.

    The trades go through in DEMO. But, the real one reject , no one was triggered, reason being cannot have opposite direction because of risk.

    Your advise please.

    Thank you.

    Tham

    #202783 quote
    JS
    Participant
    Senior

    The orders you use here are pending Stop orders.

    Pending orders must be re-placed at each new bar.

    #202811 quote
    robertogozzi
    Moderator
    Master
    Furthermore, you may have limitations due to limited risk account. Check with the broker.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Set Up in different directions


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
SM656514 @sm656514 Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/18/2022
Status: Active
Attachments: No files
Logo Logo
Loading...