Code Block for “Trailing Stop” based on current market price. (Ask / Bid) – expert advisor for MetaTrader 5

Code Block for "Trailing Stop" based on current market price. (Ask / Bid) - expert for MetaTrader 5
This code block works if you use either a Stop Loss or Not.  Requirements  You need to include “Trade.mqh ” to get access to the CTrade class which allows you to work with positions and orders. #include <Trade\Trade.mqh> // <<—————————————— Include this “Trade.mqh” to access the CTrade Class You need to set an input parameter

Peak Lines by Price Histogram – indicator for MetaTrader 5

Peak Lines by Price Histogram
This indicator shows the support/resistance lines using price histogram. The indicator is not so heavy, the calculation was simplified. Display: Gold Line — peaks of a 1-day histogram. Red Line — peaks of a short term histogram. Magenta Line — peaks of a medium term histogram. Blue Line — peaks of a long term histogram.

Next price predictor using Neural Network – indicator for MetaTrader 4

Next price predictor using Neural Network - indicator for MetaTrader 4
Autor: gpwr Version History: 06/26/2009 – added a new indicator BPNN Predictor with Smoothing.mq4, in which prices are smoothed using EMA before predictions. 08/20/2009 – corrected the code calculating the neuron activation function to prevent arithmetic exception; updated BPNN.cpp and BPNN.dll 08/21/2009 – added clearing of memory at the end of the DLL execution; updated

Detrended Price Oscillator (DPO) – indicator for MetaTrader 5

Detrended Price Oscillator
Detrended Price Oscillator removes the trend effect of price movement. This simplifies the process of finding out cycles and overbought/oversold levels. Long-term cycles consist of several shorter cycles. Analyzing such short components helps to define crucial moments of the cycle’s development. DPO gives a chance to eliminate the influence on prices of long-term cycles. To