Use Supertrend for MU Trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #232360 quote
    LamboLambo
    Participant
    New

    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 quote
    LamboLambo
    Participant
    New

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Use Supertrend for MU Trading


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Lambo @lambo Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by LamboLambo
2 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/06/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...