Would you kindly please post an example of how to code money management rule. My objective is to:
* Test the mix of long and short equity of open positions in the current (or last) bar
* Based on other tests above, enter market neutral balancing positions orders (e.g., buy equal amount of sp500 $s to hedge open positions)
* In Ranking system execution, enter with lower amounts of equity $'s depending if this is the 1st, 2nd or 3rd position being filled
(lower equity per position)
Thanks for all of your help in unlocking the power of this platform
- To mix long and short position, just select "Long & Short" next to "System Type" in the "Update a trading system" form.
- Regarding the other questions, I will post next week a money management script that explains all this.
To clarify on the long/short: I have successfully used the long/short setting in the trading system.
That part of the question relates to being able to, in the script logic, capture the open $ equity long and short, separately and create next logic script steps based on that outcome.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.