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

Re: [amibroker] Exploration - AB Version 4.78.1



PureBytes Links

Trading Reference Links

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

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm

 
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
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


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
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS