Defparam cumulateorders = 3 lots!!!

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #152705 quote
    UkDownUnder
    Participant
    Average

    Hi,

    I’ve noticed that when a ATM system is in a winning condition,

    if cumulative orders are set to True and the capital is great enough, this could increase the positive winnings almost exponentially!

    Which is great if your 100% sure of your system, alas, most of us are not that good! Also we must mention, can fail Exponentially in a instant!

    So if in a winning condition, we could set cumulative order to a maximum of x3 lots/contracts and then close out at the end of the condition or session making the gains safe, locking them in. This would be an advantage.

    “Defparam cumulateorders = 3 lots/contracts”

    “Any ideas my friends, Thanks”

    #152712 quote
    Vonasi
    Moderator
    Master

    UkCoopDownUnder – Your post has been moved because you posted in the wrong forum. The forums are described in the forum rules. 

    _ ProRealTime Platform Support: only platform related issues.
    _ ProOrder: only strategy topics.
    _ ProBuilder: only indicator topics.
    _ ProScreener: only screener topics
    _ General Discussion: any other topics.
    _ Welcome New Members: for new forum members to introduce themselves.

    Please be more careful with future posts.

    #152713 quote
    Vonasi
    Moderator
    Master

    If you want to limit the number of open positions then just check the value of COUNTOFPOSITION in your conditions to open new trades. COUNTOFPOSITION returns a positive number for long trades and a negative number for short trades.

    UkDownUnder thanked this post
    #152719 quote
    robertogozzi
    Moderator
    Master

    When you learn to use unknown instructions and indicators, I recommend reading documentation and some code examples, instead of writing somenhing at random.

    Wanna drive a car?  Read at least its manual first!

    In another post of yours you used SuperTrend in a wrong way, now you want to use CUMULATEORDERS in a way that is not described anywhere.

    You can’t use it that way. To accumulate no more than N positions, just add this condition to your conditions to enter a trade:

    AND abs(CountOfPosition) < 3
    UkDownUnder thanked this post
    #152721 quote
    Vonasi
    Moderator
    Master

    ProRealCode documentation can be found here (or via the forums ‘Help’ tab):

    https://www.prorealcode.com/prorealtime-documentation/

    UkDownUnder thanked this post
    #152948 quote
    UkDownUnder
    Participant
    Average

    abs(CountOfPosition) < 1

     

    should it then be possible for this to then close 1 lot of the x3

    #152953 quote
    robertogozzi
    Moderator
    Master

    No, partial closures are not allowed.

    As an INaccurate workaround you can SELL alla of them and BUY another tewo instead of three!

    Your example is useful just for limiting opening positions to no more than 1. Does not deal with closures.

    UkDownUnder thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Defparam cumulateorders = 3 lots!!!


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
UkDownUnder @jamescoop Participant
Summary

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

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