Set Up in different directions

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #202748 quote
    SM656514SM656514
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    SM656514SM656514
    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
    JSJS
    Participant
    Master

    The orders you use here are pending Stop orders.

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

    #202811 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    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.
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

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 robertogozzirobertogozzi
3 years, 11 months ago.

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