Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2016.04.06 17:13
StopLoss Calculation

StopLoss Calculation - library for MetaTrader 4

| English Español Português 日本語 Deutsch

votes: 10

This library made to simplify calculating your Stop Loss for market execution orders.

This library enables you to put your Stop Loss in Points, or you can make ATR(true) to calculate your stop loss depending on ATR indicator; and you can change ATR Multiplier which is 3 by default.

Your Stop Loss is calculated depending on your position, if you are opening Buy position, use StpLoss(0) function with Parameter=0, or use StpLoss(1) function with Parameter=1 for Sell positions.

If you want to use this function for OrderModify(), you can put StopLoss= StpLoss(OrderType()).

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

LinesProfitLoss LinesProfitLoss

Calculates profit (loss) of the current orders on the symbol.

FFC - Forex Factory Calendar FFC - Forex Factory Calendar

Modified version of FF Calendar Indicator with new features.