Tripple Momentum with Errors
Forums › ProRealTime English forum › ProBuilder support › Tripple Momentum with Errors
- This topic has 3 replies, 3 voices, and was last updated 9 months ago by JS.
Viewing 4 posts - 1 through 4 (of 4 total)
-
-
03/19/2024 at 12:55 PM #230021
Hi, i wonna code an Tripple Momentum Indi,
my code is, but i have Errors, pls help
Regards gatowman12345678910111213141516//@version=4study("Triple Momentum Indikator", shorttitle="TMI", overlay=true)// Berechne Momentum 1 (letzter Monat)mom1 = close / close[1] * 100// Berechne Momentum 2 (Monate m-1 bis m-3)mom2 = close / close[3] * 100// Berechne Momentum 3 (Monate m-3 bis m-6)mom3 = close / close[6] * 100// Berechne den Durchschnitt der drei Momentaavg_momentum = (mom1 + mom2 + mom3) / 3plot(avg_momentum, color=color.blue, linewidth=2, title="Triple Momentum")03/19/2024 at 4:00 PM #230043The code is not in the correct language, it requires a conversion.
Someone might help, sooner or later.
03/19/2024 at 4:04 PM #230044It seems to be an easy translation, try this one:
12345678910111213141516//@version=4//study("Triple Momentum Indikator", shorttitle="TMI", overlay=true)// Berechne Momentum 1 (letzter Monat)mom1 = close / close[1] * 100// Berechne Momentum 2 (Monate m-1 bis m-3)mom2 = close / close[3] * 100// Berechne Momentum 3 (Monate m-3 bis m-6)mom3 = close / close[6] * 100// Berechne den Durchschnitt der drei Momentaavgmomentum = (mom1 + mom2 + mom3) / 3return avgmomentum as "Triple Momentum"03/19/2024 at 6:02 PM #230061When I read the accompanying text, I think this is the intention:
Triple Momentum12345678910111213// Berechne Momentum 1 (letzter Monat)mom1 = close / close[1] * 100// Berechne Momentum 2 (Monate m-1 bis m-3)mom2 = close[1] / close[3] * 100// Berechne Momentum 3 (Monate m-3 bis m-6)mom3 = close[3] / close[6] * 100// Berechne den Durchschnitt der drei Momentaavgmomentum = (mom1 + mom2 + mom3) / 3return avgmomentum as "Triple Momentum" -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)