update existing NinjaTrader 8 strategy
Budget: ₹12,500 – ₹37,500 INR
I have an existing NinjaTrader strategy that I would like to further develop and fix a few existing bugs. A description of how the strategy works can be found in the Strategy Summary pdf. This pdf details the basic workings of the strategy.
There is an additional parameter called the Initial Trade Pullback Zone (ITPZ) which is active when the trend filter is enabled - once the trend direction has been determined by the gbChandlierStop, the price has to be within the ITPZ for the trade to considered valid. The ITPZ is defined as the distance from the last value of the gbChandelierStop ("x" ticks) to the point when the gbChnadelierStop changes trend. The ITPZ has an Enable/Disable feature as well as a parameter for "x" ticks to determine the distance from the last value of the stop to the top/bottom of the zone (top for longs/bottom for shorts.
There is also a parameter that determines how many trades the strategy can take in the direction of a particular trend before it has to wait until a trend change to start taking trades again.
(1)The first task is to add the attached Zombie 7Trail Stop (in the ZombiePACK zip file) as a second option to the gbChandelierStop with the same functions and parameters as the gbChandlierStop currently has in the strategy as follows:
-Add a parameter beneath the "Enable Trend Filter" labeled "Select Trend Filter" which when toggled provides either the gbChandelierStop or the Zombie7Trail
-When the Zombie 7Trail is Enabled, it should function the same way the gbChandelierstop functions in the strategy. When price is above the Zombie 7Trail Stop only long trades are taken with the SR Zones and vice versa for shorts.
-It should have a Bar Close or On Each Tick/On Price Change parameter. When set to On Each Tick/On Price Change, The strategy should use the previous bar Zombie 7Trail value to calculate a change in trend or the distance of the ITPZ. Maybe it might sense to make this a parameter where its set to zero it uses the current bar, if 1 it uses the previous bar, if 2 then the second bar from the current bar, etc. When set to any value greater than 0, then the current bar has to close first.
(2)The second task is I would like the strategy to be able to take entries with the SupplyDemandFibExtension indicator on each tick/bar open while the gbChandelierStop is on bar close. Currently for the SupplyDemandFibExtension indicator to take trades when set to "on each tick/bar open", the Stop has to be "on each tick" as well. This last one is low priority while the 3 above are top priority.
(3) The last task to is fix the following 2 bugs ( see attachements for more details):
- update the stop loss offset setting for the strategy's initial stop loss when it set to a SR Zone stop loss. It is currently not adding the offset to the SR Zone
- fix the NRes error stating that the market order is being placed below the stop loss (for longs) when it is not and closing the order for a loss before immediately submitting a new order which is then accepted
There is an additional parameter called the Initial Trade Pullback Zone (ITPZ) which is active when the trend filter is enabled - once the trend direction has been determined by the gbChandlierStop, the price has to be within the ITPZ for the trade to considered valid. The ITPZ is defined as the distance from the last value of the gbChandelierStop ("x" ticks) to the point when the gbChnadelierStop changes trend. The ITPZ has an Enable/Disable feature as well as a parameter for "x" ticks to determine the distance from the last value of the stop to the top/bottom of the zone (top for longs/bottom for shorts.
There is also a parameter that determines how many trades the strategy can take in the direction of a particular trend before it has to wait until a trend change to start taking trades again.
(1)The first task is to add the attached Zombie 7Trail Stop (in the ZombiePACK zip file) as a second option to the gbChandelierStop with the same functions and parameters as the gbChandlierStop currently has in the strategy as follows:
-Add a parameter beneath the "Enable Trend Filter" labeled "Select Trend Filter" which when toggled provides either the gbChandelierStop or the Zombie7Trail
-When the Zombie 7Trail is Enabled, it should function the same way the gbChandelierstop functions in the strategy. When price is above the Zombie 7Trail Stop only long trades are taken with the SR Zones and vice versa for shorts.
-It should have a Bar Close or On Each Tick/On Price Change parameter. When set to On Each Tick/On Price Change, The strategy should use the previous bar Zombie 7Trail value to calculate a change in trend or the distance of the ITPZ. Maybe it might sense to make this a parameter where its set to zero it uses the current bar, if 1 it uses the previous bar, if 2 then the second bar from the current bar, etc. When set to any value greater than 0, then the current bar has to close first.
(2)The second task is I would like the strategy to be able to take entries with the SupplyDemandFibExtension indicator on each tick/bar open while the gbChandelierStop is on bar close. Currently for the SupplyDemandFibExtension indicator to take trades when set to "on each tick/bar open", the Stop has to be "on each tick" as well. This last one is low priority while the 3 above are top priority.
(3) The last task to is fix the following 2 bugs ( see attachements for more details):
- update the stop loss offset setting for the strategy's initial stop loss when it set to a SR Zone stop loss. It is currently not adding the offset to the SR Zone
- fix the NRes error stating that the market order is being placed below the stop loss (for longs) when it is not and closing the order for a loss before immediately submitting a new order which is then accepted