positionperf

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14380 quote
    AbzAbz
    Participant
    Veteran

    hello

    i have an scenario with positionperf(1).

    if i traded on monday and tuesday there was no trades on wednesday if i refer to ”  if positionperf(1) > 1 then ………..”  will it use the trade on monday then?

    #14389 quote
    NicolasNicolas
    Keymaster
    Legend

    Yes it refers to the previous trade of the current strategy’ trades history.

    #37882 quote
    ramarama
    Participant
    Senior

    I am using this code which is not working any reasons?

    x2=1

    IF longonmarket and positionperf(1) > .00015 and COUNTOFPOSITION <= 100 THEN
    buy 1 perpoint at tradeprice+x2 stop

    endif

     

    my intention is to open new position on  dax after .00015% gain that is on 12800=.00015*120800/100=1.92

     

    @ tradepirce+2.92 = 12800+2.92(from the last order traded)

    #37888 quote
    NicolasNicolas
    Keymaster
    Legend

    You can “GRAPH positionperf”, to have a clear view of what positionperf is returning as a value. Then you’ll be able to make conclusion on what’s wrong in your code or your calculation.

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

positionperf


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Abz @abbas_sadiq Participant
Summary

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

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