One for all. General exeprt. - page 8

 
Vita писал (а):

coefline - peeks into the future, so it is a "leading indicator".

coefline_true - does not peek, so does not predict anything, and is not fundamentally different from, for example, AO


Where is this indicator, I would like to have a look at the code.
 
ExpertTrader писал (а):
Vita wrote (a):

coefline - peeks into the future, so it is a "leading indicator".

coefline_true - does not peek, so does not predict anything, and is not fundamentally different from, for example, AO


Where is this indicator, I'd like to have a look at the code.

Right here.
 
projectX писал (а):

know all this I know, but I haven't found anything better, can you advise. !!!!!


Unfortunately, I can't give you any advice. Firstly, it is inappropriate to use peek-a-boo indicators. Secondly, I don't find coefline_true better than AO even in your particular case. Alas.
 
Vita
How do you read it, how do you read the signals?
 
ExpertTrader писал (а):
Vita
How do you read it, how do you read the signals?

I'm not really interested. It looks a lot like an AO. There is an interest in such indicators, as long as they look into the future. :) In itself it does not bear anything new, that's why it is not especially popular and does not use. Look here. Maybe you will find something useful.
 
projectX писал (а):
this is how my Expert Advisor developed on coefline during testing period from 01.08.06 to 01.10.06 a strong drawdown at the end of the chart is due to
it may not work correctly if there is a trend movement during this period. I tried it with 0.1 lot, all the ticks are from 01.08.06 eurodollar pair. Not used stop lots, only orderclose. Since there are no stop lots, I am thinking of adding an averaging function on loss...

Please post the code of the Expert Advisor.
 
projectX писал (а):
The idea is as follows: closing a position is often decisive in my opinion, because you can open and even if you have calculated or guessed the direction of movement correctly, you cannot always close at the right moment and therefore you cannot always take the profit. I have already noticed it when I look at the bar formation. In short:
I.e. open on the coefline indicator (there is a base) at take profit, the next position we open if the price returns a certain number of points from the closing price (I did it) but it is necessary to consider if the price will sharply go up and to this level will not return, so if from the closing price passes the same number of points equal to take profit, it is necessary that the level to which the price rolled back too has moved
I think I understand the idea, but I'm not sure. What should I do?
 

Suppose by any indicator or open a bay position at 1.2000 take profit put 1.If the price goes up, close on Take Profit. If the same indicator or something else tells us to buy again, but buying immediately I think not, and need to wait until the price declines to a certain number of points (I suggest this number should be tied to the take profit value for example tp*70%) for example make the value 10 points and the next buy should be at a price of 1.For example let's say we buy with a price of 1.2005 and in this case take profit for this position will be 1.2020 and so on.

 
To ExpertTrader

Sorry to barge in, it's not convenient to comment in CodeBase.
Fan indicator was taken from MasterForex forum - before the healers got into a fight there. The author is not given in the body (seems to be Pupel, but not sure), try to search the description by the name FanSimple8-1a.
It may build a fan of up to 8 muwings, modes can be set for each muwing, the number of simultaneously checked and what TF is also set.

If you can't find the original one, you can copy it from my collection: http://forexter.land.ru/FanSimple8-1a.htm
 
Here's another expert.



I won't comment on it, see the code.

//+------------------------------------------------------------------+
//|                             Copyright © 2006, Victor Chebotariov |
//|                                      http://www.chebotariov.com/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Victor Chebotariov"
#property link      "http://www.chebotariov.com/"
 
#define MAGIC 041020060
 
extern double Lots               = 0.1;
extern int    period             = 106;
extern int    ma_method          = 2;//0-3
extern int    applied_price_ma   = 2;//0-6
extern int    period1            = 93;
extern int    ma_method1         = 2;//0-3
extern int    applied_price_ma1  = 5;//0-6
extern int    period2            = 17;
extern int    ma_method2         = 3;//0-3
extern int    applied_price_ma2  = 6;//0-6
extern int    period3            = 12;
extern int    ma_method3         = 0;//0-3
extern int    applied_price_ma3  = 1;//0-6
extern int    period4            = 13;
extern int    ma_method4         = 0;//0-3
extern int    applied_price_ma4  = 4;//0-6
 
 
bool symbolOrders()
   {
   int orders = OrdersTotal();
   for(int i=orders-1; i>=0; i--)
      {
      if(!OrderSelect(i, SELECT_BY_POS ))
         {
         Print("OrderSelect( ", i, ", SELECT_BY_POS ) - Error #", GetLastError());
         continue;
         }
         if(OrderSymbol()==Symbol())
            {
            if(OrderMagicNumber()==MAGIC)
               {
               return(true);
               }
          }
     }
    return(false);
}
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----     
   int cnt, ticket, total;
   double close  = iClose(NULL,PERIOD_D1,1);
   double open   = iOpen(NULL,PERIOD_D1,1);
   double MA_0   = iMA(NULL,PERIOD_D1,period,0,ma_method,applied_price_ma,1);
   double MA_1   = iMA(NULL,PERIOD_D1,period1,0,ma_method1,applied_price_ma1,2);
   double MA_2   = iMA(NULL,PERIOD_D1,period2,0,ma_method2,applied_price_ma2,3);
   double MA_3   = iMA(NULL,PERIOD_D1,period3,0,ma_method3,applied_price_ma3,4);
   double MA_4   = iMA(NULL,PERIOD_D1,period4,0,ma_method4,applied_price_ma4,5);
   
   bool Buy  = close>open && MA_0>MA_1 && MA_1>MA_2 && MA_2>MA_3 && MA_3>MA_4;
   bool Sell = close<open && MA_0<MA_1 && MA_1<MA_2 && MA_2<MA_3 && MA_3<MA_4;
//----
   total=OrdersTotal();
   if(!symbolOrders()) 
     {
      if(AccountFreeMargin()<(1000*Lots)){Print("We have no money. Free Margin = ", AccountFreeMargin());return(0);}
      if(Buy)
        {
         ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,0,MAGIC,0,Green);
         if(ticket>0)
           {
            if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice());
           }
         else Print("Error opening BUY order : ",GetLastError()); 
         return(0); 
        }
      if(Sell)
        {
         ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,0,MAGIC,0,Red);
         if(ticket>0)
           {
            if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("SELL order opened : ",OrderOpenPrice());
           }
         else Print("Error opening SELL order : ",GetLastError()); 
         return(0); 
        }
      return(0);
     }
   for(cnt=0;cnt<total;cnt++)
     {
      OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
      if(OrderType()<=OP_SELL &&   // check for opened position 
         OrderSymbol()==Symbol())  // check for symbol
        {
         if(OrderType()==OP_BUY)   // long position is opened
           {
            if(Sell)
                {
                 OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); // close position
                 return(0); // exit
                }
           }
         else // go to short position
           {
            if(Buy)
              {
               OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet); // close position
               return(0); // exit
              }
           }
        }
     }
//----
   return(0);
  }
//+------------------------------------------------------------------+