Click here to Login

                                                   Time cycle indicators


Obuli Govindaraju
2011-11-22 13:26:38

I am in the process of writing code to draw some time cycle based indicators.

The concept is rather simple where a cycle start date and end date will be given and some sort of drawing maybe a triangle will be drawn on the pane below the chart.

The first challenge I see is that there is no DateTime function in the Create Function editor. However Script Editor has that. Is it possible to access Script Editor functions from within Create Functions?

Also I searched for Time based indicators and couldn't find one. Any pointers?


2011-11-24 02:53:58


Best Answer
Here is how to get the date vector:

VectorDate dates = cFunctions.Date;

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Technical indicators time series
Export Indicators Data - Custom Time Frame
Crossover/Convergence of Several Trading indicators
Price at a specific Intraday Time
Hull Moving Average Strategy - Multi Time Frame Trading System

How-to Lessons
How to hide a trading indicator from a particular time frame
How to detect stocks trading near all time highs
How to calculate the average of a time series using the money man...
How to drag & drop indicators in charts
How to plot two different time frames in the same chart

Related Forum Threads
Plotting Multiple time frame indicators
caption / labeling of indicators etc.
Using multiple time frame in the real time version
i cant see market data for current time
Chart for 1m bars over a custom time range

Blog Posts
Statistical data analysis of time series
Update Chart Layout based on Active Time Frame
Learn How to Create Your Own Technical Analysis Indicators
3 Market Indicators based on Fundamental Data
4 Market Composite Indicators Based on Industry Data

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2017
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.