Malaga Spain
Posts: 1 since Feb 2012
Thanks Given: 0
Thanks Received: 0
|
Good afternoon.
I enclose a Script, which desire to execute the orders of input points with a filter to limit the number of failed logins.
1. - The case is, that market entry should have a filter to prevent many failed logins, hence the idea of putting a filter input range (filtroM) of 20 points above / below the closing cross bar (bullish / bearish).
EnterLong (Close [0] + filtroM);
EnterShort (Close [0] - filtroM);
The reason that the input commands are in "Stop" is because it throws an order at a price above / below the market.
Obviously entry should be at any post sail beam, thus closing it, is the starting point.
Hence, the firm intends to use (but does not work):
EnterLong Stop (int barsInProgressIndex, liveUntilCancelled bool, int Quantity, double stopPrice, string signalName);
For the order of entry of a candle last longer (and not canceled internally by NT7)
2. - The code attached, it works, but I need to create strategies to ensure compliance with the above.
Could you tell me how is it done?
A greeting.
|