Several Exits

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #27565 quote
    TempusFugit
    Participant
    Veteran

    Hi,

    I recently discovered this web and learning a lot with it, thank everybody for your contributions.

    Trying to build an automatic trading myself I have a question: is it possible to defined a trade  with several exits, for instance buy 2 shares and treat eachone with different profit targets?

    Thanks a lot

    #28042 quote
    Nicolas
    Keymaster
    Master

    You may have found the answer bu yourself since your message?
    No, sorry but it’s not possible to have different takeprofit for each individual trade on market. They all share the same stoploss and takeprofit.

    #28050 quote
    TempusFugit
    Participant
    Veteran

    I haven´t tried yet but I was thinking in trying with “if”, something like:

    IF XXXX THEN
    
    SET STOP LOSS X
    
    ELSE
    
    SET STOP LOSS Y
    
    ENDIF

    Can something like than work?

    Thanks

    #28051 quote
    TempusFugit
    Participant
    Veteran

    Sorry, I mixed things. The above is something I want to try also but what is relevant to this post is another thing I want to try, something like this:

    IF (CLOSE-TRADEPRICE/TRADEPRICE) < XX
    SELL 1 SHARE AT MARKET
    ELSIF  (CLOSE-TRADEPRICE/TRADEPRICE) < YY
    SELL AT MARKET
    ENDIF

    Can this work?

    #28076 quote
    Nicolas
    Keymaster
    Master

    It will only work in ProBacktest, not in live trading with ProOrder.

    #28081 quote
    TempusFugit
    Participant
    Veteran

    Why??

    Thanks

    #28084 quote
    GraHal
    Participant
    Master

    Why … it’s just an odd thing about PRT .. maybe it will one day, but not now.

    If your code bought at 2 separate prices / conditions / times … for example 2 x 1 Lot … then I guess you could close as 1 x 1 lots and another 1 x 1 lot? But maybe Nicolas will say that can’t be done either??

    Cheers
    Grahal

    TempusFugit thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Several Exits


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by GraHal
8 years, 12 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/07/2017
Status: Active
Attachments: No files
Logo Logo
Loading...