Avalanche - page 425

 
granit77:
Mikhail Andreyevich, please don't point the finger at the youth. Otherwise they will make a festival out of it.
Obscene posts by Sorento and Aleksander are removed. Warning to both of them.

Where do you see me using foul language?

;)

Please forgive me generously! If there was...

A Russian man without foul language?

It is in genes.

 
lasso:

You should try to fill in the table....

objections regarding dynamically changing corridor are not accepted - the market is a dynamic process, so the corridor changes with the market dynamics

SZZY: I can't guarantee the accuracy of the formula (the figure is 10 bars and Ê=0.30), but the formula for the corridor change is kind of obvious

 
hmmm, you could add a couple more lines in the table... cumulative loss on orders..... number of outcomes from a series of 10000 bars and total loss :)
 

Just a question ?

How do I write code to

If the loss on open orders reaches a certain percentage of the deposit, then all trades will be closed and the Expert Advisor will stop trading ?

 
Aleksander:

hmmm ? what's my memory :) which word was Uncensored there ? (rhetorical question) ...

we ↓↓↓↓ no more :)


↓↓↓

Cortinko +5

;)

And the Dahl reference was appropriate

 
Stells:

Just a question ?

How do I write code to

If the loss on open orders reaches a certain percentage of the deposit, then all trades will be closed and the Expert Advisor will stop trading ?


Here is a piece of code, as I have it implemented in the netting version of Avalanche. You need to add loss accounting on open orders, i.e. in a loop, counting the total loss on orders in the market...

extern int MaxLoss = 90;          // Максимально допустимая просадка в процентах от баланса

int start()    // -----------------------СТАРТ ЭКСПЕРТА--------------- 
{
   // ------------------------------------------------Ищем наш ордер---------------------------------

   int orderType;
   for (int orderIndex = (OrdersTotal() - 1); orderIndex >= 0; orderIndex--)
   {
      if (!OrderSelect(orderIndex, SELECT_BY_POS))
      {
         continue;
      }

      if ((OrderSymbol() != Symbol()) || (OrderMagicNumber() != MagicNumber))
      {
         continue;
      }

      orderType = OrderType();
      if ((orderType != OP_BUY) && (orderType != OP_SELL))
      {
         continue;
      }
          ticket = OrderTicket( );                         // Номер ордера
          orderLots = OrderLots();                         // Lots   
          orderProfit = OrderProfit() + OrderSwap();       // Profit
          Price = OrderOpenPrice();                        // Цена открытия рыночного ордера
          SL =  OrderStopLoss();                           // Значение StopLoss ордера
          TP = OrderTakeProfit();                          // Значение TakeProfit ордера
          
             if (ticket>0)                                               // Если позиция открылась
                    {
                             while(OrderSelect(ticket,SELECT_BY_TICKET)==false)       // Если ордер выбран
                                 {
                                   Sleep(100);
                                 }
                                  double OpenPrice=OrderOpenPrice();
                     }
         
          
      
    
     // Проверка на предельную просадку
      
      double loss = - ((orderProfit * 100.0) / AccountBalance());
      if (loss > MaxLoss)
      {
         Print ("MaxLoss");
         CloseAllOrders(MagicNumber);
         IsExpertFailed = true;
         return (0);
      }

   }
}


 
Sorento:

Where do you see me using foul language?

;)

Please forgive me generously! If there was...

A Russian man without foul language?

It's in the genes.


Yeah... it's in the genes :) so the kids wonder how it is... ... It's in the genes, but there's no word.)


>
 

People still can't settle down :)

I'm surprised :)

This issue seems to have become a perennial one....

Everyone is still arguing about whether it works or not...

Is it really not clear?

Some people have it working and some don't!!!!

 
sever30:


6 flips adds up to 167 times the volume...

262 2008.09.08 20:50 close 131 0.01 0.8094 0.0000 0.0000 4.80 5534.47
263 2008.09.08 20:51 sell 132 0.01 0.8087 0.0000 0.0000
264 2008.09.08 23:00 close 132 0.01 0.8175 0.0000 0.0000 -8.80 5525.67
265 2008.09.08 23:00 buy 133 0.05 0.8175 0.0000 0.0000
266 2008.09.09 00:08 close 133 0.05 0.8151 0.0000 0.0000 -11.93 5513.74
267 2008.09.09 00:08 buy 134 0.10 0.8154 0.0000 0.0000
268 2008.09.09 10:00 close 134 0.10 0.8110 0.0000 0.0000 -44.00 5469.74
269 2008.09.09 10:00 buy 135 0.31 0.8113 0.0000 0.0000
270 2008.09.09 10:06 close 135 0.31 0.8084 0.0000 0.0000 -89.90 5379.84
271 2008.09.09 10:06 buy 136 0.71 0.8087 0.0000 0.0000
272 2008.09.09 10:12 close 136 0.71 0.8057 0.0000 0.0000 -213.00 5166.84
273 2008.09.09 10:12 buy 137 1.67 0.8060 0.0000 0.0000
274 2008.09.09 10:37 close 137 1.67 0.8085 0.0000 0.0000 417.50 5584.34

you have to have iron balls to do that,


Can you offer something better ? )
 
alex12: Can you think of anything better? )
Filter... :) because flips may occur up to 25 times on one pair, in flat... ... then take 26 currencies and virtually do an avalanche there - at the 20th time expose real trades :) - for example...
Reason: