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

*****SPAM***** [amibroker] Custom Composite Index Problem



PureBytes Links

Trading Reference Links

SPAM: -------------------- Start SpamAssassin results ----------------------
SPAM: This mail is probably spam.  The original message has been altered
SPAM: so you can recognise or block similar unwanted mail in future.
SPAM: See http://spamassassin.org/tag/ for more details.
SPAM: 
SPAM: Content analysis details:   (5.50 hits, 5 required)
SPAM: USER_AGENT         (-0.5 points) Found a User-Agent header
SPAM: FROM_ENDS_IN_NUMS  (0.9 points)  From: ends in numbers
SPAM: COMMENT            (0.8 points)  Found a Comment header
SPAM: ALL_CAP_PORN       (1.2 points)  BODY: Possible porn - in ALL CAPS
SPAM: TO_BE_REMOVED_REPLY (0.4 points)  BODY: Says: "to be removed, reply via email" or similar
SPAM: SPAM_PHRASE_03_05  (1.1 points)  BODY: Spam phrases score is 03 to 05 (medium)
SPAM:                    [score: 4]
SPAM: FORGED_YAHOO_RCVD  (1.4 points)  'From' yahoo.com does not match 'Received' headers
SPAM: DATE_IN_PAST_12_24 (0.2 points)  Date: is 12 to 24 hours before Received: date
SPAM: 
SPAM: -------------------- End of SpamAssassin results ---------------------

I have created a custom "Index" using "AddToComposite". Here is the
code that runs in Exploration:
-----------------------------------------
Counter = IIf(IsNull(Close),0,1);

AddToComposite( Counter * ROC(Close,1), "~MyIndex", "C", 1+2+8+16 );
AddToComposite( Counter, "~MyIndex", "I", 1+2+8+16 ); 

Index = 100 + Cum(Foreign( "~MyIndex", "C" ) / Foreign( "~MyIndex",
"I" ));

Multiplier = (100 + Foreign( "~MyIndex", "C" )/Foreign( "~MyIndex",
"I" ))/100;

Filter=1;	

AddColumn (Close,"Close");
AddColumn (Index,"Index");
AddColumn (Multiplier*100,"Multiplier x 100");
--------------------------------------------------
The problem is using the "CUM" function adds the daily percent change
to calculate the "Index".  I wish to use the "Multiplier" to calculate
an index where the previous days index value is multiplied by the
"Multiplier".  The index should initialize as "Index = 100" to start
with the first bar. Its probably simple fix, but I can't get there.

Frustrated,

Todd K.


------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

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