SeaSide420

HullMA cross Strategy

SeaSide420 ที่อัปเดต:   
From Indicator420 by SeaSide420 HULL MOVING AVERAGE CROSS & CANDLE CROSS

Hull Moving Average (HMA) formula
Integer(SquareRoot(Period)) WMA (2 x Integer(Period/2) WMA(Price) - Period WMA(Price))

Solving the problem of lag requires an explanation with numbers rather than charts. Consider a series of 10 numbers from '0' to '9' inclusive and imagine that they are successive price points on a chart with 9 being the most recent price point at the right hand leading edge.
If we take the 10 period simple average of these numbers then, not surprisingly, we will determine the midpoint of 4.5 which significantly lags behind the most recent price point of 9. Here's the clever bit, first let's halve the period of the average to 5 and apply it to the most recent numbers of 5, 6, 7, 8 and 9, the result being the midpoint of 7.
To remove the lag we take the midpoint of 7 and add the difference between the two averages which equals 2.5 (7 - 4.5). This gives a final answer of 9.5 (7 + 2.5) which is a slight overcompensation. But this overcompensation is very handy because it offsets the lagging effect of the nested averaging.
Hence the result of combining these 2 techniques is a near perfect balance between lag reduction and curve smoothing. The HMA manages to keep up with rapid changes in price activity whilst having superior smoothing over an SMA of the same period.
The HMA employs weighted moving averages and dampens the smoothing effect (and resulting lag) by using the square root of the period instead of the actual period itself.
There are 3 HullMAs in the script, one runs on current price, and others on previous candle prices, when they cross over, is the entry signal.
The strategy also includes a candle cross condition for entry:
(if current price greater than previous candle value (Open+High+Low+Close)/4) then BUY
(if current price less than previous candle value (Open+High+Low+Close)/4) then SELL
in total 4 crossover conditions must be met to initiate a signal.
เอกสารเผยแพร่:
put in the Backteser History data settings
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้เผยแพร่แบบปิดและคุณสามารถใช้มันได้อย่างอิสระ คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้แต่คุณจะไม่สามารถดูหรือแก้ไขซอร์สโค้ดได้
คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?