positionperf

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14380 quote
    Abz
    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
    Nicolas
    Keymaster
    Master

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

    #37882 quote
    rama
    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
    Nicolas
    Keymaster
    Master

    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.

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 Nicolas
8 years, 9 months ago.

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