Watch how to download trading robots for free
Find us on Twitter!
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
Libraries

StopLoss Calculation - library for MetaTrader 4

Views:
13482
Rating:
(15)
Published:
2016.04.06 17:13
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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()).

SmartTrail SmartTrail

This library has SmartTrail trail function that depends on the previous candle.

MoneyManagement MoneyManagement

It calculates the lot size depending on risk percentage entered by user in input parameters.

Fibonacci Levels Fibonacci Levels

This is an indicator which draws Fibonacci levels as indicator indexes.

Hidden StopLoss Hidden StopLoss

This library is made for experts that need to calculate StopLoss and TakeProfit without putting SL/TP points on the trade.