Use Supertrend for MU Trading

Forums ProRealTime English forum ProOrder support Use Supertrend for MU Trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • #232360

    Hello!

    I have problem to get the right formulation in PRT for Point c)

    a) Entry: i want to buy SUP long when the month ultimo time is. Herefore i want to start at Day 26

    b)Exit with gain: Than i want to hold until we close over the 10 Day high

    c) Exit with pain: If the course is over the supertrend when i open the position, then i want to sell the position if the close is under the supertrend.

    How can i formulate c in PRT?

     

    defparam preloadbars=5000
    defparam cumulateorders=false
    size=(100000+strategyprofit)/(close)

     

    I Would use the following indicators:

    indicator1 = donchianchannelup[10]
    c1=close>indicator1

    indicator2 = SuperTrend[2.5,10]
    c2 = close<SuperTrend[2.5,10]

    if not longonmarket and day>25 then
    buy size contracts at market
    endif

     

    if longonmarket and c2 then

    sell at market

    endif

     

    Thank you very much

    #232361

    and c1 of course for the exit with the donchian and not c2

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

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