Code refering to entry?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62773 quote
    Spatial
    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
    Despair
    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.

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 Despair
7 years, 12 months ago.

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