SL or TP Auto Adjustment

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #91077 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average

    Hi

    is there any feature in PRT to define price levels to change and adjust SL or TP automatically when in market? Should it be coded in auto-trading? How?

    #91079 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You can:

    #91089 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average

    I am sorry if i may not conveyed my question properly. Actually, I want an automated way to adjust Stop Loss level based on changing price. for example, if price reached certain level then put stop loss at a new defined level.

    #91090 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    #91556 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average

    let’s say we are entered Long on market at price 0.1111 and put Stop Loss at 0.1100 manually. I wish to adjust SL to the price 0.1110 when price reached to 0.1121 automatically.

    could below code be applied by auto trading for my purpose?

    defparam CUMULATEORDERS=false
    
    V1= 0.1121   //price//
    V2= 1 //PIPS//
    c1=low crosses over v1
    
    if longonmarket and c1 then
    SET STOP PLOSS v2
    endif
    #91561 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    ProOrder cannot deal with manually opened trades.

    ProOrder will stop a strategy if a trade that has been  opened automatically is later modified/closed manually.

    #91596 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average

    so, no other method than pro order to fulfill my purpose?

    #91600 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    It can’t be done.

    #91616 quote
    NicolasNicolas
    Keymaster
    Legend

    You can add an automatic trailing stop to a manual order:

    [youtube]https://youtu.be/jmKZYsy3MQw?t=134[/youtube]

    PEDRAM.JOKAR thanked this post
    add-trailing-stop-to-order-prorealtime.png add-trailing-stop-to-order-prorealtime.png
Viewing 9 posts - 1 through 9 (of 9 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

SL or TP Auto Adjustment


Platform Support: Charts, Data & Broker Setup

New Reply
Author
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by NicolasNicolas
7 years, 8 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 02/11/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...