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
Scripts

Check Margin - script for MetaTrader 5

Views:
5778
Rating:
(14)
Published:
2020.08.21 13:56
Updated:
2020.08.24 21:21
CheckMargin.mq5 (10.57 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This script calculates required margin to open a trade by examining specified volume.

It also calculates maximum amount of lots that can be traded for given symbol.


PARAMETERS

  • Symbol Name: select symbol for calculation. if it is not specified script takes chart symbol as default.
  • Volume: specify lots for required margin calculation.
  • Order Type: determine order type. results can be changed even a little because of spread.


Example: CADJPY with default parameters


    Adapter - structural design pattern Adapter - structural design pattern

    Convert the interface of a class into another expected interface; classes with incompatible interfaces can work together

    VR Watch List and Linker Lite MT5 VR Watch List and Linker Lite MT5

    Synchronous change of a trading instrument in all charts

    Kamikaze Trading Kamikaze Trading

    This script opens order with maximal amount of volume available.

    SimSim (Simple Simulator v1.0) SimSim (Simple Simulator v1.0)

    Simple Simulator is designed to practice manual trading on historical data.