NexusFi: Find Your Edge


Home Menu

 





Resources for building a custom automated order entry?


Discussion in NinjaTrader

Updated
    1. trending_up 3,162 views
    2. thumb_up 5 thanks given
    3. group 4 followers
    1. forum 17 posts
    2. attach_file 3 attachments




 
Search this Thread
  #11 (permalink)
 TigerStripes   is a Vendor
 
Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 56


forrestang View Post
Oh, I actually figured it out, but never posted in this thread.

I posted a video of the ATM strat working in another thread, but have deleted the video as someone told me I had some personal info in it.

I can make another video demo-ing the strategy, and post the code for it if it would help?

if you can DM me te video or YT link.

Reply With Quote
  #12 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,337 since Jun 2010
Thanks Given: 354
Thanks Received: 1,049


TigerStripes View Post
if you can DM me te video or YT link.

I no longer have the vid, its completely deleted from my YT and my PC. I'll have to re-record it when I get a chance.

Started this thread Reply With Quote
Thanked by:
  #13 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,337 since Jun 2010
Thanks Given: 354
Thanks Received: 1,049


TigerStripes View Post
if you can DM me te video or YT link.

Basic functionality in the script.

Might be a while before the HD version of the video renders?

LINK

Attached Files
Elite Membership required to download: MAMs_OrderPlaceReplace.zip
Started this thread Reply With Quote
Thanked by:
  #14 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,337 since Jun 2010
Thanks Given: 354
Thanks Received: 1,049

Oh... I probably didn't explain well in the video.

But this strategy simple takes a starting price, and enters a grid of orders at that price and below.

Each orders has a fixed stop(I set them all to the same number), and a unique target. As a target is hit, that orders is REPLACED.

It does this until that lower level is hit.

Started this thread Reply With Quote
  #15 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,337 since Jun 2010
Thanks Given: 354
Thanks Received: 1,049

Also.. in just thinking about it.. the example I created is WAY more complex than the basic example needs to be. I had some issues to work out with storing order names into the array... as that is how I created the order grid. I discussed that in THIS thread.

If you only need to do this with one order, or don't need a more complex grid of orders... THIS example may be the best to work with. It is how I built a basic functioning one the first time.

Started this thread Reply With Quote
Thanked by:
  #16 (permalink)
 TigerStripes   is a Vendor
 
Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 56


forrestang View Post
Basic functionality in the script.

Might be a while before the HD version of the video renders?

LINK

email me at oneresumellc at g mail dot come I will like to learn how the system functions.

Reply With Quote
  #17 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,337 since Jun 2010
Thanks Given: 354
Thanks Received: 1,049


TigerStripes View Post
email me at oneresumellc at g mail dot come I will like to learn how the system functions.

Howdy.

If you have questions, post them here in this thread.

Started this thread Reply With Quote
Thanked by:
  #18 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,337 since Jun 2010
Thanks Given: 354
Thanks Received: 1,049

One other quirk I may have forgotten to mention, its been a while since I messed w/it.

But, for the ATM strat to work, I believe you have to have saved a ATM template, and it has to have the same name that I put into the script.

I named it "AtmStrategyTemplate".

So you need to create one using chart trader. Attached is a screenshot of the one I created.

When YOU create yours, you want to use that SAME name(or change it in the script to whatever you want to call it), and put your parameters in there. I used a a 50Tick stop and target, and I put a size of 10K in as I was testing on FX.

The stop/target.. The script will overwrite those values anyway once it places the order.

If you are using some other instrument, adjust your #s accordingly.
https://nexusfi.com/attachments/325269

Attached Thumbnails
Click image for larger version

Name:	2022-06-16_193857.PNG
Views:	105
Size:	10.1 KB
ID:	325269  
Started this thread Reply With Quote




Last Updated on June 16, 2022


© 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