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
Stock Correlation with its Industry - Change over time
Hull Moving Average Strategy - Multi Time Frame Trading System
Stocks at All Time Highs/Lows

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

Related Forum Threads
Plotting Multiple time frame indicators
Real time
Real Time Update?
trading indicators
Thank for the Real Time Version: Interactive Brokers API question

Blog Posts
Statistical data analysis of time series
How to Pick the Best Trend Indicators
4 Market Composite Indicators Based on Industry Data
The custom trading indicators tool explained
How to create market indicators using the composite function - Pa...

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.