Fruitfella / ROBOT-binary

Membuat robot opsi biner yang profitable dan rendah resiko
79 stars 115 forks source link

How create Hull Moving Average (MA) on Bot Binary? #113

Open Sun29 opened 6 years ago

Sun29 commented 6 years ago

Hi Fruitfella, Can You help me write bot-block Hull Moving Average same as Weighted Moving Average (FWMAv1.0) Thank you.

Fruitfella commented 6 years ago

i don't know Hull Moving Average. tell me how it works (the formula), i'll try it later.

Sun29 commented 6 years ago

Hi Fruitfella, Thank for your reply.

All information about Hull Moving Average has in author website: https://alanhull.com/hull-moving-average

This is formula in author (Alan Hull): (1) Hull Moving Average (HMA) formula Integer(SquareRoot(Period)) WMA [2 x Integer(Period/2) WMA(Price) - Period WMA(Price)] (2) MetaStock formula period:=Input("period",1,200,20); sqrtperiod:=Sqrt(period); Mov(2*Mov(C,period/2,W) - Mov(C,period,W),LastValue(sqrtperiod),W);

And, this is formula in script of tradingview: (1) HMA = WMA(2*WMA(n/2) − WMA(n)),sqrt(n)) with: HMA = Hull Moving Average WMA = Weighted Moving Average N = Period SQRT = Square Root

And explain from fidelity.com (https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/hull-moving-average): (1) Calculation Calculate a Weighted Moving Average with period n / 2 and multiply it by 2 Calculate a Weighted Moving Average for period n and subtract if from step 1 Calculate a Weighted Moving Average with period sqrt(n) using the data from step 2 HMA= WMA(2*WMA(n/2) − WMA(n)),sqrt(n))

Note: On tradingview.binary.com also Hull MA indicator

I've attemp write from your formula about WMA (FWMAv1.0), but always wrong! Please, help me. Thank you again.

Fruitfella commented 6 years ago

Hi Sun29, after i read the formula, i find it a bit complex. need to make some WMAs arrays before calculating the HMA, etc. it would take few hours (for me) to build it, which is i don't have that much of spare time for this ( i also have a life, irl :P ). there are also some paid requests/projects that i need to do. so, i'm sorry i won't make this indicator anytime soon. i'll try it but dunno when, so don't wait for it.

my suggestion is either you try other indicator as a substitute of HMA for your strategy or ask the official developer of bot.binary(dot)com aminmarashi to make it.

Sun29 commented 6 years ago

Hi Fruitfella, Thank for your reply. I'll try another indicator. Thanks again & best regard.

theboyof8x commented 6 years ago

@Fruitfella My friend How do you do! Still Have Health? I Have Been In This Group Of You! Ah I Forgot To Send You The Indicator Kit That I Purchase And Promise To Share For You! :) Wait For My Facebook Message Nhe..I'll Send It To You To Use It Trader Binary

Fruitfella commented 6 years ago

@Sun29 you're lucky i'm so generous today this is my FRUITFELLA's HULLMA

@theboyof8x hello friend, i'm alive and kickin' here xD just noticed your message today xP thank you btw.

Sun29 commented 6 years ago

@Fruitfella, Thank for your indicator, "FRUITFELLA's HULLMA" Thanks again & best regard.