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

Re: [amibroker] AddColumn Question



PureBytes Links

Trading Reference Links



RTFM

You should use AddTextColumn :

signal = WriteIf(5H, "5H", WriteIf(8H, ""8H, Writeif(5L, "5L", WriteIf(8L, "8L", "- n/a -"))));
AddTextColumn(signal,"Signal");

2009/11/6 furinkazaan <furinkazaan@xxxxxxxxx>
 

Hi,

I am writing my first exploration to alert for 5-day high or lows using realtime feed.
the pseudo code for this is as follows

Set interval  - Daily in AA window

Set Date – Today / last n bars=1 in AA window

5H= H> REF(HHV,5), -1);

8H= H> REF(HHV,8), -1);

5L= L< REF(LLV,5), -1);

8L= L< REF(LLV,8), -1);

BUY= 5H OR 8H;

SELL=5L OR 8L;

FILTER= (BUY OR SELL);

>>>ADDCOLUMN to display which range is broken

I am unable to figure out how to add a column in by exploration window titled "Signal" which lists "5H" / "5L"/"8H"/"8L" against each stock that passes filter.

I did check addcolumn related discussions in the group but found nothing that helps. Appreciate some guidance here. Thanks


vigi




__._,_.___


**** IMPORTANT PLEASE READ ****
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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___