profit target calc

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47321 quote
    Real ProReal Pro
    Participant
    Average

    Hi,

    How would I code the following please?

    On the bar that the BUY is triggered, calculate x = (close-open).

    Then make the pprofit = x.

    Thanks.

    #47327 quote
    juanjjuanj
    Participant
    Master

    Hi Real Pro

    With such tight profit range it look like youa re coding a scalper?

    The bar the trade was opened can be calculated using (barindex-tradeindex). Thus you can use something like;

    TriggerBar = (barindex-tradeindex)

    TriggerRange = ABS(Close[TriggerBar] – Open[TriggerBar])

    Set Target pProfit = TriggerRange

    #47333 quote
    Real ProReal Pro
    Participant
    Average

    Hi Juan, thanks.  I’m using on 5 minute bars, so not really scalping as such.  The trigger bar is a big breakout bar.

    I copy/pasted as presented above and it gave me an error.  Does it require some rejigging?

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

profit target calc


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Real Pro @real-pro Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Real ProReal Pro
9 years ago.

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