Hi,
I have been trying to test the sensitivity of some trading systems by  adding 
different standard deviation values to the Close. Once I got the modified Close 
I assign it back to the Close by using C=ModifiedC so that the Buy and Sell 
criteria got the modified input. However, I encountered some issues that I 
cannot compete.

1. I don't know how Amibroker calculates the Foreign and AddToComposite 
function in this case. It seems that these functions don't get the modified C.
2. Before the backtest, I have to run Scan if the Buy formula contains 
AddToComposite function. If I use Optimize to assign different values to the 
Close, the Buy formula only gets the original AddToComposite values, not the 
modified ones. The solution would be to scan before each optimization step.
3. It is strange that some trading systems don't get the original backtest 
performance if I use
X=0;
ModifiedC=C+X;
C=ModifiedC;
assignment before the Buy and Sell condition.

I would be very thankful if you could comment on the issues or have met any of 
them before. Thank you.

Reply via email to