Manual pre-trigger for automated entry and exit? - futures io
futures io



Manual pre-trigger for automated entry and exit?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one skellington with 3 posts (1 thanks)
    2. looks_two Sandpaddict with 2 posts (0 thanks)
    3. looks_3 Jasonnator with 2 posts (1 thanks)
    4. looks_4 trendisyourfriend with 1 posts (0 thanks)
    1. trending_up 550 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 7 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Manual pre-trigger for automated entry and exit?

(login for full post details)
  #1 (permalink)
 skellington 
San Jose, CA
 
Experience: Beginner
Trading: Futures
 
Posts: 20 since May 2021
Thanks: 14 given, 9 received

Wondering if this is possible in NinjaTrader,

I trade against fast moving data (like 200 tick charts ES) and am looking for a way to do this:

- Manually set a strategy to ARMED when I feel like conditions are good
- Then have the strategy trigger based on whatever conditions are in the strategy
- Take manual control over the automated strategy if needed (so stop the automation but keep the last orders active with ability to move the orders around on the chart like usual)
- otherwise, let the strategy complete and go into an UNARMED state

Maybe this is as simple as enabling/disabling a strategy by hand? But depending on the interface this could be clear/simple or an annoying amount of clicks. I need it to be fast.

Main point is, I want to manually ARM the system and then let it buy/sell when strategy says. Things move too quickly for me to start the thing based on timing chart candle moves at 200tick charts, but i can see setups in advance.


Is this possible with default NT or would this take a bunch of custom programming?

Thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
you cant wait for life is not hard anymore before you de …
Psychology and Money Management
MCnet: (Multi-Timeframe) Directly Added Indicators vs Ba …
MultiCharts
Using fxd files in FXCM trading station
Platforms and Indicators
MCnet: (Multi-Timeframe) EMA @ Weekly Data on Daily Chart
MultiCharts
AUSuperTrend in the NT strategy builder
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
The Beast Slayer, Lances NQ Trading Journal
45 thanks
Spoo-nalysis ES e-mini futures S&P 500
22 thanks
Michael Burry warns the Mother of All Crashes is coming
21 thanks
FairX is launching soon
17 thanks
Chart Trader Alternatives ?
14 thanks
 
(login for full post details)
  #2 (permalink)
 trendisyourfriend 
Legendary Market Wizard
Quebec
 
Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker: AMP/CQG
Trading: ES, NQ, YM
 
trendisyourfriend's Avatar
 
Posts: 4,066 since Oct 2009
Thanks: 3,719 given, 5,260 received


skellington View Post
Wondering if this is possible in NinjaTrader,
...

Is this possible with default NT or would this take a bunch of custom programming?

Thanks!

You can use a strategy to trigger an order with an ATM template of your choice attached to it. Once the order is working, you can disable the strategy and still manually modify the stop and target. Obviously, you would need some programming to define your entry conditions. Check the SampleAtmStrategy that comes with Ninjatrader for an example.

Ideally, you don't want to disable/enable the strategy but define the logic for the armed/re-armed conditions.

Reply With Quote
 
(login for full post details)
  #3 (permalink)
 skellington 
San Jose, CA
 
Experience: Beginner
Trading: Futures
 
Posts: 20 since May 2021
Thanks: 14 given, 9 received


Once armed, and the strategy triggers, after it's done one 'trade' can it automatically go back into an unarmed state?

I assume you could do this sort of thing with custom programming if nothing else.

Started this thread Reply With Quote
The following user says Thank You to skellington for this post:
 
(login for full post details)
  #4 (permalink)
 Sandpaddict 
Langley
 
Experience: Intermediate
Platform: Ninjatrader
Broker: IB
Trading: Futures
 
Sandpaddict's Avatar
 
Posts: 643 since Mar 2020


skellington View Post
Wondering if this is possible in NinjaTrader,

I trade against fast moving data (like 200 tick charts ES) and am looking for a way to do this:

- Manually set a strategy to ARMED when I feel like conditions are good
- Then have the strategy trigger based on whatever conditions are in the strategy
- Take manual control over the automated strategy if needed (so stop the automation but keep the last orders active with ability to move the orders around on the chart like usual)
- otherwise, let the strategy complete and go into an UNARMED state

Maybe this is as simple as enabling/disabling a strategy by hand? But depending on the interface this could be clear/simple or an annoying amount of clicks. I need it to be fast.

Main point is, I want to manually ARM the system and then let it buy/sell when strategy says. Things move too quickly for me to start the thing based on timing chart candle moves at 200tick charts, but i can see setups in advance.


