Max position size
Forums › ProRealTime English forum › ProOrder support › Max position size
- This topic has 6 replies, 4 voices, and was last updated 5 years ago by rama.
-
-
01/18/2017 at 9:27 AM #21526
Hello.
I have an ongoing auto trade on Spot Gold 2 min chart.
When I start the auto trade I am asked the max position size I want. I set it for 2.
I buy 1 contract in the code. The code buys 1 contract. Sometimes it does not reach the sell condition and it falls back and reaches the buy conditions I set one more time. Now the price may be lower than the buying price on the first contract I bought earlier.
How can I now buy one new contract even though I already have one?
01/18/2017 at 9:47 AM #215331234567891011121314151617181920212223242526272829// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = Stochastic[14,3](close)c1 = (indicator1 < 20)indicator2 = Stochastic[14,3](close)indicator3 = Average[5](Stochastic[14,3](close))c2 = (indicator2 CROSSES OVER indicator3)IF c1 AND c2 THENBUY 1 CONTRACT AT MARKETENDIF// Conditions to exit long positionsindicator4 = Stochastic[14,3](close)c3 = (indicator4 > 80)indicator5 = Stochastic[14,3](close)indicator6 = Average[5](Stochastic[14,3](close))c4 = (indicator5 CROSSES UNDER indicator6)IF c3 AND c4 THENSELL AT MARKETENDIF// Stops and targetsSET STOP pLOSS 501/18/2017 at 10:04 AM #21536Hi, I’ll edit your previous message for you, but please:
> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
https://www.prorealcode.com/topic/automatic-trading-support-posting-rules/
01/18/2017 at 10:57 AM #2153901/18/2017 at 11:16 AM #2154201/18/2017 at 11:28 AM #2154612/22/2018 at 4:58 PM #87593DEFPARAM CumulateOrders = False
say maximum position size “2” amount/pt
does it mean maximum points or amount should be open max at any given point time
if the program conditions are met any it will keep open a maximum of 2 points or amount
-
AuthorPosts
Find exclusive trading pro-tools on