I am just starting with prorealcode and want to create simple buy strategy for index CFD’s
When I buy CFD’s I always want to have the same contract value / exposure (in my case 10.000 euro per position leveraged) but I want to apply my trading strategy to multiple indexes.
1
2
X=10000/medianprice
BUYXCONTRACTSATMARKET
doesn’t do the trick because it fluctuates by index
I have moved your post to the ProOrder forum as it is a strategy coding question and not a platform issue. Please try to ensure that you post in the correct section with any future topics.
We also like it if you use the ‘Insert PRT Code’ button when putting any code in your posts. I have edited your post to show how it should look. 🙂