<pre class=”lang:probuilder decode:true ” title=”Estrategia_Engulfing_Range1_1″>// Definição de parâmetros de código
DEFPARAM CumulateOrders = false // Acumulação de pontos desativada
EA=0
EB=0
// Envolvente Altista
a1=open[1] > close[1]
a2=close > open
a3= open < close[1]
a4=close > open[1]
a5=low < low [1]
a6=high > high[1]
rem x porcentagem de mexa que pode ter acima por defeito max 0,2, 20% do rango da vela
a7=(high-close)<0.2*(high-low)
if a1 and a2 and a3 and a4 and a5 and a6 and a7 then
EA=1
endif
// Envolvente Baixista
b1=open[1] < close[1]
b2=close < open
b3= open > close[1]
b4=close < open[1]
b5=low < low [1]
b6=high > high[1]
rem x porcentagem de mexa que pode ter abaixo por defeito max 0,2, 20% do rango da vela
b7=(close-low)<0.2*(high-low)
if b1 and b2 and b3 and b4 and b5 and b6 and b7 then
EB=-1
endif
If EA=1 and Not OnMarket Then
Buy 1 contract at market
Set stop Loss range
SET TARGET PROFIT range
endif
if EB=-1 and Not OnMarket Then
Sellshort 1 contract at market
Set stop Loss range
SET TARGET PROFIT range
Endif
<pre class=”lang:probuilder decode:true ” title=”Indicador_Engulfing”>cero=0
EA= 0
EB=0
// Envolvente Altista
a1=open[1] > close[1]
a2=close > open
a3= open < close[1]
a4=close > open[1]
a5=low < low [1]
a6=high > high[1]
rem x porcentagem de mexa que pode ter acima por defeito max 0,2, 20% do rango da vela
a7=(high-close)<0.2*(high-low)
if a1 and a2 and a3 and a4 and a5 and a6 and a7 then
EA=1
endif
// Envolvente Baixista
b1=open[1] < close[1]
b2=close < open
b3= open > close[1]
b4=close < open[1]
b5=low < low [1]
b6=high > high[1]
rem x porcentagem de mexa que pode ter abaixo por defeito max 0,2, 20% do rango da vela
b7=(close-low)<0.2*(high-low)
if b1 and b2 and b3 and b4 and b5 and b6 and b7 then
EB=-1
endif
rem RETURN E
RETURN EA AS “EA”, EB as “EB”, CERO AS “CERO”
<span class=”tlid-translation translation” lang=”es”><span class=”” title=””>no era el caso (de estar en el mercado en este momento) colocando falso, sucede lo mismo, es decir, las entradas del indicador no corresponden a las realizadas por ProOrder 🙁 (¿entonces nunca será posible confirmar si una estrategia funciona o no?).</span></span>