Summation issue with proorder

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #165575 quote
    Finning
    Participant
    Veteran

    Hi there,

    just an issue I have found with the summation command in proorder.

    U2 = high>high[1] and low>=low[1]
    
    D2 = high=<high[1] and low<low[1]
    
    
    U2count=Summation[3](U2)
    
    D2count=Summation[3](D2)
    
    percentup=U2count/3
    
    return percentup

     

    When I call this as an indicator – or – if I put this directly into proorder code – and graph the “percentup” output, it doesn’t SUM right and miscounts, compared to what the indicator of the came code gives.

    Picture example attached.

    Top line with the pink circles is the GRAPH of the call of the function – the pink circles show the errors returned in proorder from the summation; then there is the indicator with the red/green lines and colour zone; and the prices are underneath that.

    Seems to be a problem with the summation function when run through proorder??

    Thanks,

    Finning

    Capture.jpg Capture.jpg
    #165597 quote
    Nicolas
    Keymaster
    Master

    Check custom trading hours and sunday bar shown or not.

    #165598 quote
    robertogozzi
    Moderator
    Master

    It’s working fine for me (I did not use CALL).

    Are you sure both the indicator and the strategy share the same code?

    x-6.jpg x-6.jpg
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Summation issue with proorder


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Finning @finning Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/29/2021
Status: Active
Attachments: 2 files
Logo Logo
Loading...