profit target calc

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47321 quote
    Real 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
    juanj
    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 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.

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 Pro
8 years, 5 months ago.

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