Distinguishing between the entry price and the exit (stop) price

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9763 quote
    merc1203
    Participant
    Average

    Let’s imagine I enter a trade at 12205

    I only want to add to the position at prices above the 1st entry

    My line of code is

    cond1 = close > tradeprice(1)

    However, when the first trade is stopped out before adding a second position, the algo, as written, is referencing the stop price and not the original entry price

    Rather than referencing tradeprice(1), what should I refer to?

    In intuitive terms, I want to reference entryprice1 and never “stopprice1” which if the original entry is stopped out is tradeprice(1)

    Many thanks

    #9773 quote
    Nicolas
    Keymaster
    Legend

    I’m not sure I understand .. tradeprice(1) always refer to the entry price level of the previous order, so why do you think it gives you the price where the trade has closed?

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

Distinguishing between the entry price and the exit (stop) price


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
merc1203 @merc1203 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
10 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/23/2016
Status: Active
Attachments: No files
Logo Logo
Loading...