|
Germany
Posts: 24 since Feb 2011
Thanks Given: 1
Thanks Received: 0
|
-Unfurtunately I don't have another timeframe, it's daily data only back to the 70's.
I tried it like this:
if (Close[-1] >Close[0])
{
EnterLongLimit(1, Close[-1], "Long-Entry");
}
short analog,
and to exit on the actual bar with:
if (BarsSinceEntry("Long-Entry") == 0 )
{
ExitLongLimit(Close[-1], "Exit Long", "Long-Entry");
}
In case of a reversion NT generates a close oder by itself and
I used some code to suppress strategy generated exit orders in this case.
But it still doesn't always work. NT suppresses some of the entry orders.
According to support managed orders are not able to deal with [-1].
May be an unmanaged order system helps me out-but I'm totally new to this approach and don't know
if that might work.
|