NexusFi: Find Your Edge


Home Menu

 





Keeping Limit order amounts after entry from other side


Discussion in MultiCharts

Updated
    1. trending_up 1,107 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Keeping Limit order amounts after entry from other side

  #1 (permalink)
 Phil18 
Antwerp Belgium
 
Experience: Intermediate
Platform: oec
Trading: ES
Posts: 9 since Sep 2015
Thanks Given: 2
Thanks Received: 0

Hi everyone,

I have a strategy which identifies a range-bound market and then sells the top of the range and buys at the bottom of the range. The strategy utilizes limit orders. So, for example, the market keeps bouncing from 500 to 510 and then back. After selling at 510, I anticipate that the market will go down to 500 where I will buy, and then back to 510, where I will sell again.

In order to get into the limit order queue as early as possible, I'm trying to enter a limit sell order for 510 while I'm still in the previous short. So say I sold at 510 and the market goes down to 508, I then enter another sell limit at 510

 
Code
if MarketPosition_at_Broker = -1 then sellshort ("s1") 1 contract next bar at 510 limit
The problem is, when I enter my long at 500, the sell limit at 510 changes from 1 contract to 2 contracts (in order to get me net short 1), and I lose my place in the queue. Can anyone think of a way that I can get around this?


 
Code
if MarketPosition_at_Broker = -1 then sellshort ("s1") 2 contracts next bar at 510 limit
doesn't help, because once I go long, that 2 contract order will just be changed to 3 contracts, and I lose my place in the queue again..

Thanks in advance!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

Phil18,

since you can't change this platform behavior one way might be to use two charts - one for long and one for short.
However, this would add an extra bit of complexity most likely since you might have to close out your positions yourself that would otherwise be reversed by MC.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #3 (permalink)
 Phil18 
Antwerp Belgium
 
Experience: Intermediate
Platform: oec
Trading: ES
Posts: 9 since Sep 2015
Thanks Given: 2
Thanks Received: 0


ABCTG,

It took some creative magic to finally make it work, but your suggestions was the key to the solution, so thanks :-)

Started this thread Reply With Quote




Last Updated on February 15, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts