[Archive!] WRITING A COUNTRY TOGETHER!!! - page 23

 
baliv >> :
i suggested to work with max and minima at the beginning of the branch. from me i suggest the following: 1. wait for an inside bar on a daily chart 2. two stop orders 3. i can only trade in the direction of the trend, then the order is one (i have tested six pairs, the profitability is 2.0 +, i will not be able to withdraw my deposit)

I suggest to continue this topic, although some people said it was useless...

While the multicurrency is resting, although tomorrow I will post a simple Expert Advisor that works only with this indicator, based on stop and reverse system. I will use stop and reverse system, and see what may come out of it.

If you don't mind, please give us more details about the system ... We are struggling here but we never managed to get higher profitability than 1.6 (at least for me). I'm sure we can get more out of 2.0

 
RomanS >> :

Although tomorrow I will post a simple Expert Advisor that uses only this indicator, I will use stop and reverse system as a base. >> Let's see what it does...

I'm posting...

A regular stop and reverse system based on the multicurrency indicator (I posted it above), the signal to open a long position is a closing of a short one and vice versa. In fact, it is also crossing with MA. Here is the test from 01.01.2009. Of course it is clear that drawdowns are too large and not permissible... But profitability is quite satisfying. It only remains to be decided what to do with it.

I can try to build TS with less long term goals, but relying on this analysis. Then you can reduce the drawdown, because if the signal on the long term targets was false, then in the medium term analysis confirmation of this signal will be very little or not exist at all


Strategy Tester: Dollar final10
Strategy Tester Report
Alpari-Micro (Build 220)

SymbolEURUSD (Euro vs US Dollar)
Period15 Minutes (M15) 2009.01.02 10:00 - 2009.07.27 23:45 (2009.01.01 - 2009.07.28)
ModelAll ticks (most accurate method based on all smallest timeframes available)
Bars in history14944Modelled ticks6842198Simulation qualityn/a
Chart mismatch errors783
Initial deposit10000.00
Net profit22162.50Total profit26781.50Total loss-4619.00
Profitability5.80Expected payoff2216.25
Absolute drawdown165.50Maximum drawdown10693.50 (27.58%)Relative drawdown36.93% (7442.40)
Total trades10Short positions (% win)5 (60.00%)Long positions (% win)5 (60.00%)
Profitable trades (% of all)6 (60.00%)Loss trades (% of all)4 (40.00%)
Largestprofitable trade6850.60losing transaction-1649.50
Averageprofitable deal4463.58losing deal-1154.75
Maximum numbercontinuous wins (profit)4 (19557.80)continuous losses (loss)3 (-2969.50)
MaximumContinuous Profit (number of wins)19557.80 (4)Continuous loss (number of losses)-2969.50 (3)
Averagecontinuous winnings2continuous loss2

TimeTypeOrderVolumePriceS / LT / PProfitBalance
12009.01.05 09:21sell11.001.378260.000000.00000
22009.01.26 23:30close11.001.322070.000000.000005600.1015600.10
32009.01.26 23:30buy21.001.322090.000000.00000
42009.01.29 08:17close21.001.305650.000000.00000-1649.5013950.60
52009.01.29 08:17sell31.001.305550.000000.00000
62009.03.06 07:55close31.001.265500.000000.000003972.6017923.20
72009.03.06 07:55buy41.001.265610.000000.00000
82009.03.27 12:57close41.001.332760.000000.000006691.9024615.10
92009.03.27 12:57sell51.001.332770.000000.00000
102009.04.23 20:51close51.001.312100.000000.000002042.7026657.80
112009.04.23 20:51buy61.001.312140.000000.00000
122009.06.08 11:38close61.001.381130.000000.000006850.6033508.40
132009.06.08 11:38sell71.001.381110.000000.00000
142009.06.19 08:15close71.001.393680.000000.00000-1268.7032239.70
152009.06.19 08:15buy81.001.393690.000000.00000
162009.06.19 08:30close81.001.392130.000000.00000-156.0032083.70
172009.06.19 08:30sell91.001.392170.000000.00000
182009.06.23 18:15close91.001.407600.000000.00000-1544.8030538.90
192009.06.23 18:15buy101.001.407600.000000.00000
202009.07.27 23:59close at stop101.001.424210.000000.000001623.6032162.50
 

This is how it worked out

As you can see from the chart, although it is built on the MA600, it can open a buy even when the price is much lower than the MA and vice versa, i.e. the binding to the MA is not felt at all, as the analysis is built on several currency pairs.


 

RomanS писал(а) >>

Posting...

You can't see the drawing from the tester....

Nor the EA itself)

 
ALex2008 >> :

You can't see the picture from the tester....

Why it hasn't loaded because I haven't figured out how ))))

I don't know how to put it all together, if not hard tell me how

 
ALex2008 >> :

You can't see the drawing from the tester....

>> and the Expert Advisor itself.)

Oh, by the way, I forgot )))

Here's the code.

