Skip to content

Instantly share code, notes, and snippets.

@claytantor
Created July 22, 2016 04:11
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/389f1576c1fbbd9d78f82d4ccb176efc to your computer and use it in GitHub Desktop.
Save claytantor/389f1576c1fbbd9d78f82d4ccb176efc to your computer and use it in GitHub Desktop.
// show me, show crossover for momentum with RSI
variables:
vMom( 0 ),
vRsi( 0 ),
vAccel( 0 );
vMom = Momentum( Close, 12 ) ;
vRsi = RSI(Close,14) ;
If (vMom crosses over 0 and vRsi > 30) then
begin
Plot1(High);
end;
If (vMom crosses under 0 and vRsi > 50) or vMom < -10 then
begin
Plot2(Low);
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment