Guarda come scaricare robot di trading gratuitamente
Ci trovi su Twitter!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Script

Sell using amount instead of lots - script per MetaTrader 5

Visualizzazioni:
7142
Valutazioni:
(17)
Pubblicato:
2021.01.27 15:36
Aggiornato:
2021.05.26 14:27
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Open a sell 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 


    Buy using amount instead of lots Buy 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.

    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

    Database Wrapper Database Wrapper

    This is a wrap for using databasexxx

    Spread data collector Spread data collector

    This EA collects information about the spreads and Shows the number of spreads in the specified range based on the ticks that occur each year.