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.
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
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
a simple sorting algorithm that people use to manually sort cards in a bridge hand