![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
engcomp: ...If you use the EA just for entry and monitor the exit manually (can't be done in back testing), it is highly profitable...
Engcomp, do you have an example of an Exit which cannot be done in back-tests? :)
hi, even if the code is removed by the OP the code is still in the database of the forum.
you can change the link of some other post, or if you don't want to guess the original filename you could ask the cache of a search engine ;)
I am not sure if SimpleEntry.ex4 is public domain or an indicator that OP bought.
In any case, I wouldn't bother because the signal quality is very similar to Heiken Ashi, which is public domain.
engcomp: ...If you use the EA just for entry and monitor the exit manually (can't be done in back testing), it is highly profitable...
Engcomp, do you have an example of an Exit which cannot be done in back-tests? :)
For example, the size of trailing stop is set in Properties and can't be reset while the test is running because the properties window is grayed.
Unless there is a way to change properties when a test is running? If there is, I would like to know because I want to do a back-test of FAPturbo.
To do that, I need to get into Properties to enter my license number, which gets set to 12345 when the test chart loads.
For example, the size of trailing stop is set in Properties and can't be reset while the test is running because the properties window is grayed.
Unless there is a way to change properties when a test is running? If there is, I would like to know because I want to do a back-test of FAPturbo.
To do that, I need to get into Properties to enter my license number, which gets set to 12345 when the test chart loads.
And why not change the trailing stops within the ea? For example set the trailing stop to a static variable instead of a global variable and do calculations on it. I don't know much about commercial software back-testing. There would seem allot of bottle-necks there from both the software maker, meta-trader and brokers for reasons I'd rather save for another topic ;)
And why not change the trailing stops within the ea?
See now you've gone and peaked my interest.... I was going to take a look at what the iny does but I see OP has been back to the thread to remove the original code. Always fun to play around with this stuff... oh well.
I did the same for CY 2009, and am currently optimizing it on one of my desktops... I wouldn't trust it though cuz my backtest data sucks (like 42% accurate).. But look at the initial optimization results.. I wonder, is it profitable because of the indicator is good or is it just coincidental that the SL and TPs are perfectly set..
PS. unlike engcomps findings, mine are positive.. but i'm using a trailing stop as % of profit (ie trailing stop always = X% of the trade's profit) I'm not an expert on it so tell me what you think.
My experts do change the trailing stop within the EA based on the SAR value. I also have the possibility of setting stops dynamically based on ATR. I only quoted the above as an example of not being able to trade manually within a back test to answer your question "Engcomp, do you have an example of an Exit which cannot be done in back-tests?" The simple matter of closing a position manually cannot be performed within an EA test.
Why would you want to close an order manually within an EA test? IMO: this is a psychological issue which would most certainly transfer to real trading. If you have a Criterion within your head for closing an order manually, why not transfer it into programming language. If your answer is because you don't have the technical knowledge of programming such an EA then I'd agree with you. If you answer is because it's Not programmable then I wanna know what it is. I'm just asking because I don't wanna waste my time trying to learn how to program something which is Not programmable.
I did the same for CY 2009, and am currently optimizing it on one of my desktops... I wouldn't trust it though cuz my backtest data sucks (like 42% accurate).. But look at the initial optimization results.. I wonder, is it profitable because of the indicator is good or is it just coincidental that the SL and TPs are perfectly set..
PS. unlike engcomps findings, mine are positive.. but i'm using a trailing stop as % of profit (ie trailing stop always = X% of the trade's profit) I'm not an expert on it so tell me what you think.
The numbers look suspicious. For example:
Line one has a drawdown of $5,960, TP 0.0085 and SL 0.002 (20 pips). At lot size 0.1, the drawdown equals 298 consecutive losses of $20. Total trades is 257!
The risk/reward ratio of 20/85 looks about right, but most other trades have very high risk ratios, up to 1760/125.
Personally, I couldn't stand by and watch a trade go south by 1760 pips.
Why would you want to close an order manually within an EA test? IMO: this is a psychological issue which would most certainly transfer to real trading. If you have a Criterion within your head for closing an order manually, why not transfer it into programming language. If your answer is because you don't have the technical knowledge of programming such an EA then I'd agree with you. If you answer is because it's Not programmable then I wanna know what it is. I'm just asking because I don't wanna waste my time trying to learn how to program something which is Not programmable.