♥ 0 |
Hello Pete, Thank you for everything that you do. I have been reading through your site and have learned a lot. Really appreciate it. A quick question. I am trying to edit a moving average crossover backtesting strategy where the position is sold when the price appreciates by 10% from the entry point. The entry point is initiated when a fast moving average crosses above a slow moving average and I would like to exit when price appreciates by 10%. I have posted the two AddOrder statements however, I would like to edit the current sell to close order from how it is currently written below (fastMA crosses below slowMA) and replace it with when the price appreciates by 10% from my entry. Any suggestions would be greatly appreciated. Thank you. James AddOrder (OrderType.BUY_TO_OPEN, fastMA crosses above slowMA, close, quantity);
Marked as spam
|
Please log in to post questions.