NexusFi: Find Your Edge


Home Menu

 





Immediate Stop and Limit orders


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one interfool with 2 posts (1 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 NW27 with 1 posts (1 thanks)
    4. looks_4 Bimi with 1 posts (0 thanks)
    1. trending_up 5,260 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Immediate Stop and Limit orders

(login for full post details)
  #1 (permalink)
interfool
Tucson AZ USA
 
Posts: 3 since Oct 2012
Thanks Given: 2
Thanks Received: 3

I am trying to find out a way to immediately issue stop and limit orders with prices I generate either:

A. When I place an entry order, so when the order fills, I have a stop and limit in place.

B. Immediately after an order fills, put the stop and limit in place, NOT wait until the next bar.

Have not found a way to do this in Easy/Power language. All stop and limit orders fill at the next bar.
I want to use my custom pricing, so "this bar" stuff doesn't work.

Any ideas?

Thanks!

Reply With Quote
The following user says Thank You to interfool for this post:

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
Looking for an MQL4 MetaTrader programmer/coder
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Daytrading ES & NQ
32 thanks
Battlestations: Show us your trading desks!
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Retail Trading As An Industry
25 thanks

(login for full post details)
  #3 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58



interfool View Post
I am trying to find out a way to immediately issue stop and limit orders with prices I generate either:

A. When I place an entry order, so when the order fills, I have a stop and limit in place.

B. Immediately after an order fills, put the stop and limit in place, NOT wait until the next bar.

Have not found a way to do this in Easy/Power language. All stop and limit orders fill at the next bar.
I want to use my custom pricing, so "this bar" stuff doesn't work.

Any ideas?

Thanks!

use setstoploss and setprofittarget

Reply With Quote
(login for full post details)
  #4 (permalink)
interfool
Tucson AZ USA
 
Posts: 3 since Oct 2012
Thanks Given: 2
Thanks Received: 3

Actually, using [IntrabarOrderGeneration = true] solves the issue. It basically turns "Next Bar" entries into "Next Tick" entries.

Found this after I posted here.

All the best.

Reply With Quote
(login for full post details)
  #5 (permalink)
 NW27 
Newcastle, Australia
 
Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker: IB
Trading: SPI,FTSE100, 6E, 6A
Posts: 285 since Oct 2010
Thanks Given: 108
Thanks Received: 188

Hi,
Have you downloaded NWT Exits from the download area? It will show you how to do lots of this style of specialised programming.

Regards,
Neil.

Reply With Quote
The following user says Thank You to NW27 for this post:





Last Updated on November 15, 2012


© 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