Quote:
Originally Posted by Neo
Ok... you guys asked for it
The reason I didn't post the entire EA previously is that I generally "rewrite" EAs in my own formatting style which helps me work out what's going on. I also generally rename variables and functions, though that may just be OCD
Anyway, the major deviation from Don's version is that I grafted the magic number routine from Fifth's Blessing code and added error reporting to a text file. There are a few minor revisions too but the most important is that I added the trend filtering into the Start() function.
I've got a sneaking suspicion that the Martingale side of things isn't working correctly but that's no big shakes at the moment.
Opps... almost forgot! I converted all neccesary "extern bool" parameters into "extern int" so that you can use them in optimisation mode in the strategy tester (0 = false, 1 = true) - the boolean code is just commented out throughout so you can switch it back if you want.
If you find any other issues then I guess you'll let me know 
|
VERY SWEET!! Your code kicks some butt!
I fixed the errors in the logic. Where you had (Ask - Bid > Trend), should have only been (Ask > Trend) and (Bid < Trend). I also took out the AverageDown and ProfitReducer as they weren't used or needed. I took out int Orders as this was used in a different setting and took it out of the Lot calculations. The part where Lots == 0, I took out the * CounterTrendMultiplier, that is only used in the actual calculations. I made the BuyPipTarget = ProfitTarget, same for the SellPipTarget. I added a bool RightSideLabel, that way you can turn on/off the right side label. I also added the ticket numbers to the comment block. Other than that, the code is very, very nice!! You did a GREAT JOB!!
I am attaching this to post #1...
Don