I want to place a long and a short order, at a certain time and a certain date, which would vary, and need to be changed whenever the ninjascript is used. Each order would be a stop limit order offset from the current price by about 10 ticks, and would cancel the other order if it was executed. If executed it would then implement a selected ATM strategy which would work in real time only, as stated in the help file.
If neither order was executed it i would like to cancel both after a certain time. The ATM strategy would take care of the trade from there. I have attempted to set up a basic version of the ATM strategy using Stop and Profit Targets in the Ninjascript. When I tried to back test it, I got an error message saying that ninjatrader needs to shut down, although it didnt shut down. Can you tell me what is wrong with the script? The wizard said that it completed successfully.
Is it possible to have user input as part of a Ninjascript, by using an input box? E.g. To set the time and date.
As a more advanced version I would like to have user input of a number to trigger the trades being set after the time is reached. Would this be possible?
Thanks,
Matthew
Comment