Problem with custom indicator ex5
-
Ok, I removed all blocks from Betting category (they are hidden actually) and all these money managements are now in Buy now/Sell now. Because this is new update, I expect problems, but you can try it now. Martingale also works in some way when trades are not closed - it gets the profit of the newest one and calculates the next lot size.
-
I think it was a good idea, but I just needed to have the "Risk Management Ryan Jones" within block "Buy Now and Sell Now (Custom Martigale)"
Thus I can not do as accurate.
-
Now this is something that I can't understand why

"Buy Now and Sell Now (Custom Martigale)" is still available, if you have these blocks somewhere you can copy them, but it sounds weird to me
-
I still have these blocks in my last strategy. I need within this block that has risk management Ryan Jones.
Or it is possible to use martigale strategy with Ryan Jones.
Management Ryan Jones will be the main, but if the previous order close negative, the next order will open in larger lot to compensate for previous lose. A martigale, for example.
-
I'm not sure these are compatible, Ryan Jones uses some variables for memory, so it does not depend on the last trades, but on these variables. Martingale reads the last closed trade lot size.
You can for example have 2 Buy now blocks, one for Ryan, one for Martingale. And before martingale to check if the last closed trade was losable. Or profitable

-
Okay, so how do I use 2 blocks, one for Ryan Jones and another for martigale? It has to be one order at a time and only work martigale block after block of Ryan Jones.
-
This is a bling shot because I can't get why mixing those 2 methods: https://fxdreema.com/shared/Uewkhic5d
In my backtest Martingale reached more than 30 lots (and errors of not enough money), whine Ryan Jones is somewhere at 0.02 lots. -
Ok fxDreema. Thank you. I see you got a bit of work right? If it was within a block is more practical. But okay, it's just my opinion. What matters is what works.
One idea would also be an option within the block when you have no enough money, lots reset to their initial values​​.
Because with a few parameters I tested with martigale was profitable. Only stopped operating because the lots were too big and did not open more positions. -
I removed 20 whole blocks and added everything from them in 2 blocks. How can I know that someone will ask for money management in money management 2 days later. Now what can I do - to turn on old blocks again
I don't know, I didn't liked these blocks and I wanted to put all money managements in one place.Well, Martingale fails when you don't have enough money. I think it's better if the maximum available lot size is taken if the requested is too big, so I have to do something about this. I'm just not sure how to get the maximum available value in MQL.
Otherwise resetting to initial lot is not that hard in real situation, if you reach that point you will pull your hair out and restart the EA 100 times a day
Or try this option: http://prntscr.com/41s9zl
-
__Well, Martingale fails when you don't have enough money. I think it's better if the maximum available lot size is taken if the requested is too big, so I have to do something about this. I'm just not sure how to get the maximum available value in MQL.
Otherwise resetting to initial lot is not that hard in real situation, if you reach that point you will pull your hair out and restart the EA 100 times a day :)[/quote:26qnjzzb]
Generally the maximum allowed by a brokerage is 50 lots. Could put the maximum choice of lots to be restarted without knowing what maximum MQL5.__Or try this option: http://prntscr.com/41s9zl[/quote:26qnjzzb]
I'm already testing this option.
-
__
Generally the maximum allowed by a brokerage is 50 lots. Could put the maximum choice of lots to be restarted without knowing what maximum MQL5.
[/quote:25nsfick]Someone else will say that there is no need for reset and it's better to take the maximum lots. Which sound logical, because the strategy already want more that the account has. But I think the option resolves this problem.
-
Another problem are also errors that appear to indicator. Always put into the indicator folder, but continues with the error message.
The EA works correctly, but the message still appears.
GE 0 21:11:41.007 Experts AutoTrading is enabled
GE 2 21:12:04.163 TCF Turtle v2.0 (EURUSD.m,H1) cannot load custom indicator 'pz-turtle-trading-mt5' [4802]
LF 0 21:12:04.163 TCF Turtle v2.0 (EURUSD.m,H1) Error: Indicator not handled. (handle=-1 | error code=4802)
...
...Attached is the log file.
......
20140715.log -
It's ok for me: http://prntscr.com/436gjm
I think the problem is in the way MetaTrader is started. In fxDreema in Global Options there are 2 paths - terminal and data path. When both are the same and you click on the button to start MT, it starts in portable mode and then MT's data path is where MT is installed - not the one written in fxDreema options.
Better write the actual terminal path, something like C:\ProgramFiles\MetaTrader 5\ or whatever it is. The data path should be this weird path. In this case when you run MT from fxDreema, it will start in normal mode.
-
Yeah .. for me also works correctly in backtest. The problem occurs running on real account.
This also running on my VPS, and not on my PC.
There also have indicators, EA, etc..
Also have a way to disable these errors in a parameter, etc., because we already know fuciona real, but the error keeps popping up and can leave large log files.
But that's not important. Do not you worry, but I believe it could be useful.
-
Indicator errors are ok if they are small numbers, because of... long story, but when these appears all the time it's not ok

If you have some simple custom indicator with 2-3 parameters, will it work correctly? -
__If you have some simple custom indicator with 2-3 parameters, will it work correctly?[/quote:29q32b7q]
I have turtlechanneli, which is within my bookmarks but do not know how to use it. You know uses it? -
I don't use any indicators for myself, because I don't trade. But if you want to use some, the first thing is to know how it will help you. Use something that you need. Don't use a custom indicator only because it looks beautiful and you think it should have some magical power. No, indicators are not crystal balls, they just convert history data into lines or signals.
When you know that some indicator will help you, then check if it will work in the EA. Indicators have buffers (or those channels where they send information to the EA) and you must know what is inside those buffers in order to use them. Why? Because custom indicators are made by different people and even if there are general rules, often people does not follow them exactly. Someone will use EMPTY_VALUE, other will use 0, other will use -1, other will use something else. So check that indicator before use. I made this block "Indicator tester" to do that... of course it's not the best, but it works, it's better than nothing.
How to add indicator into fxDreema... when it is .mq4/.mq5 it's probably easy. When it is .ex4/.ex5... a little bit complicated, but no so hard: https://fxdreema.com/documentation/proj ... indicators
-
Yes You have already taught me to add a custom indicator.
I'm testing in MT4, but does not appear completely visual backtest, and it seems to me that this not opening orders in backtests.
https://fxdreema.com/shared/5ua7jrVld

......
DunamisFX MetaTrader 4.png -
Do you have this indicator for MQL4? If it works when you manually add it, then it must work in visual backtest if it's parameters are fine. Look at the log for some error messages.
-
I can not make it work in MT4. Strategy 1 does not open orders, and strategy 2 only open sell positions.