NexusFi: Find Your Edge


Home Menu

 





Number of Entries


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #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?
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642


jessehhhh,

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

Regards,

ABCTG


Follow me on X 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,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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 X 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,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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 X Reply With Quote




Last Updated on January 30, 2019


© 2026 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 - Downloads - Top
no new posts