Cheers
Leon
Attached are both versions modified for the new system.
As you can see, we now write all magic numbers. The new uploader does the rest. All testers should obey the following:
"The handling for EAs using multiple magic numbers has improved. Now you can run multiple instances of them in one account. All trades are attributed to the EAs first magic number in the database. All magic numbers must be unique within the account, even those of timeframes you dont use."
Hi rex,rex » Fri May 04, 2018 8:42 am wrote:Hi Nev
I downloaded and have been running the ea since a couple of days ago, and it's off to a good start, using OOTB settings. With just the 0.01 lot sizes, one set of 5 AUDCHF trades closed for $9.98 profit, and another set of 4 of these AUDCHF was up as high as about $10.50 floating profit (currently back down to only about $1.00 floating profit). What settings would you suggest I vary to test for optimum results? Thank you
Hi Nev,c1borg » Mon May 07, 2018 7:19 am wrote:Hi rex,rex » Fri May 04, 2018 8:42 am wrote:Hi Nev
I downloaded and have been running the ea since a couple of days ago, and it's off to a good start, using OOTB settings. With just the 0.01 lot sizes, one set of 5 AUDCHF trades closed for $9.98 profit, and another set of 4 of these AUDCHF was up as high as about $10.50 floating profit (currently back down to only about $1.00 floating profit). What settings would you suggest I vary to test for optimum results? Thank you
Sorry didnt reply earlier got distracted with other work on the EA but to answer your question (and im no expert btw). These are not in order of importance but I think the list is in the order I would like to tackle them, and its not the whole list im sure there are more.
There are others but this list is probably it atm for me. But if enough people try different settings something good may jump out not necessarily even one of the ones I have listed. On top of this additional ideas are being added by the geniuses on here, many thanks to them.
- 1. Trade per size of dollop
As the EA makes a fixed 1% (in my case) per day it gets progressively harder to reach the set target until a second lot kicks in at our dollop setting. But if we set the dollop too low the opposite effect any negative trades will have a far bigger effect on our equity. The question is where is the sweet spot?
2. Minimum margin % Mine is set at 1500 and this prevents opening too many trades, again tricky to know where to set this.
3. Peaky yes or no Peaky is amazing and may improve the EA but on a lower TF in my opinion. I have this running on my V4 test.
4. Super Slope settings
5. Flying Buddha settings
6. Trading time frames I have 2 5M and 15M
7. Recovery yes or no.
8. Fill the gap settings
Not trading live today as its a bank holiday in the UKthe sun is out which doesnt happen very often
but the demos are all on, will be interesting how they cope with the thinner volume.
Nev
Code: Select all
double balance = AccountBalance();
double inc = (balance/100)*targetinpercent;
if((balance/dollop)>=10){
target = balance + inc;
Print("All good. Normal Target Calculation. New Target: ", target);
return;
}
else{
target = balance + MathFloor(inc-MathMod(inc,10));
Print("Balance too low for correct lotsize/dollop increment. Reducing target to fit minimal lotsize change! New Target: ", target);
return;
}
}Hi Marc,Razer » Tue May 08, 2018 12:35 pm wrote:X-axis is the balance, Y-axis the basket target in % of the "real balance". As expected, the % value rises and nearly doubles from 1% to 2% gain neede for a basket close before the balance breaks €2000 and a second lot kicks in.
Very interesting many thanks :hi: I was going to attempt something similar myself can you PM me the file im assuming its Excel? As for the code perhaps the more experienced coders on here can evaluate the method, but basically its a more sophisticated dollop calculation. I guess the aim is to have a linear upward slope with equal risk vs reward rather than big step jumps.Razer » Tue May 08, 2018 12:35 pm wrote:Hi Nev,c1borg » Mon May 07, 2018 7:19 am wrote:Hi rex,rex » Fri May 04, 2018 8:42 am wrote:Hi Nev
I downloaded and have been running the ea since a couple of days ago, and it's off to a good start, using OOTB settings. With just the 0.01 lot sizes, one set of 5 AUDCHF trades closed for $9.98 profit, and another set of 4 of these AUDCHF was up as high as about $10.50 floating profit (currently back down to only about $1.00 floating profit). What settings would you suggest I vary to test for optimum results? Thank you
Sorry didnt reply earlier got distracted with other work on the EA but to answer your question (and im no expert btw). These are not in order of importance but I think the list is in the order I would like to tackle them, and its not the whole list im sure there are more.
There are others but this list is probably it atm for me. But if enough people try different settings something good may jump out not necessarily even one of the ones I have listed. On top of this additional ideas are being added by the geniuses on here, many thanks to them.
- 1. Trade per size of dollop
As the EA makes a fixed 1% (in my case) per day it gets progressively harder to reach the set target until a second lot kicks in at our dollop setting. But if we set the dollop too low the opposite effect any negative trades will have a far bigger effect on our equity. The question is where is the sweet spot?
2. Minimum margin % Mine is set at 1500 and this prevents opening too many trades, again tricky to know where to set this.
3. Peaky yes or no Peaky is amazing and may improve the EA but on a lower TF in my opinion. I have this running on my V4 test.
4. Super Slope settings
5. Flying Buddha settings
6. Trading time frames I have 2 5M and 15M
7. Recovery yes or no.
8. Fill the gap settings
Not trading live today as its a bank holiday in the UKthe sun is out which doesnt happen very often
but the demos are all on, will be interesting how they cope with the thinner volume.
Nev
I think that the trade size per dollop problem can be reduced to a simple mathematical problem of digits in the lotsize calculation. I did some calculations and the results can be seen here:
I used a €1000 account, and 0.01 per €1000 lotsize and a 1% basket close for simulation.
X-axis is the balance, Y-axis the basket target in % of the "real balance". As expected, the % value rises and nearly doubles from 1% to 2% gain neede for a basket close before the balance breaks €2000 and a second lot kicks in.
My 2 thought of handling this:
1) limit the target. (red line from above graphic)
Mayby some of the more advanced coders can implement something like this:
The problem with this solution is obvious: Out balance increase is much lower than before. see this graphic:Code: Select all
double balance = AccountBalance(); double inc = (balance/100)*targetinpercent; if((balance/dollop)>=10){ target = balance + inc; Print("All good. Normal Target Calculation. New Target: ", target); return; } else{ target = balance + MathFloor(inc-MathMod(inc,10)); Print("Balance too low for correct lotsize/dollop increment. Reducing target to fit minimal lotsize change! New Target: ", target); return; } }
![]()
2) increase lotsize by decreasing the dollop value: In fact, the decrease in the "perdollop" value is inversely proportional to the increase % of graphic 1. Problem here: The Risk will be almost doubled in worst case.![]()
Nevertheless, I hope I could help you a little bit.![]()
regards
- Marc
PS: Very nice thread, following with much interst!![]()
![]()