dear all ,
i want to comapre O==H or O==L of watchlist 1 with O==H or O==L of watchlist2
this is what i did ,
in AA > filter > watchlist1
O2=Open; // this will Open price of WL1 stocks
H2=High;
L2=Low;
list1 = GetCategorySymbols( categoryWatchlist, 2);//fo
for( i = 0; ( sym = StrExtract( list1, i ) ) != ""; i++ )
{
SetForeign(sym );
VbO = O; // this will Open price of WL2 stocks
VbH = H;
VbL = L;
RestorePriceArrays();
}
/*
list2 = GetCategorySymbols( categoryWatchlist, 2);//fo
for( Col=0; (Ticker2=StrExtract( List2, Col))!= ""; Col++)
{
VbO = Foreign(Ticker2,"O");// this will Open price of WL2 stocks
VbH = Foreign(Ticker2,"H");
VbL = Foreign(Ticker2,"L");
}
*/
Buy = VbO==VbH AND O2==H2;
Sell = VbO==VbL AND O2==L2;
Filter = Buy OR Sell;//DateNum()==Status("rangetodate");
AddColumn(C,"Cash-CLOSE",1.2,2,3,50);
AddColumn( IIf( Buy, 66, IIf( SELL, 83 ,Null)), "Signal", formatChar );
but i am not getting correct result ...
kindly help.
Thank you
Posted by: soni67c@yahoo.co.in
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
EmoticonEmoticon