https://www.mql5.com/en/code/9382
There's the source code.
You operate this by dragging it onto a chart, not by using the "Open a trade" GIU
---
I would make two copies of this, one to buy, one to sell, renamed appropriately.
Edit the variables marked extern to change the default settings.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Guys
New to MT4 but experienced trader. I'm on Smart Live Markets with MT4, in my scripts I got "Trader Script 1" which has a set up for Lot Size, Take Profit, Stop Loss, Buy, Sell
What I am trying to do is when I trade and hit BUY or SELL I want default settings added to every trade like:
Lot Size £1.00, Take Profit 50 pips, Stop Loss 20 pips
Please help and tell me how to get this to work