LOSS EQUAL WIN

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #104666 quote
    Slowlyslowly
    Participant
    Average

    Hello

     

    when you have a code with a variable target , ie based on a move to bollinger down , the potential target is obviously is not precisely know until the trade is entered is there a way you can make LOSS =TARGET at that point ?

     

    Many thanks for your assistance.

    #104669 quote
    robertogozzi
    Moderator
    Master

    Topic moved to ProOrder support, being related to strategies.

    In case of both AT MARKET or PENDING orders, when your conditions are met you certainly know TP, so you can set it and set SL the same distance:

    IF YourLongConditions THEN
       BUY 1 CONTRACT AT MARKET
       Tp = BollingerUP[20] - close  //TP = (upper BB band - current price)
       Sl = Tp                       //SL = TP    (or TP * 0.5, or TP * 2 or whatever expression you want to use)
    ENDIF
    SET TARGET PROFIT Tp
    SET STOP   LOSS   Sl
    Slowlyslowly thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

LOSS EQUAL WIN


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
6 years, 6 months ago.

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