Change a target profit in a trade

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #41103 quote
    IsIs
    Participant
    New

    Hi, I want a target profit equal to the EMA, and I want that the target change every candle as the EMA does. If the EMA is higher the target higher and if the EMA is lower the target lower.

    If I type: Set target profit EMA20

    The Target doesn`t change and I need that.

    Thanks for the help.

    #41120 quote
    PerePere
    Participant
    Veteran

    You can try to do this (not tested) in case, for example, of longs:

    mm=ExponentialAverage[20](close)
    SELL AT mm STOP
    
    Nicolas thanked this post
    #41153 quote
    NicolasNicolas
    Keymaster
    Legend

    or even that:

    tp = abs(close-average[20,1])
    set target profit tp
    
    #41156 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Petrus, assuming we talk about an ema not reached yet in the direction of more gains than with current close, I’d use “sell at mm limit” instead of “sell at mm stop”. And “sell at mm stop” could be a good way to dynamically preserve gains if the ema is above entry and on the side of lower gain than with current close.

    As you all talked in English in this topic in the Spanish forum (haha, gotcha Nicolas), I’ll move it from Spanish forum to English forum, thanks for your understanding.

    #41157 quote
    PerePere
    Participant
    Veteran

    Yes, you are right Noobywan. It depends if the EMA is above close or if you want to preserve gains.

    I didn’t see that this was the spanish forum, hahaha!

Viewing 5 posts - 1 through 5 (of 5 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

Change a target profit in a trade


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Is @is Participant
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by PerePere
9 years, 2 months ago.

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