Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created November 24, 2014 01:09
Show Gist options
  • Save marketcalls/53506773a12fd86e12fc to your computer and use it in GitHub Desktop.
Save marketcalls/53506773a12fd86e12fc to your computer and use it in GitHub Desktop.
Multitimeframe Pattern Scanner
shootingstar = (((H-L)>4*(O-C)) AND ((H-C)/(.001+H-L)>= 0.75) AND ((H-O)/(.001+H-L)>= 0.75));
neardoji = (abs(O-C)<= ((H-L)*0.1));
pattern = WriteIf(shootingstar,"Shooting Star",WriteIf(neardoji ,"Near Doji","N/A"));
for ( i = 1; i <= 30; i++ ) // 1minute to 30minute
{
TimeFrameSet( i * in1Minute );
AddColumn(c,"Ïnterval",1,colorWhite,colorGreen);
AddTextColumn(pattern,"Pattern",1,colorWhite,colorgreen);
TimeFrameRestore();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment