Ninjatrader automated strategy to develop based on indicator colour of bar

Job ID: 33461373

Budget: $30 – $250 AUD

Hi, I'm looking for someone to code and automated strategy for me in NinjaTrader (C# coding language) as per the requirements below:

1) It should be able to trade based on the colour of the previous bar which is determined by an indicator (I don't have the source code of the indicator) but the bar is black for up and red for down, this can differ from the candle direction. It will only trade at the close of each bar.

2) It should only take one trade per chart at a time. There should be an input which allows me to say whether it only trades long (buy) or only trades short (sell).

3) If no trade is open then it should trade based on the direction I select. If long (buy) is selected then a buy order will be placed if the previous bar indicator colour closes black - eg: up direction. If short (sell) is selected then a sell order will be place if the previous bar indicator colour closes red - eg: down. Once a trade is opened no further trades will be opened on this symbol/chart until the trade is closed.

4) If a trade is open and the bar colour indicator closes in the opposite direction to the direction specified the trade will be closed. For example if I specify the direction is long (buy) and a trade is open then it will be closed on a red colour indicator bar close. If I specify the direction is short (sell) and a trade is open then it will be closed on a black colour indicator bar close.

This should be very simple for an experience NinjaTrader developer to code as I am specifying the direction for trade manually. I think the biggest challenge is to trade a previous bar close depending on the indicator colour. So if you can do this please get in touch. Thanks.
Related categories: C# Programming Software Architecture Trading