Defparam cumulateorders = 3 lots!!!
Forums › ProRealTime English forum › ProOrder support › Defparam cumulateorders = 3 lots!!!
- This topic has 6 replies, 3 voices, and was last updated 5 years ago by
robertogozzi.
-
-
12/06/2020 at 9:46 AM #152705
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”
12/06/2020 at 10:32 AM #152712UkCoopDownUnder – 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.
12/06/2020 at 10:33 AM #152713If 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.
1 user thanked author for this post.
12/06/2020 at 10:54 AM #152719When 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:
1AND abs(CountOfPosition) < 31 user thanked author for this post.
12/06/2020 at 11:04 AM #152721ProRealCode documentation can be found here (or via the forums ‘Help’ tab):
https://www.prorealcode.com/prorealtime-documentation/
1 user thanked author for this post.
12/08/2020 at 10:27 AM #152948abs(CountOfPosition) < 1
should it then be possible for this to then close 1 lot of the x3
12/08/2020 at 11:50 AM #152953No, 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.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on