Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Linear Momentum - indicator for MetaTrader 4

Views:
31733
Rating:
(45)
Published:
2015.05.29 10:02
Updated:
2016.11.22 07:32
MQL5 Freelance 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).

Convert time to double and vice versa Convert time to double and vice versa

Library to convert datetime to double and vice versa.

Pivot Point with adjustable closing time Pivot Point with adjustable closing time

Pivot 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 PairsIndex

PairsIndex indicator shows the price index of 7 currencies dealing with 7 currency pairs.

PrimeLevelsBlack PrimeLevelsBlack

This indicator will place up to 6 lines, at prime levels of your choosing, in a successive pattern on the chart.