Immediate Stop Loss order

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #148525 quote
    DCDC
    Participant
    New

    I am trying to execute a stop loss and target profit on execution of a trade.

    The stop and target profit order only seem to appear on completion of the entry bar.

    I want to have the stop / target profit in place immediately that is executed on the entry bar if the level is hit in the same bar.

    Thanks

    #148527 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    SET TARGET [p]PROFIT and SET STOP [p]LOSS both exit as soon as they are hit, not when the bar closes.

    Code snippets to replace trailing stop DO are executed when a bar closes, instead. You can only use MTF support and a very low TF to try to minimize the effect.

    #148528 quote
    DCDC
    Participant
    New

    Thanks so much Roberto!!

Viewing 3 posts - 1 through 3 (of 3 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

Immediate Stop Loss order


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
DC @dc Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by DCDC
5 years, 11 months ago.

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