| / | Articles |
Articles
Examples
Drawing Horizontal Break-Through Levels Using Fractals
To post a new article, please log in or register
|
Drawing Horizontal Break-Through Levels Using Fractals [ ru ]Fractals
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Symbol | EURUSD (Euro vs US Dollar) | ||||
| Period | 1 Час (H1) 2008.01.02 12:00 - 2008.06.30 23:00 (2008.01.01 - 2008.07.01) | ||||
| Model | Every tick (the most precise method based on all available least timeframes) | ||||
| Parameters | TakeProfit=50; Lots=0.1; TrailingStop=30; MACDOpenLevel=3; MACDCloseLevel=2; MATrendPeriod=26; | ||||
| Bars in test |
4059 | Ticks modelled |
1224016 | Modelling quality |
90.00% |
| Missmatched charts errors | 1 | ||||
| Initial deposit |
10000.00 | ||||
| Total net profit |
182.00 | Gross profit |
1339.00 | Gross loss |
-1157.00 |
| Profit factor | 1.16 | Expected payoff |
3.79 | ||
| Absolute drawdown |
697.00 | Maximal drawdown |
827.00 (8.16%) | Relative drawdown |
8.16% (827.00) |
| Total trades |
48 | Short positions (% won) | 28 (82.14%) | Long positions (% won) | 20 (85.00%) |
| Profit trades (% of total) | 40 (83.33%) | Loss trades (% of total) | 8 (16.67%) | ||
| Largest | profit trade | 50.00 | loss trade | -492.00 | |
| Average | profit trade | 33.48 | loss trade | -144.63 | |
| Maximum | consecutive wins (profit in money) | 14 (546.00) | consecutive losses (loss in money) | 3 (-350.00) | |
| Maximum | consecutive profit (count of wins) | 546.00 (14) | consecutive loss (count of losses) | -492.00 (1) | |
| Average | consecutive wins | 7 | consecutive losses | 1 | |

| Symbol | EURUSD (Euro vs US Dollar) | ||||
| Period | 1 Час (H1) 2008.01.02 12:00 - 2008.06.30 23:00 (2008.01.01 - 2008.07.01) | ||||
| Model | Все тики (наиболее точный метод на основе всех наименьших доступных таймфреймов) | ||||
| Bars in test |
4059 | Ticks modelled |
1224016 | Modelling quality |
90.00% |
| Missmatched charts errors | 1 | ||||
| Initial deposit |
10000.00 | ||||
| Total net profit |
334.00 | Gross profit |
1211.00 | Gross loss |
-877.00 |
| Profit factor |
1.38 | Expected payoff |
5.14 | ||
| Asolute drawdown |
211.00 | Maximal drawdown |
277.00 (2.75%) | Relative drawdown |
2.75% (277.00) |
| Total trades |
65 | Short positions (% won) | 41 (41.46%) | Long positions (% won) | 24 (62.50%) |
| Profit trades (% of total) | 32 (49.23%) | Loss trades (% of total) | 33 (50.77%) | ||
| Largest | profit trade |
50.00 | loss trade | -102.00 | |
| Average | profit trade | 37.84 | loss trade | -26.58 | |
| Maximum | consecutive wins (profit in money) | 3 (150.00) | consecutive losses (loss in money) | 4 (-168.00) | |
| Maximum |
consecutive profit (count of wins) | 150.00 (3) | consecutive loss (count of losses) | -168.00 (4) | |
| Average | consecutive wins | 2 | consecutive losses | 2 | |

The mentioned tests show that the profitableness has grown up and the drawdown has decreased as well, using the FractalsLine.
Translated from Russian by MetaQuotes Software Corp.
Original article: http://articles.mql4.com/ru/220
![]() Grouped File Operations
It is sometimes necessary to perform identical operations with a group of files. If you have a list of files included into a group, then it is no problem. However, if you need to make this list yourself, then a question arises: "How can I do this?" The article proposes doing this using functions FindFirstFile() and FindNextFile() included in kernel32.dll. |
![]() How to Write Fast Non-Redrawing ZigZags
A rather universal approach to writing indicators of the ZigZag type is proposed. The method includes a significant part of ZigZags already described and allows you to create new ones relatively easily. |
| Previous | Next |
The variable used for short-position stoploss appears to be incorrectly specified as FLL:
original code
if(Close[0]<FLL) //Trailing-stop for the short positions { if(OrderStopLoss()>FLL+(Ask-Bid+3)*Point || OrderStopLoss()==0) { OrderModify(OrderTicket(),OrderOpenPrice(),FLL+(Ask-Bid+3)*Point,OrderTakeProfit(),0,Red); return(0); } }
Correct code(?) using FLU as the price level to base the new short-position's stoploss:
edit: also the use of (Ask-Bid+3)*Point is incorrect...should be simply Ask-Bid+3*Point without the parentheses.
if(Close[0]<FLL) //Trailing-stop for the short positions { if(OrderStopLoss()>FLU+Ask-Bid+3*Point || OrderStopLoss()==0) { OrderModify(OrderTicket(),OrderOpenPrice(),FLU+Ask-Bid+3*Point,OrderTakeProfit(),0,Red); return(0); } }
To be expected to do?
I have put in several of my graphics and so far
nothing has happened.
Explain please.
No, it seems much better than BB.
This one gives you a much sharper information and narrow range.
I think a piece of code is missing anyway... I couldnt visualize the bars then I noticed that you dont define the ...
I added this 2 lines:
IndicatorBuffers(2);
IndicatorDigits(Digits);
just before SetIndexStyle lines... now it works perfectly.
Thanx for sharing!
Zyp
Hi
I like this a lot but can someone please tell me how to attach it to chart. I have tried the usual but I cannot get the lines drawn on a chart.
Thanks
Ross