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

Re: [amibroker] exrem(array1,array2) please elaborate it?


  • Date: Tue, 1 Dec 2009 16:15:01 +0100
  • From: Robert Chevallier <robert.chevallier@xxxxxxxxx>
  • Subject: Re: [amibroker] exrem(array1,array2) please elaborate it?

PureBytes Links

Trading Reference Links



Yes, that's true.

NB: usually no need to code it explicitely, as during backtesting redundant signals are automatically removed (except if you use SIGSCALEUP, SIGSCALEDOWN signals), because AB allows only 1 position of a stock in a portfolio at any given time.

Just look in the doc for custom back tester info, and/or inspect the detailed log generated by the back tester.

2009/12/1 rink <boyrinku@xxxxxxxxxxx>
 

ok
is it like if i buy 200 day high and 100 day low
suppose if i get signal on 10 oct to buy
next day there is another 200 day high so the system won't buy it again unless next sell signal come
reply me if  i am right?
thankyou for your great help



Robert Chevallier wrote:
 
Suppose you have the following Buy/Sell arrays

Buy: 0 1 1 0 1 0 0 0 0 0 1 1 
Sell: 0 0 0 1 0 0 1 1 1 1 0 0

ExRem (Buy, Sell ) = 0 1 0 0 1 0 0 0 0 0 1 0
ExRem (Sell, Buy)  = 0 0 0 1 0 0 1 0 0 0 0 0

It will remove redundants signals (ie: if you have multiple Buy signals, only the 1st one will be keep (until the next Sell signal is raised))

2009/12/1 rink <boyrinku@xxxxxxxxxxx>
 

Hello everybody
please elaborate in simple english what is this formula?
i read help file but cant understand it
says removes excessive signals:
returns 1 on the first occurence of "true" signal in Array1
then returns 0 until Array2 is true even if there are "true" signals in
Array1

in this formula i see this
Buy = H > Ref(HHV(H,200),-1);
BuyPrice = Ref(HHV(H,200),-1);
Sell = L < Ref(LLV(L,100),-1);
SellPrice = Ref(LLV(L,100),-1);

Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

Short = L < Ref(LLV(L,200),-1);
ShortPrice = Ref(LLV(L,200),-1);
Cover = H > Ref(HHV(H,100),-1);
CoverPrice = Ref(HHV(H,100),-1);






__._,_.___


**** 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

__,_._,___