Cool system! - page 41

 
Sasha81 >> :

This is a subjective opinion. If a candlestick pattern was formed on the H4 interval at one broker, how can it not be formed at another. If the quotes are different, then in the worst case not more than 5 points (in four-digit representation). Hence, how the results of trading on H4, even with confirmations according to the principle of three screens on H1 and M30 may differ significantly?


The patterns will differ at least because the opening times of the day at different brokers do not coincide. At one broker GMT+1, at another broker GMT+2 etc.

So different hourly candles will hit the candle on H4 and D1 timeframe, on D1 of course least noticeable.

 
boing9267 >> :

I'm posting the logs.

And this is what the chart window looks like with the EA.



Why are there no indicators on the chart? The Expert seems to be written in such a way that indicators are needed in the window.
 
yuripk >> :

The patterns will differ from broker to broker if only because the opening times of the day at different brokers do not coincide. One broker has GMT+1, another broker has GMT+2, etc.

That's why different hourly candlesticks will fall in the candlestick on H4 and D1 timeframe, on D1 of course less noticeable.


A weighty argument. Thank you! (Laughs) Hadn't thought of that.

 

Data capture once every 30 min.

void start()
 {
   static double trend. buy. m30, trend. sell. m30, trend. buy. h1, trend. sell. h1, trend. buy. h4, trend. sell. h4;
   static color ZH1, ZH4, ZD1, expRecomend;
   static datetime dtM30 = 0;
   datetime dt = iTime(NULL, PERIOD_M30, 0);
   if ( IndsDataEveryTick || dt != dtM30)
   {
      dtM30 = dt;
      // TRO_InsideBar_Plot2.
      if (IsTesting()) iCustom(NULL, PERIOD_H4, "TRO_InsideBar_Plot2", 50, true, Blue, Lime, 0, 0);
      double LineGreen = ObjectGet("HIGH_0", OBJPROP_PRICE1);
      double LineRed = ObjectGet("LOW_0", OBJPROP_PRICE1);

      // IBFX - CPR.
      if (IsTesting()) iCustom(NULL, PERIOD_H4, "IBFX - CPR", true,  true, true, true, DarkBlue, DimGray, 
                                                                Lime, Red, Blue, FireBrick, 50, 0, 0);
      double StopLoss;
      if ( SL > 0) StopLoss = SL;
      else StopLoss = ObjectGet("STOPTARGET", OBJPROP_PRICE1);
      double TakeProfit;
      if ( SL > 0) TakeProfit = 2* SL;
      else TakeProfit = ObjectGet("PROFITTARGET", OBJPROP_PRICE1);
      ZH1 = ObjectGet("ScanH1O", OBJPROP_COLOR);
      ZH4 = ObjectGet("ScanH4O", OBJPROP_COLOR);
      ZD1 = ObjectGet("ScanD1O", OBJPROP_COLOR);
      expRecomend = ObjectGet("Commentary4", OBJPROP_COLOR);
  
      // Trend.
      trend. buy. m30 = iCustom(NULL, 30, "trend", 15, 3, 0, 0, 0);
      trend. sell. m30 = iCustom(NULL, 30, "trend", 15, 3, 0, 1, 0);
      trend. buy. h1 = iCustom(NULL, 60, "trend", 15, 3, 0, 0, 0);
      trend. sell. h1 = iCustom(NULL, 60, "trend", 15, 3, 0, 1, 0);
      trend. buy. h4 = iCustom(NULL, 240, "trend", 15, 3, 0, 0, 0);
      trend. sell. h4 = iCustom(NULL, 240, "trend", 15, 3, 0, 1, 0);
   }
   ...
 }

"IndsDataEveryTick=true" please check it yourself, because with my computer it's a long wait.


 

Let me break it to you guys. I've been watching you for a day now, and what do I see? You're grabbing the pseudo-grial, pseudo. Because I looked at all the indicators. And here's the thing:

Sell order. The price has changed 6 points down from the open position, but Takeprofit has moved already 13 points, we are waiting for the time X and we see that "corrected" Takeprofit has missed exactly 7 points (at that it was due to Low), so it's a real grail. Good luck to all.

 

to artsnz

+1

All right, if I were anyone else, not just the source code, even a compiled version.

 
boing9267 писал(а) >>

I'm posting the logs.

And this is what the chart window looks like with the Expert Advisor.

If you took the indicators from the first post, you need to put the files in the appropriate folders, restart the terminal and apply the same template to the chart.

And then the advisor should be attached.

>> Good luck.

 

Folks, can someone help....

This EA requires trend.ex4 indicator...

Give please.... Thanks

 
gdemon >> :

Folks, can someone help....

This EA requires trend.ex4 indicator...

Give please.... Thanks

Files:
trend_2.mq4  3 kb
 

Let's digress into the principles of the system.



What does the system consist of?

1) Detecting the trend direction. The indicator: "Trend"

2) Detection of the signal lines (borders of the internal bar) The indicator: "TRO_InsideBar_Plot2"
. You can learn about the theory of the internal bar and the trading principles from the text file attached to this post.

3) Identification of a candlestick pattern. Indicator: "IBFX - CPR" (rus)
About the candlestick configuration - patterns, you can read, watch videos, examine graphically presented patterns here: http://fxcandle.ru/




Principles of signal formation:

1) Determine the trend direction by the "Trend" indicator
2) Identify the signal lines (inside bar) by the "TRO_InsideBar_Plot2" indicator and prepare to open a deal in the direction of the open trend, after the breakdown of the signal line in this direction.
3) Identify the candlestick pattern using the indicator "IBFX - CPR" (rus). The patterns are interesting only in the direction of the trend, which complements our intention to open the trade.




Trading strategy:
A. Elder's Three Screens Theory Principle. You can read in more details in the attached file.

1) We determine the working time frame.
2) To determine the trend direction in which we are going to conduct transactions, we use the TF approximately five (5) times greater than the working one.
3) To determine the point of entering the market, we use TF, which is approximately five (5) times less than the working one.




As an alternative, a brief algorithm for transaction opening:

1) Determine the working TF. For example it will be H1
2) Determine the trend direction on the TF about five times more than the working one. For this purpose we take the TF H4. This will be shown by the indicator "Trend"
3) We wait for the formation of signal lines (internal bar) in the older TF H4 (in this case from the working one), which will be shown by the indicator "TRO_InsideBar_Plot2".
4) After the formation of the internal bar (signal lines), wait for the formation of a directional movement similar to the older TF (in this case H4) and
candlestick pattern, which will show indicator "IBFX - CPR" (rus)
5) We enter the transaction in the lower TF (of the working) in this case, take M15. Profitable entry point into the deal at M15 look for additional analysis.
Files:
vnytrenneitbar.rar  1007 kb
3ekrana.rar  831 kb
indikators_1.rar  3043 kb
svechi.rar  258 kb