PureBytes Links
Trading Reference Links
|
Graham, TJ
Thanks
----- Original Message -----
Sent: Monday, March 20, 2006 3:07
AM
Subject: Re: [amibroker] Exploration - AB
Version 4.78.1
Hello,
Graham explained it already. What I want to add is, that
when you are after displaying array of single letters it is
possible
So instead
AddTextColumn(WriteIf(BuyLong==1,"B",
WriteIf(SellShort==1,"S",
"X")),"B/S"); // <==== Problem
area
write:
AddColumn( IIf(
BuyLong, 66,
IIf( SellShort,
83, 88 ) ), "B/S", formatChar );
where 66, 83, 88 are ASCII codes of letters B, S and X
respectively.
Best regards, Tomasz Janeczko amibroker.com
----- Original Message -----
Sent: Monday, March 20, 2006 8:18
AM
Subject: Re: [amibroker] Exploration -
AB Version 4.78.1
Writing text will only show the value for the last bar, it does not
show any change for each bar. Strings cannot be built into arrays Only
number can be arrays, which is what you want, so have numbers instead of
letters for the column
On 3/20/06, Ara
Kaloustian <ara1@xxxxxxxxxx>
wrote:
Am running an exploration that produces
some erroneous results.
The results contain several entries
that DO meet filter criteria, but are incorrectly
displayed as "X" in "B/S" column. Note that the BuyLong / SellShort data
are read correctly, and the writeif() function
is not working propery.
5 out of 54 lines are incorrect as
described.
Anyone see the proble???
Thanks
Ara
Ticker Date/Time Close
Buy Sell B/S
Stoc1 S1 Slope
Stoc2 S2 Slope Stoc3 S3
Slope
AIG
3/16/2006 69.24 1.00
0.00
X
92.35
3.85
45.97
0.17 52.50
0.96
BuyLong = IIf(Stoc1_Slope
>0 AND Stoc2_Slope >0 AND Stoc3_Slope >0 ,1,0);
SellShort = IIf(Stoc1_Slope
<0 AND Stoc2_Slope <0 AND Stoc3_Slope <0 ,1,0);
Filter = BuyLong==1 OR SellShort==
1;
AddColumn (Close,"Close");
AddColumn (BuyLong,"Buy"
);
AddColumn (SellShort,"Sell"
);
AddTextColumn (WriteIf(BuyLong==1,"B",
WriteIf(SellShort==1,"S",
"X")),"B/S"); // <==== Problem
area
AddColumn (Stoc1,"Stoc1");
AddColumn (Stoc1_Slope,"S1 Slope");
AddColumn (Stoc2_R,"Stoc2");
AddColumn (Stoc2_Slope,"S2 Slope");
AddColumn (Stoc3_R,"Stoc3");
AddColumn (Stoc3_Slope,"S3 Slope"); Please note that
this group is for discussion between users only.
To get support
from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com
For
other support material please check also: http://www.amibroker.com/support.html
SPONSORED
LINKS
YAHOO! GROUPS LINKS
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
|