[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re : 3.5 verify



PureBytes Links

Trading Reference Links

Dans un courrier daté du 28/07/98 22:42:18  , vous avez écrit :

<< 
 I am running 3.5. will someone tell me why I can't verify the below. thanks
 
 PctAbvMAValue = (Average(Close,MAvgLen) * (100- PctAbvMA) / 100);
   PctBlwMAValue = (Average(Close,MAvgLen) * (100+ PctBlwMA) / 100);
 
   FDBVal = FastD(FDBLen);
   FDSVal = FastD(FDSLen);
>>

=================================================

You need first to define the four variabes that you use :
vars:  PctAbvMAValue(0),PctBlwMAValue(0),FDBVal(0),FDSVal (0);

Then do:

PctAbvMAValue = (Average(Close,MAvgLen) * (100- PctAbvMA) / 100);
PctBlwMAValue = (Average(Close,MAvgLen) * (100+ PctBlwMA) / 100);
 
FDBVal = FastD(FDBLen);
FDSVal = FastD(FDSLen);

What is on the left side of the "=" MUST be  a variable (Valuex if you do not
define them, where x>= and x<=99).

If the above were user functions, you need to write them under the category
function, then call each of them in a variable in your indicator.

Sincerely,

Pierre Orphelin
www.sirtrade.com

=================================================


   condition1 = c < PctAbvMAValue;
   
   condition2 = c > PctBlwMAValue;
   
   condition3=LinearregSlope(c,length3)<LRSBval;
   condition4=Linearregslope(c,length4)>LRSSval;
   condition5= (FDBVal <= FDBuy and FDBVal > FDBVal[1]) or
          (FDBVal[1] <= FDBuy and FDBVal > FDBVal[1]);
   condition6= (FDSVal >= FDSell and FDSVal < FDSVal[1]) or
          (FDSVal[1] >= FDSell and FDSVal < FDSVal[1]);
        
 
   if condition1 and condition3 and condition5  then begin
     Plot1(L - .5,"GoLong");
   end;
   if condition2 and condition4 and condition6 then begin
     Plot2(H + .5,"GoShort");
   end;
 
 
 
 
 ----------------------- Headers --------------------------------
 Return-Path: <omega-list-request@xxxxxxxxxx>
 Received: from  relay23.mx.aol.com (relay23.mail.aol.com [172.31.106.69]) by
air15.mail.aol.com (v46.20) with SMTP; Tue, 28 Jul 1998 16:42:18 -0400
 Received: from mx2.eskimo.com (mx2.eskimo.com [204.122.16.49])
 	  by relay23.mx.aol.com (8.8.8/8.8.5/AOL-4.0.0)
 	  with ESMTP id QAA09920;
 	  Tue, 28 Jul 1998 16:41:43 -0400 (EDT)
 Received: (from smartlst@xxxxxxxxx)
 	by mx2.eskimo.com (8.8.8/8.8.8) id NAA21094;
 	Tue, 28 Jul 1998 13:43:46 -0700 (PDT)
 Rese >>