NexusFi: Find Your Edge


Home Menu

 





Intrabarpersist and Historical tick data Question


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two BeetleBaum with 1 posts (0 thanks)
    3. looks_3 marketstudent with 1 posts (0 thanks)
    4. looks_4 MooreTech with 1 posts (0 thanks)
    1. trending_up 4,855 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 marketstudent 
california
 
Experience: Intermediate
Platform: NinjaTrader
Posts: 5 since Jul 2009
Thanks Given: 0
Thanks Received: 0

I am a new tradestation user, and I am new to EL. I try to understand and verify how intrabarpersist works for Historical tick data. Below is the indicator code, the code is applied to a 500-tick chart using tradestation historical tick data. Nothing is plotted in the indicator subgraph, what's wrong?

Thanks very much in advance for your help!

 
Code
                            
// code test 1 
Var: intrabarpersist TradeCount(0); 
Var: 
intrabarpersist TradesThisBar(0); 

If 
LastBarOnChart then Begin 

TradeCount 
= TradeCount + 1 ; 
TradesThisBar = TradeCount ; 

If 
Barstatus(1) = 2 then TradeCount = 0; 

Plot1(TradesThisBar ,"Trades") ; 

End; 

// code test 2 
Var: intrabarpersist TradeCount(0); 
Var: 
intrabarpersist TradesThisBar(0); 

TradeCount = TradeCount + 1 ; 
TradesThisBar = TradeCount ; 

If 
Barstatus(1) = 2 then TradeCount = 0; 

Plot1(TradesThisBar ,"Trades") ; 


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
No book, only a stair: journaling fills where price move …
Cryptocurrency
Trump Media to sell instant access to market-moving soci …
Traders Hideout
My Rant with AMP Futures
Trading Reviews and Vendors
Datafeed for Atas
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
TopStep Trader disappointment
2 thanks
Johnnys Journal
2 thanks
  #3 (permalink)
 MooreTech 
Orlando, Florida
 
Experience: Advanced
Platform: NinjaTrader, TradeStation, MultiCharts, eSignal, MetaTrader
Trading: ES
Posts: 57 since Aug 2010
Thanks Given: 6
Thanks Received: 73


marketstudent,
I'm testing your code and both versions seem to plot fine. Are you connected to TradeStation's data feed?


marketstudent View Post
I am a new tradestation user, and I am new to EL. I try to understand and verify how intrabarpersist works for Historical tick data. Below is the indicator code, the code is applied to a 500-tick chart using tradestation historical tick data. Nothing is plotted in the indicator subgraph, what's wrong?

Thanks very much in advance for your help!

 
Code
                            
// code test 1 
Var: intrabarpersist TradeCount(0); 
Var: 
intrabarpersist TradesThisBar(0); 

If 
LastBarOnChart then Begin 

TradeCount 
= TradeCount + 1 ; 
TradesThisBar = TradeCount ; 

If 
Barstatus(1) = 2 then TradeCount = 0; 

Plot1(TradesThisBar ,"Trades") ; 

End; 

// code test 2 
Var: intrabarpersist TradeCount(0); 
Var: 
intrabarpersist TradesThisBar(0); 

TradeCount = TradeCount + 1 ; 
TradesThisBar = TradeCount ; 

If 
Barstatus(1) = 2 then TradeCount = 0; 

Plot1(TradesThisBar ,"Trades") ; 


Follow me on X Reply With Quote
  #4 (permalink)
 BeetleBaum 
East Ridge, Tennessee, USA
 
Experience: Master
Platform: TradeStation
Trading: Futures, Stocks, Options, Forex
Posts: 17 since Nov 2022
Thanks Given: 4
Thanks Received: 4

Is it possible to compare time-sales data for the High and Low (real-time or historical) of a bar to determine which came first?

Thanks in advance!


Reply With Quote




Last Updated on January 15, 2023


© 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