learn how to earn money villagers [Episode 2] ! - page 170

 
rentik:

More and more I come to the conclusion that it does not matter where to open in the sell or in the buy! ))))

That is the whole strategy.

We have a wave, so both are and will be present at any given time (and what will be, unfortunately, we will never know).

It remains only to bang and bang, until you get something sensible.

The task has stretched on for 42 years now.... for traders


Yusuf is making quality waves on the Zulu! Check out the links to his exps and monitoring on the zulu in his branch "Sultonov Indicator on the MT screen".

 
Roman.:

:-)

It warms up... :-)


OK, Roman!

Stability is a sign of skill. Way to go!

 
Roman.:

Yusuf is making good use of these waves on the zulu! Look at the links to his expos and monitoring on the zulu in his "Sultonov Indicator on the MT screen" branch.


Check it out. I don't use indulators.

I tried to do it for fun and wrote it.

It works interestingly. It may be useful for someone)))) (I should make it better, Close is not used, it works on 15-th numbers and from 9-00 to 10-00)

If it is greater than zero and not equal to 2, it is Buy. If it is less than zero and not equal to 2, it is Sell:

//+------------------------------------------------------------------+
//|                                                           xx.mq4 |
//|                                                                  |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright ""
#property link      ""

#property indicator_separate_window
#property indicator_buffers 3
//----
extern string Symb1="EURUSD";
extern string Symb2="EURJPY";
extern string Symb3="USDJPY";
int All_Bars = 0;
int Last_Bars = 0;
//double minEURUSD;
//double minEURCHF;
//double minUSDCHF;
double EMA_H,EMA_L,EMA_O;
double arrEURUSD[];
double arrEURCHF[];
double arrUSDCHF[];
color Color_EURUSD = Green;
color Color_EURCHF = DarkBlue;
color Color_USDCHF = Red;
//color Color_CHF = Chocolate;
//color Color_JPY = Maroon;
//color Color_AUD = DarkOrange;
//color Color_CAD = Purple;
//color Color_NZD = Teal;

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0, DRAW_LINE, DRAW_LINE, 2, Color_EURUSD);
   SetIndexBuffer(0, arrEURUSD);
   SetIndexLabel(0, Symb1); 
   SetIndexStyle(1, DRAW_LINE, DRAW_LINE, 2, Color_EURCHF);
   SetIndexBuffer(1, arrEURCHF);
   SetIndexLabel(1, Symb2); 
   SetIndexStyle(2, DRAW_LINE, DRAW_LINE, 2, Color_USDCHF);
   SetIndexBuffer(2, arrUSDCHF);
   SetIndexLabel(2, Symb3);       
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
                
   //int limit;
   //int counted_bars = IndicatorCounted();
//---- проверка на возможные ошибки
   //if(counted_bars < 0) 
       //return(-1);
//---- последний посчитанный бар будет пересчитан
   //if(All_Bars < 1)
       //All_Bars = Bars;
   //if(counted_bars > 0 && Last_Bars > 0) 
       //counted_bars -= Last_Bars;
   //limit = All_Bars - counted_bars;
//---- основной цикл
   //for(int i = 0; i < limit; i++)
   for(int i = 0; i < 100; i++)   
     {
         if (TimeHour(iTime(Symb1,PERIOD_M5,i))!=9 || TimeDay(iTime(Symb1,PERIOD_M5,i))!=15)
            {
               EMA_L=iMA( Symb1, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_LOW, i );
               EMA_O=iMA( Symb1, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_OPEN, i );
               EMA_H=iMA( Symb1, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_HIGH, i );
               if(MathAbs(EMA_O-EMA_H)<MathAbs(0.00001))
               {                  
                  arrEURUSD[i] = -1;
               }         
               if(MathAbs(EMA_O-EMA_L)<MathAbs(0.00001))
               {                  
                  arrEURUSD[i] = 1;
               }
               if(MathAbs(EMA_O-EMA_H)>=MathAbs(0.00001) && MathAbs(EMA_O-EMA_L)>=MathAbs(0.00001))
               {                  
                  arrEURUSD[i] = arrEURUSD[i-1];
               }         
               EMA_L=iMA( Symb2, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_LOW, i );
               EMA_O=iMA( Symb2, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_OPEN, i );
               EMA_H=iMA( Symb2, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_HIGH, i );
               if(MathAbs(EMA_O-EMA_H)<MathAbs(0.00001))
               {                  
                  arrEURCHF[i] = -0.7;
               }
               if(MathAbs(EMA_O-EMA_L)<MathAbs(0.00001))
               {                  
                  arrEURCHF[i] = 0.7;
               }
               if(MathAbs(EMA_O-EMA_H)>=MathAbs(0.00001) && MathAbs(EMA_O-EMA_L)>=MathAbs(0.00001))
               {                  
                  arrEURCHF[i] = arrEURCHF[i-1];
               }          
               EMA_L=iMA( Symb3, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_LOW, i );
               EMA_O=iMA( Symb3, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_OPEN, i );
               EMA_H=iMA( Symb3, PERIOD_M5, 1, 0, MODE_SMA,  PRICE_HIGH, i );
               if(MathAbs(EMA_O-EMA_H)<MathAbs(0.00001))
               {                  
                  arrUSDCHF[i] = -0.5;
               }
               if(MathAbs(EMA_O-EMA_L)<MathAbs(0.00001))
               {                  
                  arrUSDCHF[i] = 0.5;
               }
               if(MathAbs(EMA_O-EMA_H)>=MathAbs(0.00001) && MathAbs(EMA_O-EMA_L)>=MathAbs(0.00001))
               {                  
                  arrUSDCHF[i] = arrUSDCHF[i-1];
               }          
         }
         if (TimeHour(iTime(Symb1,PERIOD_M5,i))==9 || TimeDay(iTime(Symb1,PERIOD_M5,i))==15)
            {
               arrEURUSD[i] = 2;
               arrEURCHF[i] = 2;
               arrUSDCHF[i] = 2;
            }
     }
   return(0);
  }
