Job finished
Specification
hi,
i need an EA how can trade different High, Low, Close and open Patterns.
The EA must have a fix lot size or Money Management.
Also we need a trading time and and a possible to fix to a account number (not possilble to copy the ea and run on another accounts)
under you see a part of the code for the ninja trader!
thanks and greets syncro
EuroStrategy:
if entry 1 go long
if else entry 2 go long
if else entry 3 go long
if else entry 4 go long
if long exit = first profitable open ( entry price < open )
stop loss 120 ticks
// 0 = today; 1 = Yesterday
Entry 1:
Open[1] > Open[0] & Open[1] > Open[0] & Open[1] < Open[0] & Open[0] > Open[1]
Entry 2:
Open[1] > Open[0] & Open[1] < Open[0] & Open[1] < Open[0] & Trend
// Trend:
{
if (CurrentBar < 1)
return;
// Trailing stop
double trail;
double loss = ATR(Input, Period)[0] * Multi;
if (Close[0] > Value[1] && Close[1] > Value[1])
{
trail = Math.Max(Value[1], Close[0] - loss);
PlotColors[0][0] = Color.Blue;
}
else if (Close[0] < Value[1] && Close[1] < Value[1])
{
trail = Math.Min(Value[1], Close[0] + loss);
PlotColors[0][0] = Color.Red;
}
else if (Close[0] > Value[1])
{
trail = Close[0] - loss;
PlotColors[0][0] = Color.Transparent;
}
else
{
trail = Close[0] + loss;
PlotColors[0][0] = Color.Transparent;
}
Value.Set(trail);
}
Entry 3:
Open[1] < Open[0] & Open[1] > Open[0] & Open[1] > Open[0]
Entry 4:
Open[2] > Open[1] && Open[2] > Open[1] && Open[1] > Open[0] && Open[1] > Open[0] && Open[1] < Open[0]