Forex Zone | Forex Forum

Close position with define lot - script

Discussion started on EA Modifications

  • Posts: 15
  • Points: 1470
  • Likes Received: 1
  • Reputation: +0/-0
Close position with define lot - script  in EA Modifications_clip
Hello !

I'm looking for a script where you can choose X lot of the position size to close out. For example: If I have a 0.10 lot size open and I want to close 0.04 of the position the script would close that part and the remaining position would only be 0.06 lots.

I kind of found similar scripts to what I'm looking for (attached) but I have no idea how to modify them to work my way.

What I want to do is to create a 6 or 7 separate scripts with define lots size and then hotkey them for a quick position closure.

For example ctrl+1 = 0.01 lot closed, ctrl+2 = 0.02 lot closed etc.

Could anyone help me please?

Linkback: https://www.forex.zone/ea-modifications/17/close-position-with-define-lot-script/3259/
#1 - March 02, 2021, 11:58:37 AM
Attachments:
« Last Edit: March 02, 2021, 02:09:35 PM by Admin »

  • Close position with define lot - script  in EA Modifications_index
  • Posts: 2869
  • Points: 30537
  • Likes Received: 2686
  • Reputation: +148/-12
Close position with define lot - script  in EA Modifications_xx
You uploaded 3 different programs for this, but do any of them already do almost what you want? If so, which one and what needs changed? 

It's better to be more specific so someone can go right to the exact one and modify it instead of looking at all 3 and testing to see what works and what doesn't work.
#2 - March 02, 2021, 02:13:48 PM

  • Posts: 15
  • Points: 1470
  • Likes Received: 1
  • Reputation: +0/-0
Close position with define lot - script  in EA Modifications_xx
thank you for your note.
Yes, the One Click Partial Close Script do almost what I want, but it closes 1/3 of the open position.
I would like to choose X lots of the position size to close out and be able to save separate scripts with different lots settings.
#3 - March 02, 2021, 03:03:37 PM

  • Posts: 15
  • Points: 1470
  • Likes Received: 1
  • Reputation: +0/-0
Close position with define lot - script  in EA Modifications_clip
so if someone need it, here you go.
Works very well now.

#4 - March 05, 2021, 05:32:45 PM
Attachments:

  • Posts: 12
  • Points: 2467
  • Likes Received: 0
  • Reputation: +0/-0
Close position with define lot - script  in EA Modifications_xx
how the result, is it good?
#5 - March 11, 2021, 02:18:20 AM

Members:

0 Members and 1 Guest are viewing this topic.


* Share Topic

Share via delicious Share via digg Share via facebook Share via linkedin Share via pinterest Share via reddit Share via stumble Share via tumblr Share via twitter

* Similar Topics

xx
Script Collection

Started by CR7 on MT4 / MT5 Indicators

0 Replies
331 Views
Last post March 11, 2021, 10:25:24 PM
by CR7
xx
Take Profit with defined lot size - script - not EA

Started by JFR147 on New EA Coding

6 Replies
567 Views
Last post March 05, 2021, 10:39:18 PM
by JFR147
xx
How to Define Trend?

Started by Gombloh on General Forex Discussion

34 Replies
470 Views
Last post May 09, 2021, 03:29:41 PM
by ERSYA
clip
EA Lock Position

Started by Bobob on MT4 / MT5 EAs

0 Replies
316 Views
Last post October 17, 2019, 03:53:00 AM
by Bobob