Requirements, explained in an example:
We are flat in a certain market (lets take \6e) and the trade is about the begin
The trade is started manually by entering a LMT order in the DOM, at lets say 12500
When filled the trade starts
An automated S/L will start working that places the S/L at a point that is equivalent to a pre-defined maximum dollar amount. *** e.g. if 4 cars are on, and the maximum loss is set to $2K, the stoploss should be set to 40pips lower as the entry, and at a total of 4 cars. in this case at 12460***
The trade lasts as long as we have NOT gone flat
During the trade extra contracts may be put on manually. The S/L should adjust automatically the contract size and the placement (as the more contracts, the tighter the stop) *** e.g. 4 more cars are added 10 pips lower (12490), this should adjust the total S/L to 8 and move the stop up to 12475 ***
If contracts are pulled manually during the trade, ninjatrader should remember the P&L during this specific trade and adjust automatically the contract size and the placement of the S/L. *** e.g. 4 cars are pulled at 12495, this should adjust the total S/L to 4, and move the stop down to 12455 ***
When going flat manually the trade has ended and the S/L should be removed
When going flat automatically the S/L has kicked in ;-)
Is this possible to make?
Regards,
peter
Comment