Title: Re: [amibroker] Stupid beginner question about Arrays
There is no such thing as a stupid question :-)
exrem(), flip(), and equity(1) can all be used to remove redundant conditions or signals.
btw, If you just want to remove repetition in a single variable you can also detect positive or negative changes using:
PosConditionChange = Condition > ref(Condition,-1);
NegConditionChange = Condition < ref(Condition,-1);
herman
Monday, September 7, 2009, 8:52:38 AM, you wrote:
> Hi,
> I've got stupid problem - but i can't solve it.
> I've got situation like that:
> Condition,Condition2 - some condition with value true/false
> And i need to have array which value is set 0 after Condition ==true and be 0 until Condition2 change to true.
> But important for me is only change conditions from 0 to 1 not current value.
> For example
> Condition 0000000110001100
> Condition1 0000000000000010
> Exit 1111111000000011
> Thanks for help.
> --
> Regards
> ------------------------------------
> **** 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/
> Yahoo! Groups Links
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
> <*> Your email settings:
> Individual Email | Traditional
> <*> To change settings online go to:
> http://groups.yahoo.com/group/amibroker/join
> (Yahoo! ID required)
> <*> To change settings via email:
> mailto:amibroker-digest@xxxxxxxxxxxxxxx
> mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
> <*> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
__._,_.___
**** 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/
__,_._,___
|