After running some studies based on threads started by Nexas and ForexFocus, and with thanks and respect to both, I would now like to have the following strat set up in NinjaTrader if anyone can help:
Assuming green for up bars and red for down, we are working on range bars with a range value of 45 with Heiken Ashi applied to them.
When the 25 EMA is above the 55 EMA and that is above the 100EMA,
If a bar closes green and the CCI on a 6 period is above +50, buy on the next bar with stoploss 8 pips below the previous bar. If the next bar closes green, buy another lot at the open of the next, with stop 8 pips below the low of the previous bar AND the stoploss from the first one is moved up to the same level. If this bar closes green, buy another lot at the open of the next bar with the stoploss 8 pips below the low of the previous one, but the other two trades also have their stops raised to the same level.
On it goes, so that each time a bar closes green another trade is opened with a stoploss 8 pips below the close of the previous one, and all stops on all the other opening trades are raised to that same level. THEN when any bar prints a red close, ALL trades are closed.
Conversely for shorts, the 25EMA is below the 55 which is below the 100 and CCI prints below -50 and when we get a closed red bar we short the next with stoploss 8 pips above the previous high, next bar prints red we go again with stoploss 8 pips above the high of the previous bar and the stoploss of the first trade is moved down to the same level etc etc etc until a green bar closes and then all open trades are closed on that pair.
There is a time condition though: No new positions to be opened after 5pm GMT, but if a contrary coloured bar closes, the close-all function comes into play and the strategy re-starts at 7am GMT. I'd switch off the strategy during times when price action is consolidative.
I am happy to start studying Ninja coding, but I guess there's someone out there could knock this off in half an hour.
I'll then try to optimize the range setting per pair to see which comes out best on a backtest at least, before trying it live with pennies.
As I write, following these conditions we would have 18-20 open positions short the EURAUD, with trade one being +270, trade 2 being +255, trade 3 being +240 etc etc etc - with a total current open position on this pair of more than 2500 pips, most of it locked in with a tight bunch of stops. I know there would be a lot of times when this thing was slowly grinding out a steady loser, but we could accommodate a lot of wobbling about like that on the basis that each time we get a run like this on EURAUD it's an absolute homer.
Thoughts and assistance please guys? Cheers and Good Luck, Good Trades to all.
ps: I know the current EURAUD move is exceptional and I know the individual trade sizes would have to be small, especially if running it on 22 pairs
Assuming green for up bars and red for down, we are working on range bars with a range value of 45 with Heiken Ashi applied to them.
When the 25 EMA is above the 55 EMA and that is above the 100EMA,
If a bar closes green and the CCI on a 6 period is above +50, buy on the next bar with stoploss 8 pips below the previous bar. If the next bar closes green, buy another lot at the open of the next, with stop 8 pips below the low of the previous bar AND the stoploss from the first one is moved up to the same level. If this bar closes green, buy another lot at the open of the next bar with the stoploss 8 pips below the low of the previous one, but the other two trades also have their stops raised to the same level.
On it goes, so that each time a bar closes green another trade is opened with a stoploss 8 pips below the close of the previous one, and all stops on all the other opening trades are raised to that same level. THEN when any bar prints a red close, ALL trades are closed.
Conversely for shorts, the 25EMA is below the 55 which is below the 100 and CCI prints below -50 and when we get a closed red bar we short the next with stoploss 8 pips above the previous high, next bar prints red we go again with stoploss 8 pips above the high of the previous bar and the stoploss of the first trade is moved down to the same level etc etc etc until a green bar closes and then all open trades are closed on that pair.
There is a time condition though: No new positions to be opened after 5pm GMT, but if a contrary coloured bar closes, the close-all function comes into play and the strategy re-starts at 7am GMT. I'd switch off the strategy during times when price action is consolidative.
I am happy to start studying Ninja coding, but I guess there's someone out there could knock this off in half an hour.
I'll then try to optimize the range setting per pair to see which comes out best on a backtest at least, before trying it live with pennies.
As I write, following these conditions we would have 18-20 open positions short the EURAUD, with trade one being +270, trade 2 being +255, trade 3 being +240 etc etc etc - with a total current open position on this pair of more than 2500 pips, most of it locked in with a tight bunch of stops. I know there would be a lot of times when this thing was slowly grinding out a steady loser, but we could accommodate a lot of wobbling about like that on the basis that each time we get a run like this on EURAUD it's an absolute homer.
Thoughts and assistance please guys? Cheers and Good Luck, Good Trades to all.
ps: I know the current EURAUD move is exceptional and I know the individual trade sizes would have to be small, especially if running it on 22 pairs