Skip to content

Instantly share code, notes, and snippets.

@claytantor
Created July 22, 2016 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claytantor/d216745edbc0350c6792287764c482a9 to your computer and use it in GitHub Desktop.
Save claytantor/d216745edbc0350c6792287764c482a9 to your computer and use it in GitHub Desktop.
// show me, show crossover for momentum
variables:
intrabarpersist InAChart( false ),
Mom( 0 ),
Accel( 0 ),
ColorLevel( 0 ) ;
Mom = Momentum( Close, 20 ) ;
If Mom crosses over 0
then Plot1(High);
If Mom crosses under 0
then Plot2(Low);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment