[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Help with code a cycle indicator



PureBytes Links

Trading Reference Links

Hello folks,
 
I would like to code a cycle indicator that basically starts with 1 on seeddate and then goes upto +20 and then starts counting down from
+20 to 0 and then starts 0 to -20 and then goes from -20 to 0. Basically like a sine wave. What function can be used for this?. Appreciate any sample if you can help me with. Thanks.
 
Cycle Indicator:
Seeddate = ' 12/01/2005'
Cycleperiod = 20
Plot the histogram or sine wave as green while going from 0 to +20
Plot the histogram or sine wave as red while going from 0 to -20
 
I would like to plot these on indices such as OEX and DOW.
 
Cheers,Padhu


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS