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

Re: [amibroker] cross error msg



PureBytes Links

Trading Reference Links


Hello,
 
This will not work because there is no 
"If-EndIf" construct in AFL
(it is available in scripting 
however).
 
The thing that IS available is the 
Immediate-IF function. And you
can get desired effect using:
 
Xup = IIF( cross( pdi(), mdi() ), 1, 0 
);
 
EptLo = IIF( cross( pdi(), mdi()), Low, 0 
);
<FONT face=Tahoma 
size=2> 
<FONT face=Tahoma 
size=2> 
Creating a new 
system:
simply save you old creation - "Save" button in 
Automatic analysis window (upper part)
clear the "trading rules" field in Automatic 
analysis window and type your new formula there.
if you are done - you can save the systemto the 
file - "Save" button. The file could be retrieved back using "Load" 
button.
<FONT face=Tahoma 
size=1> 
Best regards,Tomasz Janeczko===============AmiBroker - the 
comprehensive share manager.<A 
href="">http://www.amibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
<A title=traders10@xxxx 
href="">traders10@xxxx 
To: <A title=amibroker@xxxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, June 16, 2001 5:47 
AM
Subject: [amibroker] cross error 
msg
Arrrgghhh, I hate programming...getting a syntax 
error msg on cross as used hereif  cross(pdi(), mdi()) 
then     Xup =1     EptLo = 
Low()endif;and yet, if I say buy = cross(pdi(), 
mdi());there is no error and things seem to run okit has me 
confused....Oh second stupid question, how do I create a new system 
tester file within AB.TraderYour 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.