//+------------------------------------------------------------------
 
/**/
 
rentik:

OK, Roman!

Stability is a sign of skill. Way to go!


Thank you! :-)
 
Roman.:
HOORAY FOR YOU!

Just installed the new version, in the tester it shows this:

SymbolEURUSD (Euro vs US Dollar)
Period15 Minutes (M15) 2009.06.01 00:00 - 2012.11.28 18:44 (2009.06.01 - 2013.01.01)
ModelBy open prices (only for Expert Advisors with explicit bar opening control)



Bars in history87542Modelled ticks174070Modeling qualityn/a
Chart mismatch errors0




Initial deposit7000.00



Net profit56753.12Total profit68780.89Total loss-12027.77
Profitability5.72Expected payoff55.42

Absolute drawdown424.62Maximum drawdown4087.14 (30.48%)Relative drawdown30.48% (4087.14)

Total trades1024Short positions (% win)377 (71.35%)Long positions (% win)647 (72.49%)

Profitable trades (% of all)738 (72.07%)Loss trades (% of all)286 (27.93%)
Largestprofitable trade3044.74losing deal-371.88
Averageprofitable deal93.20losing deal-42.06
Maximum numbercontinuous wins (profit)21 (549.59)Continuous losses (loss)6 (-1045.84)
Maximumcontinuous profits (number of wins)4687.49 (10)Continuous loss (number of losses)-1087.75 (5)
Averagecontinuous winnings6Continuous loss2
 
khorosh:

Just installed the new version, in the tester it shows this:

SymbolEURUSD (Euro vs US Dollar)
Period15 Minutes (M15) 2009.06.01 00:00 - 2012.11.28 18:44 (2009.06.01 - 2013.01.01)
ModelBy open prices (only for Expert Advisors with explicit bar opening control)



Bars in history87542Modelled ticks174070Modeling qualityn/a
Chart mismatch errors0




Initial deposit7000.00



Net profit56753.12Total profit68780.89Total loss-12027.77
Profitability5.72Expected payoff55.42

Absolute drawdown424.62Maximum drawdown4087.14 (30.48%)Relative drawdown30.48% (4087.14)

Total trades1024Short positions (% win)377 (71.35%)Long positions (% win)647 (72.49%)

Profitable trades (% of all)738 (72.07%)Loss trades (% of all)286 (27.93%)
Largestprofitable trade3044.74losing deal-371.88
Averageprofitable deal93.20losing deal-42.06
Maximum numbercontinuous wins (profit)21 (549.59)Continuous losses (loss)6 (-1045.84)
Maximumcontinuous profits (number of wins)4687.49 (10)Continuous loss (number of losses)-1087.75 (5)
Averagecontinuous winnings6Continuous loss2

Good version! Well done! In my tester, the results are "more modest"... Profitability and Percentage of Deals Accepted for Ilano-Martin are out of the question!

 
Roman.:

Good version! Well done! In my tester, the results are "more modest"... Profitability" and "Percentage of Deals Accepted" for the Ilano-Martin are off the charts!




If you want to increase profitability, do not close by profit value, but by signals. I also have a chip that increased my profit by about 30% just by manipulating the lot, without increasing the max drawdown. If you're interested, I'll let you know in person.

 
Roman.:

- Don't you have one without wings?

- No.

- We'll look for it! (c) The Diamond Arm.

:-)

GRAAL found! Gonna give it a cut!


)))) Nope, not found....

But the truth is out there.

 
khorosh:


If you want to increase profitability, do not close by profit value, but by signals. There is also a trick that increased the profit by about 30% just by manipulating the lot, without increasing the maximum drawdown. If you're interested, I'll let you know in person.


Thank you, Yuri! I would appreciate it!