NexusFi: Find Your Edge


Home Menu

 





Number of Entries


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,328 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

Number of Entries

  #1 (permalink)
jessehhhh
Montclair
 
Posts: 17 since Nov 2018
Thanks Given: 0
Thanks Received: 0

Hi All,

I have a relatively simple (I believe) question for the community.

If I have a an automated strategy that triggers a buy and lets say that buy is for 500 shares. If the order is filled in two lots, 1 of 450 shares and 1 of 50 shares will tradestation recognize this at the number of entries into the stock being 1 or 2?

What I am really asking is will the CurrentEntries function =2 or =1

Thank you in advance you guys are the best!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
Request for MACD with option to use different MAs for fa …
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
67 thanks
Battlestations: Show us your trading desks!
48 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623


jessehhhh,

when you issue one order, it should be reflected as one entry only.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #4 (permalink)
jessehhhh
Montclair
 
Posts: 17 since Nov 2018
Thanks Given: 0
Thanks Received: 0

Thank you ABCTG

Are you positive about this? I only ask because my strategy made some weird sells as it is based off of the number of current entries and it would make sense if the system recognized the 2 different lots of 450 and 50 as two entries.

Other wise I have to go back through every line of code again

Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

jessehhhh,

I would suggest using print statements to check what values your code sees. You might also want to check if your code only issued one order or if it in fact issued two.

Regards,

ABCTG


jessehhhh View Post
Thank you ABCTG

Are you positive about this? I only ask because my strategy made some weird sells as it is based off of the number of current entries and it would make sense if the system recognized the 2 different lots of 450 and 50 as two entries.

Other wise I have to go back through every line of code again


Follow me on Twitter Reply With Quote
  #6 (permalink)
jessehhhh
Montclair
 
Posts: 17 since Nov 2018
Thanks Given: 0
Thanks Received: 0

I appreciate the feedback.

Before I go searching, do you know a good forum for using the print code you said. I've never done this before.

Reply With Quote
  #7 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

jessehhhh,

you are welcome. By the way Futures.IO allows you to show your appreciation for posts by clicking the "Thanks" button next to the specific post.

Check out the help file of the Tradestation Development Environment (TDE), it comes with a few example for using the print reserved word. You can highlight a reserved word in your code within the TDE and click F1, this will bring up the help file.

Regards,

ABCTG


jessehhhh View Post
I appreciate the feedback.

Before I go searching, do you know a good forum for using the print code you said. I've never done this before.


Follow me on Twitter Reply With Quote





Last Updated on January 30, 2019


© 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