trailing take profit looking at 3 conditions

Forums ProRealTime English forum ProRealTime platform support trailing take profit looking at 3 conditions

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

    Hey guys,

    slightly stuck here.I have been trying to create a trailing TP which would reference 3 things MA cross overs ,75% of my take profit and current price

    The idea is say i have a cross over on a long position and my TP is 150pips away i want it to close 70% of my position 112.5 pips into the move and reminder if i hits the full 150 pips.

    thanks.

    (MAs are 20 average close and 3 average close)

     

    #29341

    you need 2 system

    with the same code but different exits

    #29342

    how exactly would that look like below is the long part of the code

     

    // parameters
    indicator1 = Average[x](close)

    indicator2 = Average[y](close)

    //basic parameters for bs

    c1 = (indicator1 CROSSES OVER indicator2)

    c2 = (indicator1 CROSSES UNDER indicator2)

    IF c1 THEN

    BUY X contract AT MARKET

    ENDIF

    IF c2 THEN

    SELL AT MARKET

    ENDIF

    #29348

    ah i get you thanks.

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