Place an opposite limit order as soon as my trade triggers | Traders Hideout


futures.io - futures trading strategies, market news, trading charts and platforms


Traders Hideout


Discuss day trading practices and futures trading strategies on this forum for all markets. This forum is also for discussing and reviews for brokers, data feeds, and commercial or third party add-ons




 

Place an opposite limit order as soon as my trade triggers

  #1 (permalink)

Los Angeles, CA/USA
 
 
Posts: 3 since Oct 2016
Thanks: 3 given, 0 received

Place an opposite limit order as soon as my trade triggers

I'm trying to enter two limit orders at the same time one to buy and another to go short. The reasoning behind this is to enter a position and have an opposing position ready on the other side:

if close > close (1) then
buy "LE" 1 contract next bar at limit low;
if marketposition=1 then
sellshort "SE" 1 contract next bar at limit high;

Sorry if the code is not well written but my desired result is that once I get in on the trade with the buy order I simultaneously set an sellshort limit order to be higher in the queue.

Thank you.

Reply With Quote