Navigation:Home > Content >


Time: 2013-07-26 | Download file:BT_1_ssa.mq4

//исправлено 6.05.2007 Ларионов Павел 
//|                                                  BrainTrend1.mq4 |
//|                                          BrainTrend Black edition|
//|                             |
#property copyright "BrainTrend Black edition "
#property link      ""
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Blue
//---- input parameters
extern int       CountBars  = 500;
extern int Lag                  =   25;
   extern int NumberOfComputations =    2;
   extern int NumberOfBars         = 2000;
   extern int Price                = PRICE_CLOSE;
   extern int       Slowing = 1;
extern int       JStoPhase = 1;
//---- buffers
double Ind_Buffer1[];
double Ind_Buffer2[];
double value2,Range,val1,val2,d,val3;
int    shift,limit,f,p,x1,x2,value11;
//| Custom indicator initialization function                         |

int init()
//---- indicator 0
//---- indicator 1  
   string short_name;
   SetIndexLabel(1,""+short_name+"_Up"  );
   f=7; d=2.3; x1 = 80; x2 = 20; value11 = 9;
//| Custom indicator iteration function                              |
int start()
  double CloseVal, CloseVal2, HighVal, LowVal;
  Comment("BrainTrading Inc. System 7.0");
   int    counted_bars=IndicatorCounted();
   if (Bars < 11)return(0);
   if (CountBars > Bars-1-11)CountBars=Bars-1-11;
   limit = CountBars;// -counted_bars
      Range = iATR(NULL,0,f,shift)/d;
     value2 = iCustom(Symbol(),Period(),"JStochastic",value11,value11,Slowing,JStoPhase,0,shift);
      val1 = 0.0;
      val2 = 0.0;
       CloseVal  = NormalizeDouble(iCustom(Symbol(),Period(),"SSA of price",Lag,NumberOfComputations,NumberOfBars,PRICE_CLOSE,0,shift),Digits);
      CloseVal2 = NormalizeDouble(iCustom(Symbol(),Period(),"SSA of price",Lag,NumberOfComputations,NumberOfBars,PRICE_CLOSE,0,shift + 2),Digits);
      HighVal = NormalizeDouble(iCustom(Symbol(),Period(),"SSA of price",Lag,NumberOfComputations,NumberOfBars,PRICE_HIGH,0,shift),Digits);
      LowVal  = NormalizeDouble(iCustom(Symbol(),Period(),"SSA of price",Lag,NumberOfComputations,NumberOfBars,PRICE_LOW,0,shift),Digits);
      val3 = MathAbs(CloseVal - CloseVal2);
      if (value2 < x2 && val3 > Range) p = 1;
      if (value2 > x1 && val3 > Range) p = 2;
      if (value2 < x2 && (p == 1||p == 0))
         if ( val3 > Range)
            val1 = HighVal;
            val2 = LowVal;
      if (value2 > x1 && (p == 2||p == 0))
         val2 = HighVal;
         val1 = LowVal;
Here is my BT strategy. I've been using this strategy for about 6 months now and have been achieving very high results with it, aroung 40 to 100 pips a day. OK, here it is: 

Timeframe: 1hour works best, but could use on 30 min. 
Braintrend 1, Signal1, Stop1, and Stopline1, Signal Close Alert 1 
t3 Aroon Horn Smoothed 
t3 Aroon Horn Oscillator: line drawn at zero 
Trend Trigger Modifed version 3 (changed parameters to 50 and -50, instead of 100 and -100) 

Entry Long Signal: 
1. Blue bar completed with Braintrend signal dot (alert will sound and tell you the entry with stop placement). Do not enter yet. 
2. Aroon Horn Smoothed lines will cross each other. Do not enter yet. 
3. Trend Trigger will cross above the +50 line (must be crossing or already above +50 line to signal safe entry). Do not enter yet. 
4. We enter only when the Aroon Horn Oscillator crosses up over the zero line. (only if all of the other indicators agree) 

Entry Short Signal: 
Opposite above. 

Waiting until the Aroon Horn Oscillator crosses the zero line will ensure that the trend is in strength. It also coordinates quite often with the minor retracement that happens after the initial price move. The Aroon Horn Smoothed indicator is an early signal but a retracement could happen that is why we wait for the Oscillator to signal. 

I use to just jump right in when I first started using BT to try and get every pip but soon realized that there were many false signals given and one could have many whipsaws along the way. Using this strategy will eliminate many of those whipsaws and allow one to pull the trigger more confidently. 

Important note on the Trend Trigger, there has been some discussion about it curve fitting past results to fit ideal parameters. That is why I say wait until the Aroon Horn Oscillator crosses zero to verify the established trend. The market is range bound when between the +50 and -50. 

Note* One thing I've noticed, you can use the Trendsignal indicator (found elsewhere on this forum) as well to signal for entry but only if the other rules are followed. 

I hope this helps some of you who are hesitant to pull that trigger when a trade happens. Please let me know what you think and if this can be improved. I've attached some of the required indicators (minus Braintrader) here. Enjoy. 

Let's all share the knowledge. 

Только вот проблема: для мт4 его индикаторов я не нашел, да их по-моему еще не перевели.

Но это по поводу часового фрейма. У меня к сожалению нет возможности на нем торговать, минимум на 4х часах. Тут полазил по заграничным форумам, один крендель(не в обиду будет сказано=) )пишет, что про работе с БТ для выхода использует в основном уровни ФИБО... поиски продолжаются....