Huck Finn / Publications
Forum
Backtesting with Open[0] and Close[0]
My EA uses Open[0] and Close[0] on the M1 chart and then compares the two values to determine whether it was a bull or bear candle. For some reason the backtester returns the same value for these two operators. The same is true for iOpen (.....,0) and iClose(......,0) How do you resolve that
Backtest Results --- Is there an explanation?
Finally got my EA running well enough to start backtesting . I would think, perhaps incorrectly so, that if the only parameters you change between backtest runs are the SL and TP, then the EA should find the same number of trades in the same period of time and the only difference would be how many
Clarification Re: "Close[ ]" Values
When you use the "Close[ ]" operator with a zero (ie current bar) in the brackets what does that mean if you are only partially through the current H1, M15, M5, or M1 period? Does it mean: A) the value of the last tick prior to the current tick? or B) something else? Likewise, does High[0], mean: A)
Is there a Limit on Nesting Included Files?
I have found nesting conditional "IF" statements to be confusing and prone to numerous errors, hence intimidating, especially when you start nesting 5 or 6 conditional "IF" statements --- one within the next. As result, I have resorted to using "Included Files" whenever confronted with the nesting
Why Are Array Values Printing Out Zeroes
I've coded my first array in an EA and I'm having troubles correctly do so. The array entitled MAS1, and is declared as a double variable. The intent is to put Moving Average values in the array. However, for some reason when I query the array for a value all I get in return is "0" (zero) Here is my
EA Processing Time
I'm in the early stages of writing a new EA and I am shocked by the variability in the processing time. For example, I am currently calculating and printing only two MA's and sometimes it takes only 1 second, then sometimes it takes 24 seconds. My guess is the EA must interact with the broker's
Newbie Question Regarding iMA Function
In order to calculate the MA slope, I need to obtain the MA value from a few periods back, say 5 periods prior to the current period. As best I can tell, the "shift" parameter in this function is the means for obtaining that value, and I have used "5" for that parameter. However, it does not