Add entry when trailing triggered

Forums ProRealTime English forum ProOrder support Add entry when trailing triggered

Viewing 4 posts - 1 through 4 (of 4 total)
  • #115401
    CKW

    Hi All,

    Just wondering if PRT allows add entry when you have trailing feature activated in your source code ?

    For testing, I used sample from Nicholas and add new “market orders” when price triggered “first move of trailing“, and “next moves of trailing“. Apparently, It doesn’t work as I don’t find any trades open with 1.5 contracts or maybe my method is wrong :).

    Basically, my Idea is to add contracts when initial position reaches targeted trailing moves.

    Thanks for your advice

     

    #115402

    Remove:

     

    #115403
    CKW

    Hi Vonasi,

    Thanks.

    Remove first line or “cumulateorders = true” then it works but I encountered another issue. Let me attach the new code to precise the issue.

    Please find the details from the attached screenshot, and my observation below. From Orders list and Closed Positions list, the entry date and exit date are not tally:

    1. (Black) Rectangular for left and right entry time are not tally, and 2nd order always return 0 bar
    2. (green) Rectangular always the same time as 2nd order entry

    Thanks for your advice

     

    ode

     

    #116017

    Your 2 orders are closed at the same time by the trailing stop, or I don’t get what is your question?

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login