Is this possible with default NT or would this take a bunch of custom programming?

Thanks!

I have used software for this. It's quite remarkable. It's called MPTpredictor. You can Google it.

It gives you the ability to set up entry, stop and targets and move all around without being live.

Once you are happy you just wait and click one button and it "activates" orders. There are many other features and the author has his own way to trade attached to the software which is kind of annoying but it's such good software.





Sent using the futures.io mobile app

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #5 (permalink)
 Jasonnator 
Denver, Colorado United States
 
Experience: Intermediate
Platform: NT8 + Custom
Broker: NT Brokerage, Kinetick, IQFeed, Interactive Brokers
Trading: ES
 
Jasonnator's Avatar
 
Posts: 145 since Dec 2014
Thanks: 39 given, 134 received

This can be easily done with code examples you could splice together. Here is a sample of adding a button to your chart and covers several of the gotchas so you don't crash your platform. I would recommend 2 buttons, one to enable, one to disable allowing new trades. Those button could simply set a bool value (maybe allowOpenNewTrades) in your strategy. That bool value could be wrapped in an if statement and that if block would encompass all of your trade entry logic. I'd probably not expose this as a property and set it to false in State.SetDefaults and only allow the button's click handler change its value.

I recommend doing it this way because you indicated you only wanted to prevent entries and it sounds like you want your automation to still manage any open trades. Also, you never have to worry about enabling disabling the strategy itself. This would only prevent new automated trade entries.

How I develop my trading tools: How to videos
Latest: Trading hours and Mid price

Free code: GitLab repository
Reply With Quote
The following user says Thank You to Jasonnator for this post:
 
(login for full post details)
  #6 (permalink)
 Sandpaddict 
Langley
 
Experience: Intermediate
Platform: Ninjatrader
Broker: IB
Trading: Futures
 
Sandpaddict's Avatar
 
Posts: 643 since Mar 2020


Jasonnator View Post
This can be easily done with code examples you could splice together. Here is a sample of adding a button to your chart and covers several of the gotchas so you don't crash your platform. I would recommend 2 buttons, one to enable, one to disable allowing new trades. Those button could simply set a bool value (maybe allowOpenNewTrades) in your strategy. That bool value could be wrapped in an if statement and that if block would encompass all of your trade entry logic. I'd probably not expose this as a property and set it to false in State.SetDefaults and only allow the button's click handler change its value.

I recommend doing it this way because you indicated you only wanted to prevent entries and it sounds like you want your automation to still manage any open trades. Also, you never have to worry about enabling disabling the strategy itself. This would only prevent new automated trade entries.



Sent using the futures.io mobile app

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
 skellington 
San Jose, CA
 
Experience: Beginner
Trading: Futures
 
Posts: 20 since May 2021
Thanks: 14 given, 9 received


Jasonnator View Post
This can be easily done with code examples you could splice together. Here is a sample of adding a button to your chart and covers several of the gotchas so you don't crash your platform. I would recommend 2 buttons, one to enable, one to disable allowing new trades. Those button could simply set a bool value (maybe allowOpenNewTrades) in your strategy. That bool value could be wrapped in an if statement and that if block would encompass all of your trade entry logic. I'd probably not expose this as a property and set it to false in State.SetDefaults and only allow the button's click handler change its value.

I recommend doing it this way because you indicated you only wanted to prevent entries and it sounds like you want your automation to still manage any open trades. Also, you never have to worry about enabling disabling the strategy itself. This would only prevent new automated trade entries.

That's great, thanks! That does sound like an approach that would work (not sure I need two buttons), have the automation 'running' but internally set it to respond to the ARMED button, process a single trade (blocking other new trades and setting the button text to WORKING if possible) until complete, then set the ARMED button back to the waiting state.

Started this thread Reply With Quote
 
(login for full post details)
  #8 (permalink)
 Jasonnator 
Denver, Colorado United States
 
Experience: Intermediate
Platform: NT8 + Custom
Broker: NT Brokerage, Kinetick, IQFeed, Interactive Brokers
Trading: ES
 
Jasonnator's Avatar
 
Posts: 145 since Dec 2014
Thanks: 39 given, 134 received

Yeah, you could definitely do it all with 1 button fairly easy. Good luck!

How I develop my trading tools: How to videos
Latest: Trading hours and Mid price

Free code: GitLab repository
Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Manual pre-trigger for automated entry and exit?


Last Updated on May 31, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

June
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts