Current Profit/Loss in PIPS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15382 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    How can I tell whether the current trade is, say, +10 pips or -10 pips?

    Thank you.

    #15405 quote
    NicolasNicolas
    Keymaster
    Legend

    You could make difference between current Close and the last trade open price.

    #15411 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Thank you Nicolas, but do I have to use TRADEPRICE[1], not [0] for the current trade?

    #15432 quote
    NicolasNicolas
    Keymaster
    Legend

    Use parenthesis, not brackets for the offset number, and yes tradeprice(1) should select the current/last opened trade.

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

Current Profit/Loss in PIPS


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by NicolasNicolas
9 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/24/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...