Hello fxDreema.
Could do to fix the MM Betting: Martigale Paroli the parameters reset after changing the numbers ... how to boolean true or false?
Hello fxDreema.
Could do to fix the MM Betting: Martigale Paroli the parameters reset after changing the numbers ... how to boolean true or false?
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
__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?
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.
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
__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.
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.
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.
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 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.
I tried, but unfortunately could not make it work these blocks. I can not filter lose when it has to open the next position. This opening at all times.
I also saw that no risk management Ryan Jones on the block "Buy Now (Custom Martigale).
Strategy:
The Entry Strategy
The Turtles learned two breakout variants or "systems". System One (S1) used a 20-day price breakout for entry. However, the entry was filtered by a rule that was designed to increase the odds of catching a big trend, which states that a trading signal should be ignored if the last signal was profitable.
But this filter rule had a built-in problem. What if the Turtles skipped the entry breakout and that skipped breakout was the beginning of a huge and profitable trend that roared up or down? Not good to be on the sidelines with a market taking off!
If the Turtles skipped a System One 20-day breakout and the market kept trending, they could and would get back in at the System Two (S2) 55-day breakout. This fail-safe System Two breakout was how the Turtles kept from missing big trends that were filtered out.
The entry strategy using System Two is as follows:
Buy a 55-day breakout if we are not in the market;
Short a 55-day breakout if we are not in the market.
The entry strategy using System One is as follows:
Buy a 20-day breakouts if last S1 signal was a loss;
Short a 20-day breakouts if last S1 signal was a loss.
The Turtles calculated the stop-loss for all trades using the Average True Range of the last 30 days, a value which they called N. Initial stop-loss was always ATR(30) * 2, or in their words, two volatility units. Additionally, the Turtles would pile profits back into winning trades to maximize their winnings, commonly known as pyramiding. They could pyramid a maximum of 4 trades separated from each other by 1/2 volatility unit.
Ok Thanks fxDreema. I'll be testing the fixed block.
Sorry fxDreema. I think I expressed myself badly. This case is the "positions".
I tried to put this block, but as he had no position previously driven, not opened any order, logically.
I need the block "Check last closed trade profit" or another similar block, run from the second open position, based on the first, obviously.
If in case the 1st previous position is profitable, not open the 2nd position. Only the 3rd position opens.
If any previous position be closed with the loss, you can open the next.
Could you please show me a sample project that works this way?
May be using the block "Check last closed trade profit", but as I do to be fired the first position, without having closed earlier another position?
The first needs to be activated, and then run this rule.
I got it! This working buy and sell. Had to put a block of "close position" preceding the "If position is running"
Now I wonder how I do to filter orders?
It's like this ... when the first order closing profitable, the second order does not open, only the third.
That is, if the previous order is negative, the next order can be opened. If the previous order is positive, the next order does not open.
__Try this: https://fxdreema.com/shared/ojzKofPgb
I'm not sure about the way positions are opened, I used those blocks in the way you use it, but at least indicator signals are there[/quote:3jab1t6z]
I tried this way, but only open orders to sell, but not buy.
__And please, try "Indicator tester" block at least once[/quote:3jab1t6z]
Yes, I did the test indicator, and I only came with 16 digit numbers e+308
Okay, thanks. Have tested candle ID 1, 2 and 3, but still without opening orders. I'm testing the buffers 0 and 1.'s Going to be?
Thanks fxDreema. Now yes I can see the indicator.
But I have a problem. I can not operate the buy and sell orders. I tried the simplest way, but still does not work.
I need to work.
Also accurate that when the first order is triggered, the second need not trigger. The second signal will only be triggered when the first signal is closed negative.
I made the correction indicator, but is still not working.
I can not hide the indicator, because I need to study.
If possible please correct indicator for me so I can test it.
Hello
EA does not work with turtle trading custom indicator for MT5. As you can see, manually added the indicator data. Also added the indicator in the indicators folder.
Error: 2014.06.22 17:32:25 Tester expert file C:\Users\Thiago\AppData\Roaming\MetaQuotes\Terminal\FE0E65DDB0B7B40DE125080872C34D61\MQL5\Indicators\pz-turtle-trading-mt5 1.0 open error [2]
Link to my project: http://www.mql5.com/en/market/product/1804
......
pz-turtle-trading-mt5.ex5