Using the most recent beta, I'm finding that Strategy.setStop will close a trade when the stop is reached but the analyser window reports a closing value of 1.00 whatever the true value of the stop. is this a bug or am i doing something wrong. Thanks, Bob
Announcement
Collapse
No announcement yet.
BackTesting/Strategy
Collapse
This topic is closed.
X
X
-
BackTesting Parameters
Version 7.2 (Build 544)
I have written a Study formula that is a moving average of sorts with 2 input parameters. Using a few lines of code from the bactesting sample of the MA crossover, I turned it into a backtesting formula, as a PriceStudy, with color bars. I can apply the formula to a chart , set the parameters any way I want them using "Edit Studies", and all the right things happen on my chart.
Based on the format of the bactesting dialog window, which contains entry felds for the paramters in my formula, I assumed I would be able to adjust the parameters within that window. After several runs seeing numerous extraneous trades in my backtest for the parameters I had entered, I finally realized that my input parameters were being ignored. The only way I can change the parameters of the bactest is to set the defaults in the formula code.
Comment
Comment