Join our fan page
Linear Momentum - indicator for MetaTrader 4
- Views:
- 31801
- Rating:
- Published:
- 2015.05.29 10:02
- Updated:
- 2016.11.22 07:32
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Background:
I was impressed by physics calculation with subject named "Linear Momentum" that can be found on Mr. Achmad Hidayat’s blog with title "Konsep Momentum Linier dan Interpretrasinya pada Forex" and challenged to create a simple indicator based on that article. Unfortunately, I wasn’t able to read his article clearly, so I was looking for another reference for better sense. Then I felt grateful after I found a very clear article about Linear Momentum written by Mrs. Sarah Friedl that can be found at http://study.com/academy/lesson/linear-momentum-definition-equation-and-examples.html.
Linear Momentum:
Momentum is strength of an object that moves to different place — this is my own definition. Momentum can be calculated with following equation: momentum = mass x velocity. You should already know that velocity is speed with direction. Shortest equation will be: p=mv where p is momentum, m is mass (in kg) and v is velocity (in m/s).
Linear Momentum Implementation in MetaTrader Custom Indicator:
The following will explain why it’s called Linear Momentum in Forex:
- p = momentum;
- m = mass, converted into volume of trade or tick; I would prefer to use tick volume because it’s more easy to find tick information than volume of all lots traded around the world;
- v = velocity, it’s a value taken from pips movement divided by timeframe (point/seconds, originally in m/s).
Library to convert datetime to double and vice versa.
Pivot Point with adjustable closing timePivot Point (PP) indicator for use on timeframes < D1 with adjustable preceding day close time, elimination of sunday bars, optional display of weekly and monthly PP, preview of tomorrows' PP and current days' midpoints.
PairsIndex indicator shows the price index of 7 currencies dealing with 7 currency pairs.
PrimeLevelsBlackThis indicator will place up to 6 lines, at prime levels of your choosing, in a successive pattern on the chart.