Jump to content

Lukeye

Members
  • Posts

    69
  • Joined

  • Last visited

Posts posted by Lukeye

  1. Watching the video in my last post it looks like he drew about 20 lines.

    Take your excel spreadsheet go to data / filter and autofilter .

    Column I click on top ten, same for column S and you get 20 lines.

    Calls

    1.4228

    1.4277

    1.4335

    1.4401

    1.4473

    1.4552

    1.4636

    1.4817

    1.5007

    1.5105

     

     

     

    Just an idea .

  2. Re: Building your own EA G/08.

     

    Hi,

     

    can anyone translate this peace of code into plain english please ?

     

     // ïðîâåðêà HughLowLimit
      
      if(CountHighLowLimits > 0)
      {
         // óäàëÿåì âñå STOP îðäåðà, ðàñïîëîæåííûå â îïàñíûõ çîíàõ (BUY ñëèøêîì âûñîêî, SELL ñëèøêîì íèçêî)
         
         for(k = 0; k < CountHighLowLimits; k++)
         {
            switch(k)
            {
               case 0 : _iHL_LimitDistance = iHL_LimitDistance1;  break;
               case 1 : _iHL_LimitDistance = iHL_LimitDistance2;  break;
               default: continue;     
            }
            
            if((Counts[_OP_BUYSTOP] != 0) && (iHL_Low[k] > 0) && (MaxPrices[_OP_BUYSTOP] >= (iHL_Low[k] + _iHL_LimitDistance * _Point)))  
            {
               glDeleteAllDeferOrders(_OP_BUYSTOP, Symbol(), iHL_Low[k] + _iHL_LimitDistance * _Point, 0);
            }
            
            if((Counts[_OP_SELLSTOP] != 0) && (iHL_High[k] > 0) && (MinPrices[_OP_SELLSTOP] <= (iHL_High[k] - _iHL_LimitDistance * _Point))) 
            {
            if(PrintComments)  Print("CountHighlowLimit close.");
               glDeleteAllDeferOrders(_OP_SELLSTOP, Symbol(), 0, iHL_High[k] - _iHL_LimitDistance * _Point);
              
            }   
         }   
      }   

     

    I ask because this one is the part which deletes stop orders the same minute they were opened.

  3. Re: Building your own EA G/08.

     

    Hey Rio,

     

    My thinking was the same when I saw orders were deleted as soon as they are opened .

     

    Add this line

     if(PrintComments)  Print("CountHighlowLimit close.");

     

    here :

     if(CountHighLowLimits > 0)
      {
         // óäàëÿåì âñå STOP îðäåðà, ðàñïîëîæåííûå â îïàñíûõ çîíàõ (BUY ñëèøêîì âûñîêî, SELL ñëèøêîì íèçêî)
         
    ............................
            {
            if(PrintComments)  Print("CountHighlowLimit close.");
               glDeleteAllDeferOrders(_OP_SELLSTOP, Symbol(), 0, iHL_High[k] - _iHL_LimitDistance * _Point);
               
            }   
         }   
      }  

     

    and run your tests again.

    Maybe this helps.

  4. Re: Building your own EA G/08.

     

    I need some help :D

     

    I fixed my error code 130 problem :

    for(j = 0; j < 2; j++)

    {

    _OrderMagicNumber = MN_Usual;

     

    if(j == 0) // STOP

    {

    if(type == _OP_BUY)

     

    {

    if(BuyStopLevel < 0) continue;

     

    _OrderType = OP_BUYSTOP;

    typedefer = _OP_BUYSTOP;

    typestr = "BUY STOP";

     

    if(CurrentPrice < (CurrentFigure + BuyStopLevel * _Point)&& (CurrentPrice-(CurrentFigure + BuyStopLevel * _Point) >(MarketInfo(Symbol(),MODE_STOPLEVEL))))

    //if(CurrentPrice < (CurrentFigure + BuyStopLevel * _Point)) //BuyStopLevel= 50

     

    _OrderOpenPrice = CurrentFigure + BuyStopLevel * _Point;

     

     

    else

     

    _OrderOpenPrice = CurrentFigure + (100 + BuyStopLevel) * _Point;

     

    }

     

    But I still don't find a solution for the following (video by asgard):

    After a buystop order was deleted the next buystop will step down by xx points (follow the market).

×
×
  • Create New...