NexusFi: Find Your Edge


Home Menu

 





Deny intrabar updating in a strategy


Discussion in TradeStation

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




 
Search this Thread
  #1 (permalink)
 rdixey 
Sanfrancisco CA
 
Experience: Intermediate
Platform: Tradestation
Trading: Futures
Posts: 8 since Sep 2013
Thanks Given: 3
Thanks Received: 0

What is the easy language code to make an indicator update once per bar for use in a strategy?


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Deal "In Review" at 87% on Deadline Day - …
Prediction Markets & Event Contracts
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
LogicalTrader
Houston, TX
 
Posts: 294 since Aug 2013
Thanks Given: 1,420
Thanks Received: 757

If the first line in the EasyLanguage file is:

 
Code
[IntraBarOrderGeneration=False]
the strategy will evaluate only once per par. This can also be set in the "Format Strategies" dialog box.

This is from Tradestation help:


Quoting 
The EasyLanguage attribute IntraBarOrderGeneration allows you to turn on or off the intrabar order generation flag. If the attribute is not present in any of the strategy code, users will be allowed to control the setting through the Calculations tab. If the attribute is present and set to TRUE, the ’Enable intrabar order generation and calculation’ flag will be checked, the checkbox will be disabled, and the radio buttons will be available. If the attribute is present and set to FALSE, the ’Enable intrabar order generation and calculation’ flag will be unchecked and the checkbox and radio buttons will be disabled.

The syntax is as follows:

[IntrabarOrderGeneration = Value] // where Value can be TRUE or FALSE

The use of square brackets is required for this reserved word.

Remarks
This attribute may only be used in a strategy. If used in any other type of module the following error should appear at verify time and the focus should be set to the attribute: ”Attribute IntrabarOrderGeneration is only available for use in strategies.”

The intrabar order generation feature is only supported for single data stream charts. If applied to a multiple data stream chart, the status of the strategy will be turned off.

Example
[IntrabarOrderGeneration = FALSE] // Strategy will only generate orders at close of bar

Attributes are evaluated at compile time only so their values cannot be changed at run-time.

Hope this helps


Reply With Quote




Last Updated on September 11, 2013


© 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