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

2015.12.11 11:12

Lot-SL propotion - library for MetaTrader 4

| English Русский 中文 Español Deutsch 日本語 Português

votes: 28

The function returns the lot size, which is calculated based on the stop loss size and the risk specified in the variable. That is, if the risk is set to 2%, and the SL is set to 40 points, the lot will be calculated in such a way, that if the price reaches the SL, then 2% of the deposit would be lost.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Close all locked orders Close all locked orders

The function closes all locked orders. This really saves money on the spread.

Divergence Divergence

Implementation of a trading system based on divergence detection.

AP Script ver 1.01 AP Script ver 1.01

The script analyzes the market based on two criteria: the moving averages and the support and resistance levels.

Coin Flip Coin Flip

Opens orders using the martingale and a virtual trailing stop.