When updates "positionprice"?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32555 quote
    DespairDespair
    Blocked
    Master

    Hi,

    I have problems using “positionprice” when i want to use it directly after i opened a position. It then still is zero though a position was opened. So i wonder when it is updated?

    #32574 quote
    NicolasNicolas
    Keymaster
    Legend

    Topic moved to correct forum section (ProOrder).

    Positionprice is updated each time you launch an order on the market, so you’ll be able to get the open price of the current order if you correctly use the keyword 🙂

    Take a look at the documentation on the website, maybe it could help you.

    #32605 quote
    DespairDespair
    Blocked
    Master

    I of course read the documentation. 🙂

    Then is maybe what causes the problem that if i launch a market order it will be executed on the following bar so i will get the positionprice 1 bar later, or is it 2 bars later (so that the bar the order was executed on is finished)?

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

When updates "positionprice"?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Despair @despair Blocked
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by DespairDespair
9 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/19/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...