//+-----------------------------------------------------------------------+
//|                                                    Мультивалютный.mq4 |
//|                                                         Roman Strukov |
//|                                                        srb-78@mail.ru |
//+-----------------------------------------------------------------------+
#property copyright "Roman"
#property link      "srb-78@mail.ru"

  extern double Period_MA  = 600;
  extern double Lot        = 1;    

  int start() 
  {  
     int Ticket;
  double BID, ASK;                                  
    bool CLOSE = false, Open_Bay = false, Open_Sell = false;
  string SYMBOL;
   
  // Анализ состояния рынка
     double USD = -(iClose("EURUSD",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0))-
                   (iClose("GBPUSD",NULL,0)-iMA("GBPUSD",NULL, Period_MA,0,1,0,0))+
                   (iClose("USDJPY",NULL,0)-iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0);
     double EUR =  (iClose("EURUSD",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0))+
                   (iClose("EURUSD",NULL,0)*iClose("USDJPY",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0)*iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0)+
                   (iClose("EURUSD",NULL,0)/iClose("GBPUSD",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0)/iMA("GBPUSD",NULL, Period_MA,0,1,0,0))*iClose("GBPUSD",NULL,0);
     double GBP =  (iClose("GBPUSD",NULL,0)-iMA("GBPUSD",NULL, Period_MA,0,1,0,0))+
                   (iClose("GBPUSD",NULL,0)*iClose("USDJPY",NULL,0)-iMA("GBPUSD",NULL, Period_MA,0,1,0,0)*iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0)-
                   (iClose("EURUSD",NULL,0)/iClose("GBPUSD",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0)/iMA("GBPUSD",NULL, Period_MA,0,1,0,0))*iClose("GBPUSD",NULL,0);
     double JPY = -(iClose("USDJPY",NULL,0)-iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0)-
                   (iClose("EURUSD",NULL,0)*iClose("USDJPY",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0)*iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0)-
                   (iClose("GBPUSD",NULL,0)*iClose("USDJPY",NULL,0)-iMA("GBPUSD",NULL, Period_MA,0,1,0,0)*iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0);

  // Критерии открытия позиций
  if ( USD> EUR && USD> GBP && USD> JPY)
   {
    if ( EUR< USD && EUR< GBP && EUR< JPY)   { Open_Sell = true; SYMBOL = "EURUSD";}
    if ( GBP< USD && GBP< EUR && GBP< JPY)   { Open_Sell = true; SYMBOL = "GBPUSD";}
    if ( JPY< USD && JPY< EUR && JPY< GBP)   { Open_Bay = true; SYMBOL = "USDJPY";}
   } 
  if ( USD< EUR && USD< GBP && USD< JPY)
   {
    if ( EUR> USD && EUR> GBP && EUR> JPY)   { Open_Bay = true; SYMBOL = "EURUSD";} 
    if ( GBP> USD && GBP> EUR && GBP> JPY)   { Open_Bay = true; SYMBOL = "GBPUSD";}
    if ( JPY> USD && JPY> EUR && JPY> GBP)   { Open_Sell = true; SYMBOL = "USDJPY";}
   }     
  if ( EUR> USD && EUR> GBP && EUR> JPY)
   {
    if ( GBP< USD && GBP< EUR && GBP< JPY)   { Open_Bay = true; SYMBOL = "EURGBP";}
    if ( JPY< USD && JPY< EUR && JPY< GBP)   { Open_Bay = true; SYMBOL = "EURJPY";}
   } 
  if ( EUR< USD && EUR< GBP && EUR< JPY)
   {
    if ( GBP> USD && GBP> EUR && GBP> JPY)   { Open_Sell = true; SYMBOL = "EURGBP";}
    if ( JPY> USD && JPY> EUR && JPY> GBP)   { Open_Sell = true; SYMBOL = "EURJPY";}
   }     
  if ( GBP> USD && GBP> EUR && GBP> JPY)
   {
    if ( JPY< USD && JPY< EUR && JPY< GBP)   { Open_Bay = true; SYMBOL = "GBPJPY";}
   } 
  if ( GBP< USD && GBP< EUR && GBP< JPY)
   {
    if ( JPY> USD && JPY> EUR && JPY> GBP)   { Open_Sell = true; SYMBOL = "GBPJPY";}
   }     
   
  // Открытие позиций
    BID = MarketInfo( SYMBOL,9);
    ASK = MarketInfo( SYMBOL,10);
    if ( Open_Bay == true && OrdersTotal()==0) Ticket=OrderSend( SYMBOL,OP_BUY, Lot, ASK,20,0,0); 
    if ( Open_Sell == true && OrdersTotal()==0) Ticket = OrderSend( SYMBOL,OP_SELL, Lot, BID,20,0,0); 
       
  // Закрытие позиций
    for(int i=0; i<=OrdersTotal(); i++)   
     {  
      if (OrderSelect( i, SELECT_BY_POS)==true)  
        {                                        
         if (OrderSymbol()!= SYMBOL) continue;
           if (OrderType()==0)
            {
             if ( EUR< USD)
             CLOSE = OrderClose(OrderTicket(),OrderLots(), ASK,20);
            }
           if (OrderType()==1)
            {
            if ( EUR> USD)
             CLOSE = OrderClose(OrderTicket(),OrderLots(), BID,20);
            }
        } 
     }               
  return;       
 }
  
 
RomanS >> :

Why haven't I downloaded it because I haven't figured out how )))

I don't know how to do it all together, if you don't mind telling me how

I haven't tried it that way either - all together... so no clue)

Yeah... the graph at the end is a mess...

I wonder why the last two trades are not reversed!? I.e. 2 times he sells and should have bought after selling... I take it...

 
ALex2008 >> :

I haven't tried it that way either - all together... that's why I can't tell)

Yeah... the chart at the end is shaky...

I wonder why the last two trades are not reverse!!! I.e. 2 times sells and should have bought after selling...I take it that way...

The shakeout is real, but I don't think many experts are able to cope with the current market situation... a prolonged flat.

As for the 2 times of selling, you are wrong, better look at the state, not the price chart.

See the transaction sheet

 
RomanS >> :

...there is a small buy in between the villages, but you just can't see it on the chart.

See the stats on the trades.

yes we do)

 

RomanS писал(а) >>

Have you tried doing a candlestick multi-analysis with your primary strategy?

Just now, for example, I look at my H4 strategy... and I see a similarity between the pair signals and USD

The probability of signals increases...

Reason: