Positive Volume Index – indicator MetaTrader 4

Positive Volume Index
Description: This indicator, recognizing trends in an early stage, can be used to get ready for a break-out scenario. The indicator depicts the Positive Volume Index (PVI), smoothed by the factor MA_PERIOD (default=2). For comparison purpose, the EMA with period ME_PERIOD (default=10) is also added to the indicator window. Notice: The code is at it

Script to close all negative trades first and then followed by positive trades – script MetaTrader 4

Script to close all negative trades first and then followed by positive trades - script for MetaTrader 4
Usually when we close all trades, it is always from the last trades to the first one. Therefore, there will be positive and negative trades jumble up your closing trades history. It will not look good at all in your trades history. Using this modified script by me, it will cleanly close all trades with