NexusFi: Find Your Edge


Home Menu

 





Easylanguage Contract info


Discussion in EasyLanguage Programming

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




 
Search this Thread

Easylanguage Contract info

  #1 (permalink)
 
ZachC's Avatar
 ZachC 
Pennsylvania
 
Experience: Intermediate
Platform: TradeStation
Broker: Tradestation
Trading: Micro ES and Micro YM
Posts: 17 since Jun 2019
Thanks Given: 13
Thanks Received: 11

I am stuck is there a way to get the updated margin requirements for a specific contract via easylanguage?

I can not find a function to request that information anywhere. Please help my eyes hurt from looking.

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

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


ZachC View Post
I am stuck is there a way to get the updated margin requirements for a specific contract via easylanguage?

I can not find a function to request that information anywhere. Please help my eyes hurt from looking.

This is probably your best bet, but you have to know how to use EL Objects (I only know enough OOEL to be dangerous):


Note, there are two limitations here:
  1. It is processor intensive, so you don't want to get margin every single bar if you are running intraday charts. Code it to only get margin once per day.
  2. It does not reference historical data, so you cannot use that value for back testing.
I think that is the only way to get margin for an individual instrument/symbol. If you cannot puzzle this out, you may also try asking this question over at the TradeStation community forums.

I hope this helps a little.

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
ZachC's Avatar
 ZachC 
Pennsylvania
 
Experience: Intermediate
Platform: TradeStation
Broker: Tradestation
Trading: Micro ES and Micro YM
Posts: 17 since Jun 2019
Thanks Given: 13
Thanks Received: 11


Thank you very much for your reply, I was afraid it was going to require use of the EL Objects. I also struggle with them. Although what better time then now to learn how they work.

I also try on the TS Community forums as well maybe someone has already coded it out, thanks again.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628

ZachC,

there is a TradingApp posted in the official TS forum that shows how you can scrape margin information from a website: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=140235
It creates a file with the margin information and provides functions to access the information.

Regards,

ABCTG


ZachC View Post
Thank you very much for your reply, I was afraid it was going to require use of the EL Objects. I also struggle with them. Although what better time then now to learn how they work.

I also try on the TS Community forums as well maybe someone has already coded it out, thanks again.


Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
 
ZachC's Avatar
 ZachC 
Pennsylvania
 
Experience: Intermediate
Platform: TradeStation
Broker: Tradestation
Trading: Micro ES and Micro YM
Posts: 17 since Jun 2019
Thanks Given: 13
Thanks Received: 11


ABCTG View Post
ZachC,

there is a TradingApp posted in the official TS forum that shows how you can scrape margin information from a website: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=140235
It creates a file with the margin information and provides functions to access the information.

Regards,

ABCTG

This is awesome thank you, I will be checking this out for sure.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #6 (permalink)
 
ZachC's Avatar
 ZachC 
Pennsylvania
 
Experience: Intermediate
Platform: TradeStation
Broker: Tradestation
Trading: Micro ES and Micro YM
Posts: 17 since Jun 2019
Thanks Given: 13
Thanks Received: 11


ABCTG View Post
ZachC,

there is a TradingApp posted in the official TS forum that shows how you can scrape margin information from a website: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=140235
It creates a file with the margin information and provides functions to access the information.

Regards,

ABCTG

This worked exactly how I was hoping it would on the plat form thanks again.

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




Last Updated on May 21, 2021


© 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