Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Scripts

Buy using amount instead of lots - script pour MetaTrader 5

Vues:
5777
Note:
(16)
Publié:
2021.01.27 15:34
Mise à jour:
2021.05.26 14:25
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Open a buy position using the desired dollar amount instead of lots.

To use, just drop it onto a chart and set inputs as needed.

The script will then do the necessary lot calculation and open the trade.


Inputs:
  • FIXED_DEAL_AMOUNT: Fixed amount to use per trade e.g 100 to open a R100 deal
  • USE_SL_ON_BUY: If true then a suitable stoploss will be used, else no stop is placed but can be placed manually after opening position

One can also set a global variable '_Symbol+_MAX_SPREAD' to set max spread limit for each traded instrument.

e.g For EURUSD the global variable would be: EURUSD_MAX_SPREAD

e.g For Nasdaq 100 the global variable would be: Nasdaq 100_MAX_SPREAD 














insertion sort - array sorting algorithm insertion sort - array sorting algorithm

a simple sorting algorithm that people use to manually sort cards in a bridge hand

Breakout Strength Meter - MT5 Breakout Strength Meter - MT5

The breakout strength meter is a trading tool that is used to identify which currencies are the strongest to breakout, and which currencies are the weakest to breakout

Sell using amount instead of lots Sell using amount instead of lots

I find the lot calculation tedious so I just use this script and tell it the dollar amount to use. It then does the rest. This works for any currency.

Database Wrapper Database Wrapper

This is a wrap for using databasexxx