NinjaTrader Strategy -- 2

Job ID: 36627377

Budget: $150 – $220 CAD

Hi there, I am looking to code a script in Ninjatrader.

Stream1
● Strategy will look for unprocessed records in SQL table on local machine, Signals.SignalPlacedTime
● Place an order if signal is sent by/where Signals.SignalProviderID matches the SignalsProvider.SignalProviderID where copyTrade = 1
● Position size will be determined based on SignalsProviders.PositionSize%
○ Example 1: Positionsize% = 10%, Account Balance is $2000, Signals.Price = $1, then Order quantity = (2000 x 10%)/($1 x 100) = 2 qty
○ Example 2: Positionsize% = 10%, Account Balance is $2000, Signals.Price = $1.2, then Order quantity = (2000 x 10%)/($1.2 x 100) = 1.6 (in this case qty is rounded down to 1 only)
Stream 2
● StopLoss and Targets are collected from the SignalProviders.StopLoss% and SignalProviders.akeProfit%
○ Where value = “signal”, then must wait for sell signals where ChannelID AND SignalProviderID AND INSTRUMENT is equal to the buy signal’s ChannelID AND SignalProviderID AND INSTRUMENT
○ Where value = <number>, then place an exit(sell) order at that percent
○ Where value = 0, place an order by strategy

Thank you
Related categories: C Programming C# Programming MySQL Trading