Hey,
I have been approached by somebody to write them a MS system test which buys when a particular criterion is met and closes the position in a fixed number of days after the buy signal occured.
I have managed to write the code for the buy signal, however i am having some trouble telling MS to sell the security after 'x' number of days. Is there a simple way of doing this?
Thanks,
Dan.
I have been approached by somebody to write them a MS system test which buys when a particular criterion is met and closes the position in a fixed number of days after the buy signal occured.
I have managed to write the code for the buy signal, however i am having some trouble telling MS to sell the security after 'x' number of days. Is there a simple way of doing this?
Thanks,
Dan.