Montag, 15. September 2014

AC Wissen 
Handelssystem einfach


//////////////////////////////////
// Hammer
//////////////////////////////////



// The candle looks like a hammer, as it has a long lower wick 
// and a short body 
// at the top of the candlestick 
// with little or no upper wick. 
// (..) most traders say the lower wick must be two times greater than the size of the body 


var: body, bodylow, bodyhigh, range, lowerwick;

// Handelsspanne = Grösse der ganzen Kerze
range=h-l;

// GRösse des Körpers
body=o-c;
if body<0 then body = -body;

// unteres und oberes Ende des Körpers
if o>c then bodylow=c;
if o<c then bodylow=o;

if o>c then bodyhigh=o;
if o<c then bodyhigh=c;

// unterer Schatten
lowerwick=bodylow-l;


// "..The candle looks like a hammer, as it has a long lower wick.."

// --> oberhalb von 70% der Kerze
if bodylow>l+0.7*range then

// "..and a short body "

// -> Körper <25% der gesamten Kerze
if body<range*0.25 then

// "..at the top of the candlestic.."
// "..with little or no upper wick. "

// Oberteil des Körpers in Top 10% der Kerze
if bodyhigh>h-0.1*range then

// "(..) most traders say the lower wick must be two times greater than the size of the body "

if lowerwick>body*2 then

// IM ABWÄRTSTREND 2 - SMA5 2% unter SMA20
if average(c,5)<average(c,20)*0.98 then

buy next bar market;

// VERKAUF nach 10 Tagen

if barssinceentry>9 then sell at market;







//////////////////////////////////
// GOLDEN CROSS mit SMA-200 Filter
//////////////////////////////////

if Average(close,20)<Average(close,50) then
  if Average(close,20)[1]>Average(close,50)[1] then
    if Average(close,200)<Average(close,50) then
       buy next bar at market;
    
if average(close,20)>Average(close,50) then
   sell next bar at market;
   
if average(close,50)<Average(close,200) then 
  sell next bar at market;

Keine Kommentare:

Kommentar veröffentlichen