Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Buy using amounts instead of lots - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

Buy using amount instead of lots - script for MetaTrader 5

Buy using amount instead of lots - script for MetaTrader 5

Open a buy position using the desired USD amount rather than the lot size.

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

The script will then perform the necessary lot calculations and open the trade.

Buy using amount instead of lots - script for MetaTrader 5

One can also set a global variable "_Symbol+_MAX_SPREAD" to set the maximum spread limit for each trading instrument.

For example, for EURUSD, the global variable is: EURUSD_MAX_SPREAD

For example, for the Nasdaq 100 index, the global variable is: Nasdaq 100_MAX_SPREAD


Attachment download

📎 tradehelper.mqh (7.83 KB)

📎 scriptbuy.mq5 (2.23 KB)

Source: MQL5 #33184

Verification code Refresh