NexusFi: Find Your Edge


Home Menu

 





How get hystorical bar speed?


Discussion in EasyLanguage Programming

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




 
Search this Thread

How get hystorical bar speed?

  #1 (permalink)
rawos
Rome
 
Posts: 10 since Feb 2010
Thanks Given: 1
Thanks Received: 3

Hi all i have this code which plot the speed in a range/tick/cv bar chart.
It's only in real time and i would get to see it working on hystorical too

i now tan i need time_s instead of computertime but i don't need to get work around this simple code. Anyone can help?
thanks


 
Code
/// Code Written by Tyler Moore
///  Free Indicators and Trading Tips - For Futures, Forex, and Equities
/// 
/// For modifications to this code or to have your own custom code written
/// please visit  Automated Trading Systems - Custom Indicators, and Trading Strategies	
/// <summary>

vars:
	intrabarpersist openTime(0),
	Intrabarpersist cb(0),
	Intrabarpersist diff(0);
	
If LastBarOnChart then begin
	If currentbar<>cb then begin
		openTime=computerdatetime;
		cb=currentbar;
	end;
		
	diff=computerdatetime-openTime;
	plot1(diff*1440);	
end;

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
use extra computer for optimisation
NinjaTrader
 




Last Updated on September 8, 2015


© 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