I'm using the SMTP e-mail link from Ninja to Tradestation. I would like for my stop/profit target limit orders to be generated the moment a trade is entered. How do I do this?
Right now, my EL code looks like this:
if value = true then begin
PricetoShort = close;
Sell Short next bar at PricetoShort limit;
if marketposition = -1 then
Buy to cover next bar (limitprice + 1.00) limit;
Buy to cover next bar (limitprice - 1.00) stop;
EXAMPLE:
BUY 1300.00
SELL LIMIT 1301.00
STOP LIMIT 1299.00
This isn't working right now -- how do i do this? Thanks!
Comment