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

[amibroker] Jake Bernstein Momentum formula



PureBytes Links

Trading Reference Links

Hai Tomasz,

This is simple Jake Bernstein Momentum Formula for chart and scanner.
Please help me give arrow buy and sell. Buy arrow is Green colour and 
Sell Arrow is Red Colour. 

I really appreciate and thanks for you in advance. 

Best Regards,
Anthony Idic



_SECTION_BEGIN(" $ Momentum ");


/* Bernstein Momentum Indicator */
/* Set Scaling to Automatic, Show dates On, Percent On, Middle On */

Title = "Bernstein MOM Close - Ref(Close,-7)"; 
GraphXSpace = 5;
Graph0 = MA(Close - Ref(Close,-7),1); 
Graph0Style = 5; 
Graph0Color = 29;
Graph1 = MA(Graph0,5);
Graph1Style = 1;  
Graph1Color = 32;


DaysAgo =Optimize("DaysAgo",-28,-40,-16,4);
Fast = Optimize("Fast", 1, 1,5,1);
Slow = Optimize("Slow",28,16,40,4);
/* Note: It is merely a coincidence that DaysAgo and Slow use the 
same parameter set. */

Buy = Cross( MA(Close - Ref(Close,DaysAgo),Fast),
MA(Close - Ref(Close,DaysAgo),Slow) );

Sell = Cross( MA(Close - Ref(Close,DaysAgo),Slow),
MA(Close - Ref(Close,DaysAgo),Fast) );


Short = Cross( MA(Close - Ref(Close,DaysAgo),Slow),
MA(Close - Ref(Close,DaysAgo),Fast) );

Cover = Cross( MA(Close - Ref(Close,DaysAgo),Fast),
MA(Close - Ref(Close,DaysAgo),Slow) );
_SECTION_END();


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

Please note that this group is for discussion between users only.

To get 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/