NexusFi: Find Your Edge


Home Menu

 





ATM Strategy Errors


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one zeller4 with 5 posts (1 thanks)
    2. looks_two Big Mike with 2 posts (1 thanks)
    3. looks_3 max-td with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 3,348 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 7 posts
    2. attach_file 2 attachments




 
Search this Thread

ATM Strategy Errors

  #1 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

Hello All futures.io (formerly BMT) coder/programmers!,

Attached is a modified version of "SampleAtmStrategy" from NT. I've added a short side also.

The two errors I keep getting are
 
Code
                            
"GetAtmStrategyEntryOrderStatus() method error:  Missing orderId parameter" 

and
 
Code
                            
"AtmStrategyChangeStopTarget() method error:  OrderName " is invalid
I even tried commenting out the lines 152-155 and 169-172 to try to isolate the problem to no avail.

Any help you can offer, please do.

Best Regards,
Kirk

Attached Files
Elite Membership required to download: SampleAtmStrategy_both_ways.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Futures True Range Report
The Elite Circle
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,536


While I don't use NT any more, I'll give you a to see if someone can help

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

got an answer over on NT support forum so this thread can be closed

Started this thread Reply With Quote
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,536


zeller4 View Post
got an answer over on NT support forum so this thread can be closed

Post the answer ??

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

Sorry BigMike,

Shoulda posted that previously.

SampleAtmStrategy - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Thanks.

Kirk

Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

thanks zeller,

so the NT-hardcoded names for Stop + Target-changing-syntax was the problem - never played with that - good to know.

BTW - for all in the future coming coder & projects

-> here a collection of links for the ATM - handling in strategy-codes :


- create ATM
http://ww25.ninjatrader-support.com/HelpGuideV6/helpguide.html?ASMStrategyCreate&subid1=20240328-1951-2385-9d95-db981175cb7f

- cancel ATM
http://ww25.ninjatrader-support.com/HelpGuideV6/helpguide.html?AsmStrategyActive&subid1=20240327-1953-46cb-968d-01c929eafa8d

- change ATMs Entry-Orders
http://ww25.ninjatrader-support.com/HelpGuideV6/helpguide.html?AsmStrategyChangeEntryOrder&subid1=20240327-1953-4744-94c5-65bf2ecfb9d1

- Change Stop + Target of open positions of ATM
http://ww25.ninjatrader-support.com/HelpGuideV6/helpguide.html?AsmStrategyChangeStopTarget&subid1=20240327-1953-479c-95cf-1f8d2fd66247

- close open positions of ATM
http://ww25.ninjatrader-support.com/HelpGuideV6/helpguide.html?AsmStrategyClose&subid1=20240327-1953-476a-ae0f-e2d190ce2da2


-

max-td
Reply With Quote
  #8 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

Thanks to MrTicks and others, I've decided to start with his CANCEL code and keep adding to it. I've gone back to the orderId, etc. without the "L" or "S".

Thanks max-td - I'll be adding the Close and ChangeEntry and ChangeStopTarget (links above).

This code is not currently "PROFITABLE" but is used with order setups that will provide action of the ATM method to tweak the other portions. See barStates and DrawTextFixed in the code. I'm still working with "when" to cancel the orders or change the entries with the bar indexing.

If anyone has any other improvements or suggestions as I keep modifying this, please let me know.


Here's the latest - NT7.

Kirk

Attached Files
Elite Membership required to download: SampleAtmStrategyCANCEL_v03.zip
Started this thread Reply With Quote




Last Updated on August 22, 2010


© 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