But it won't work on open prices only right? Because I'm trying to have it only check on the opening or closing of each bar not every tick.
Posts made by sm24
-
RE: Stop and Reverse Strategy not working MT5posted in Bug Reports
-
RE: Stop and Reverse Strategy not working MT5posted in Bug Reports
Trust me I've tried moving around the blocks, there's an issue with the code.
Here's a screenshot of the error. -
Stop and Reverse Strategy not working MT5posted in Bug Reports
Hey here is a shared copy of a very Simple Stop and Reverse strategy for MT5.
https://fxdreema.com/shared/6vQgsR9jd
Doesn't work for some reason, will not run optimization tests. I've messed around with changing where to put the once per bar block but doesn't make a difference.
-
RE: Simple stop and reverse strategy not workingposted in Questions & Answers
this is the whole strategy, do you mean that the brokers data is not good enough? I've run past strategies on the same time frame and had no issues, but whenever I try any sort of stop and reverse strategy with fxdreema on mt5 it doesn't work.
-
Simple stop and reverse strategy not workingposted in Questions & Answers
Hey guys here's the link to my project
https://fxdreema.com/shared/7lXrHKmSbI'm just trying to create a simple stop and reverse strategy in mt5 but it doesn't seem to work once I try and optimize it. It just freezes in the optimizer after running 25/100 tests. Just trying to get some ideas. Thanks.
-
RE: Custom Max Formulaposted in Tutorials by Users
that's a cool idea. I wouldn't know how to code that. But I did find some good source code for k-ratio.
here's a link
http://klondikefx.com/equity-curve-straigthness-optimization-with-metatrader/combining that with other metrics can provide some good in sample results that will also correlate to a good number of oos results that are also favourable.
-
RE: Custom Max Formulaposted in Tutorials by Users
@tipsywisdom lol what I didn't see a pornsite bookmark? Maybe you thought mega was one but idk. Anyways let me know if you guys think of any other combos.
-
Custom Max Formulaposted in Tutorials by Users
Hey guys here's a video I made for making a custom max formula and adding it to your fxdreema projects. Let me know if you come up with any other good combinations for formulas. Cheers. link text
-
RE: Create a Custom Max Formulaposted in Questions & Answers
@roar okay I'll try the Sharpe * trades. I'm really interested in the complex criterion formula in mt5 but it doesn't produce enough results. I would love to know how that formula is written.
-
RE: Create a Custom Max Formulaposted in Questions & Answers
@l-andorrà yes my code works I was just wondering if anyone else might have something a bit better. Maybe incorporating Sharpe ratio?
-
Create a Custom Max Formulaposted in Questions & Answers
Hey Traders, so i've been messing around with the OnTester function and I've come up with a formula that is okay when using the custom max input.
double OnTester(void)
{
return ((TesterStatistics(STAT_PROFIT)+TesterStatistics(STAT_INITIAL_DEPOSIT))*TesterStatistics((STAT_RECOVERY_FACTOR));
}Here's the code here. I was wondering if anyone else had something interesting that they might be able to share. Always interested to see if someone might have a better formula.
-
RE: Easy way to add "custom max" criteria to your optimizationsposted in Tutorials by Users
Great article. Would you know how to write the code to make the custom max be balance max + recovery factor max? Thanks.
-
RE: Close partial profit works in mt4 but not mt5.posted in Bug Reports
@l-andorrà it's the block for sure. I've talked to 2 other people and they've had the exact same problem where as in mt4 the same sequence works. I've even tried converting the file in mt4 to mt5 where it worked in mt4 but did not in mt5 so.
-
RE: Close partial profit works in mt4 but not mt5.posted in Bug Reports
@l-andorrà the point of the block is to stop it from closing the whole position.
-
Close partial profit works in mt4 but not mt5.posted in Bug Reports
Like the title says when I try and close partial profit and use the block "once per trade/order" it works for me in mt4, but if I try and do the same thing with the block "once per position/order" in mt5 it closes both the original and the partial order at the same time.

-
RE: Time filter constansposted in General Discussions
If you only care about the hourly optimization and not the minutes then you can just set it to a double.
This is what I do when I'm optimizing. Start hour I set at 1 and then step 1 and end at 23. End hour I set at 2, step 1 end at 24. Hope this helps. -
RE: Tester: Cannot Load EAposted in Questions & Answers
@l-andorrà Got it sorted thanks. It was an issue with one of my constants. Cheers.

