Code refering to entry?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62773 quote
    SpatialSpatial
    Participant
    Junior

    Hi, Im trying to code something that I wil use as an exit.

    I want to close the trade at the end of the day after the entry if its a profit. If not, the same on day 2, close at the end of day if profit. Same with day 3 and 4. At day 5 I want to close anyway.

    I dont know how I should write to refer to the entry price? Can someone help me?

    #62776 quote
    DespairDespair
    Blocked
    Master
    tradeprice(1)

    gives you the price of the last trade.

    Spatial and Nicolas thanked this post
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

Code refering to entry?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Spatial @spatial Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by DespairDespair
8 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/14/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...