Can't wait for Heiken Ashi Support ????

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Can't wait for Heiken Ashi Support ????

Postby Gidien » Wed Mar 24, 2010 5:51 am

Because i couldn't wait for new Marketscope Version , i wrote an Heiken Ashi Candlestick Indicator with a litle Trik.

NOTICE the Color for haLow must be you chart background Color.

Use also BarChart in the background.


HA.JPG


Sorry, found some failure in the Heiken Ashi Calculation

Should now correct.

HA1.lua
(3.46 KiB) Downloaded 1750 times


The indicator was revised and updated
Gidien
FXCodeBase: Confirmed User
 
Posts: 106
Joined: Mon Feb 08, 2010 7:39 am
Location: Hamburg

Re: Can't wait for Heiken Ashi Support ????

Postby Nikolay.Gekht » Wed Mar 24, 2010 9:41 am

:-) cool. I renamed the indicator to HA1.lua. The standard indicator in the new version is also named HA.lua, and after the update this custom indicator (if it is installed) will override the standard indicator.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Can't wait for Heiken Ashi Support ????

Postby Nikolay.Gekht » Wed Mar 24, 2010 10:38 pm

BTW, in lua you don't need to use constructions like this
haHIGH[period] = math.max(source.high[period],math.max(haOPEN[period],haCLOSE[period]));
unlike many other language lua supports variable number of arguments, so you can use
the following instead:
haHIGH[period] = math.max(source.high[period], haOPEN[period], haCLOSE[period]);
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC



Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 42 guests

cron