NexusFi: Find Your Edge


Home Menu

 





New Strategy Coding Help


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one FatDemon with 25 posts (3 thanks)
    2. looks_two MWinfrey with 13 posts (10 thanks)
    3. looks_3 grimReaper with 6 posts (2 thanks)
    4. looks_4 vegasfoster with 2 posts (1 thanks)
      Best Posters
    1. looks_one MWinfrey with 0.8 thanks per post
    2. looks_two vegasfoster with 0.5 thanks per post
    3. looks_3 grimReaper with 0.3 thanks per post
    4. looks_4 FatDemon with 0.1 thanks per post
    1. trending_up 14,491 views
    2. thumb_up 17 thanks given
    3. group 23 followers
    1. forum 49 posts
    2. attach_file 9 attachments




 
Search this Thread

New Strategy Coding Help

  #21 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318


MWinfrey View Post
After looking at your chart and reading your posts, I'm wondering why you want a strategy. You obviously apply discretion. A strategy will just get in your way.

The main reason I'd like to use a script is for modifying my orders. When the market moves fast, I sometimes miss entry points because i might be looking at other charts, news, etc. I wouldn't use it as a completely automatic strategy, but it would help me multitask more efficiently.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Are there any eval firms that allow you to sink to your …
Traders Hideout
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
 
  #22 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318


MWinfrey View Post
....I will proceed with the short entries and other capabilities after you approve what I've done so far.

MWinfrey, thanks for writing this! I'm trying to use your code to plot the short entries but I'm having no luck. My lack of programming knowledge may cause me to punch my monitor... I'd happily pay you to complete this if you're interested.

I appreciate what you've done so far!

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #23 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


Sounds like what you really want is a signal generator or basically an indicator that identifies the entries with an arrow. I say this because based on your description you have a set of rules but you use discretion to either accept or reject the potential entry. Can't really do any order entry based on discretion. A strategy will either take ALL the entries or NONE.

So, what I can do is write it as an indicator. Let me know if that's what you want.

Mike

Reply With Quote
  #24 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318

I originally thought an indicator would suffice, but what I am finding is I miss several signals when the markets are moving fast. Manually moving my orders above/below the Don mean line isn't the easiest to keep accurate when things are moving at light speed. Catching those "runners" is what makes it profitable and when a quick retrace happens and I miss the move, I may not catch another one for the day. Automating that process should solve it. I figure I can disable the strategy when market conditions aren't ideal. Perhaps, some of my "discretion" can be coded as well such as trading only market hours, staying out of big news events, defining major S/R areas... etc. Turning a running strategy on and off is obviously part of the overall strategy as well. If conditions aren't met, that can't be coded, simply disable it until they are.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #25 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


FatDemon View Post
I originally thought an indicator would suffice, but what I am finding is I miss several signals when the markets are moving fast. Manually moving my orders above/below the Don mean line isn't the easiest to keep accurate when things are moving at light speed. Catching those "runners" is what makes it profitable and when a quick retrace happens and I miss the move, I may not catch another one for the day. Automating that process should solve it. I figure I can disable the strategy when market conditions aren't ideal. Perhaps, some of my "discretion" can be coded as well such as trading only market hours, staying out of big news events, defining major S/R areas... etc. Turning a running strategy on and off is obviously part of the overall strategy as well. If conditions aren't met, that can't be coded, simply disable it until they are.

The problem is that I can't write a strategy that allows discretion. A strategy will take EVERY entry and you apply discretion. So i can't do what you are asking.

Reply With Quote
  #26 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318


MWinfrey View Post
The problem is that I can't write a strategy that allows discretion. A strategy will take EVERY entry and you apply discretion. So i can't do what you are asking.

I appreciate your help MWinfrey. I know discretion doesn't factor into testing results, but I think using a strategy with discretion could prove to be profitable. Who knows, I may find that my discretion is limiting my profitability. A more mechanical approach could be more powerful.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #27 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


FatDemon View Post
I appreciate your help MWinfrey. I know discretion doesn't factor into testing results, but I think using a strategy with discretion could prove to be profitable. Who knows, I may find that my discretion is limiting my profitability. A more mechanical approach could be more powerful.

What I'm attempting to say is using discretion AND a strategy are mutually exclusive. You can't have both with NT.

Reply With Quote
  #28 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335

Maybe others can weigh in here...

Reply With Quote
  #29 (permalink)
 
FatDemon's Avatar
 FatDemon 
San Francisco California, USA
 
Experience: Intermediate
Platform: MetaTrader, NinjaTrader
Broker: Mirus Futures/Zen-Fire, Oanda
Trading: USD/JPY, ES
Posts: 110 since Nov 2012
Thanks Given: 48
Thanks Received: 318

I have to admit, I'm growing more curious to how well it would work without me cherry picking entries.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #30 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824



MWinfrey View Post
What I'm attempting to say is using discretion AND a strategy are mutually exclusive. You can't have both with NT.


MWinfrey View Post
Maybe others can weigh in here...

Well, technically it would be possible, but would it make sense?
I could imagine two basic approaches: let the strategy wait for confirmation from user (even a timeout would be imaginable) or let the user "disable" the strategy on the fly...

I know most might say it's not possible and NT support would say so too, but all the funny stuff is "not possible"

Vvhg

Hic Rhodos, hic salta.
Reply With Quote




Last Updated on January 4, 2013


© 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