Discussion of article "Expert Advisor based on the "New Trading Dimensions" by Bill Williams" - page 5

 
Alexey - hello!

What can be the problem that the EA is not visible in the terminal?
And in which folder to install the file h_TS_BW_2018.mqh?

I want to join the testing, but I can not start the EA.

When trying to compile it gives a dozen errors

And as far as I understand, in the new version, not added the possibility -
improved entry by fractal "special blue colour"?
Files:
 
Andrey Dyachenko:
Alexey - hello!

What could be the problem that the Expert Advisor is not visible in the terminal?
And in which folder to install the file h_TS_BW_2018.mqh?

I want to join the testing, but I can't launch the Expert Advisor.

When trying to compile it gives a dozen errors

And as far as I understand, the new version does not add the possibility -
of improved entry by fractal "special blue colour"?

There are only two files attached at the end of the article:

  • "tc_bw_new_version_2-02.mq5" - expert file to place in [fata folder]\MQL5\Experts\tc_bw_new_version_2-02.mq5
  • "h_ts_bw.mqh" - place the included file in [data folder]\MQL5\Include\h_ts_bw.mqh

In the file "h_ts_bw.mqh" two structures should be cut out and placed in the header of the file - because they are accessed from outside. The corrected file (version "1.1") is attached to this message.

//+------------------------------------------------------------------+
//|h_TS_BW.mqh |
//|olyakish |
//| http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "olyakish"
#property link      "http://www.mql5.com"



#include <Trade\Trade.mqh>
#include <Trade\SymbolInfo.mqh>
#include <Trade\PositionInfo.mqh>
#include<Trade\HistoryOrderInfo.mqh>
//---
// enumerated list of alligator trailing stop options
enum type_support_position
  {
   Not_used=-1,               // Stop price maintenance is not used for the position
   Trailing_On_Lips=0,        // Trailing stop on the Lip Line.
   Trailing_On_Teeth=1,       // Trailing stop on the Tooth Line.
   Trailing_On_Jaws=2,        // Trailing stop on the Jaw Line.
   Close_On_Lips=3,           // Close a position if the price closed behind the Alligator Gubimi
   Close_On_Teeth=4,          // Closing a position if the price closed behind the Alligator's Teeth
   Close_On_Jaw=5,            // Closing a position if the price closed behind the Alligator Jaw
   Close_Out_Alligator=6      // Closing behind the opposite Alligator boundary
  };
//---
struct            s_input_parametrs // configuration parameters structure
  {
   double            lot;                // lot for trading (incoming)
   type_support_position support_position; // Maintenance of the stop price at the position
   int               alligator_jaw_period;//Alligator: jaw line period.
   int               alligator_jaw_shift;//Alligator: shifting jaw line
   int               alligator_teeth_period;//Alligator: tooth line period
   int               alligator_teeth_shift;//Alligator: shifting the tooth line
   int               alligator_lips_period;//Alligator: lip line period.
   int               alligator_lips_shift;//Alligator: lip line shift.
   int               max_4_dimension_zone;  // Maximum number of consecutive bars of zones of the same colour
   bool              add_1_dimension;  // Allow refilling by fractals
   bool              add_2_dimension_bludce;  // Enable refilling on the "saucer (AO)" signal
   bool              add_2_dimension_cross_zero;  // Allow refuelling on the signal "zero line crossing (AO)"
   bool              add_3_dimension_use_2_bars;  // Allow to buy on the signal "buy above 0, sell below 0" (AC 2 bars)
   bool              add_3_dimension_use_3_bars;  // Allow to buy on the signal "buy below 0, sell above 0" (AC 3 bars)
   bool              add_4_dimension_zone;  // Allow refuelling on signals from red or green zones
   bool              add_5_dimension;       // Allow refilling by signals from the balance line
   bool              trall_4_dimension;  // Allow trawl on 5 consecutive bars of zones of the same colour
   bool              agress_trade_mm;  // Aggressive style of refill to open position
  };


and also fix the error in

//+------------------------------------------------------------------+
//| Initialising the class+
//| Symbol_for_trade - Symbol for trade +
//| Period_for_trade- Period of the chart for trading +
//| In case of unsuccessful initialisation returns false - re-initialisation is required
//+------------------------------------------------------------------+
bool C_TS_BW::Init(string Symbol_for_trade,ENUM_TIMEFRAMES Period_for_trade,s_input_parametrs  &inp_param_tmp_)
  {
   inp_param=inp_param_tmp_;
Files:
h_ts_bw.mqh  135 kb
 
Vladimir Karputov:

There are only two files attached at the end of the article:

  • "tc_bw_new_version_2-02.mq5" - place the Expert Advisor file in [fata folder]\MQL5\Experts\tc_bw_new_version_2-02.mq5
  • "h_ts_bw.mqh" - place the included file in [data folder]\MQL5\Include\h_ts_bw.mqh

In the file "h_ts_bw.mqh" two structures should be cut out and placed in the header of the file - because they are accessed from outside. The corrected file (version "1.1") is attached to this message.


and also fix the error in

Vladimir - thanks! installed, started testing.

 
Andrey Dyachenko:

Vladimir - thank you! installed, started testing.

You are welcome :)

 
wmpbass:

Hello, good afternoon, first let me congratulate you on your excellent code, I wanted to ask for help for it, when trying to compile the file I miss an error, I read the code and I think tyodo is ok, but I don't stop jumping, I leave error images

Read post .

Обсуждение статьи "Торговый эксперт по книге Б. Вильямса "Новые измерения в биржевой торговле""
Обсуждение статьи "Торговый эксперт по книге Б. Вильямса "Новые измерения в биржевой торговле""
  • 2017.08.14
  • www.mql5.com
Вильямса, особенности их реализации и результаты тестирования на исторических данных.
 

EA generates an error during compilation


 

Good afternoon.

This variant compiles.

Files:
TS_BW_mod.mq5  12 kb
h_TS_BW_mod.mqh  136 kb