NexusFi: Find Your Edge


Home Menu

 





Easylanguage Contract info


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #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 X Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
Systematic Algo Trader
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,270 since Feb 2017
Thanks Given: 2,960
Thanks Received: 2,856


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 X 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 X Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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 X 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 X 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 X Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on May 21, 2021


© 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