3 white soldiers / 3 black crows

Category: Indicators By: Doctrading Created: March 29, 2016, 4:37 PM
March 29, 2016, 4:37 PM
Indicators
3 Comments

Hello everyone,

Here is a small simple code to detect the patterns : “3 white soldiers”, “3 black crows”.

Can be useful for some strategies, in forex in particular.

Don’t forget to set soldiers in green (or white), and crows in red (or black).

Have fun !

REM 3 corbeaux

Corbeau = (close < open AND close[1]<open[1] AND close[2]<open[2] AND close<close[1] AND close[1]<close[2] )

IF Corbeau THEN
indiccorbeau=-1
ELSE
indiccorbeau=0
ENDIF


REM 3 soldats

Soldat = (close > open AND close[1]>open[1] AND close[2]>open[2] AND close>close[1] AND close[1]>close[2] )

IF Soldat THEN
indicsoldat=1
ELSE
indicsoldat=0
ENDIF

RETURN indiccorbeau AS "3 corbeaux", indicsoldat AS "3 soldats"

Download
Filename: 3-white-soldiers-3-black-crows.itf
Downloads: 200
Doctrading Master
Hello, I'm Marc. Nice to meet you.
Author’s Profile

Comments

Logo Logo
Loading...