Trabajo finalizado
Tarea técnica
Buy Sell Candle Strategy MODIFICATION – Ninjatrader 8
The base strategy is called BuySell Candle strategy which is a simple strategy for Ninjatrader 8 and does the following :
When a bullish candle is formed the strategy opens one long position.
This position is closed and reversed when a bearish candle is formed .
When a bearish candle is formed the strategy opens one short position.
This position is closed and reversed when a bullish candle is formed.
The only variable currently on the strategy is a take profit variable by default set to 150 Currency amount.
The strategy should be modified in order to do the following:
1. ----- Choose the default lots for the trade .
2. Add a trailing stop feature (expressed in total profit ) meaning that if our profit goes to X USD the trailing stop Y is activated . So for example if we choose a X of 100 USD and a Y (trailing stop step ) of 50 USD and the trade gores in profit , when the profit reaches 100 USd the trailing stop is activated . If our profit reaches 150 USD our stop moves up to 100 USD etc.
3. ------ The strategy must have the ability to double the size of the lots traded after a losing trade.
For example default lots are set to 2 , we have a losing trade , next trade is with 4 lots, we have a losing trade , next trade is with 8 lots, we have a losing trade , next trade is with 16 lots etc. When we have a winning trade then the next trade is made with the default lots.
------The strategy should be able to work with renko candles , volume bars , range bars , tick bars and regular time bars.