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: 4456
  • Points: 34389
  • Likes Received: 4676
  • Reputation: +220/-14
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:

  • Close position with define lot - script  in EA Modifications_index
  • Posts: 23
  • Points: 0
  • 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.


* Similar Topics

xx
Rarible clone script vs Opensea clone script which one is the best to create NFT

Started by Emilyjacob on Cryptocurrency Advertisements

0 Replies
285 Views
Last post November 09, 2021, 12:08:34 PM
by Emilyjacob
xx
Binance clone script vs Wazirx clone script which one is the best?

Started by Emilyjacob on General Cryptocurrency Discussion

2 Replies
410 Views
Last post March 03, 2023, 04:17:31 AM
by Kardel Sharpeye
xx
Script Collection

Started by CR7 on MT4 / MT5 Indicators

0 Replies
1082 Views
Last post March 11, 2021, 10:25:24 PM
by CR7
xx
Decentralized Exchange Script - Need to know

Started by ponting09 on Cryptocurrency Advertisements

0 Replies
47 Views
Last post July 27, 2023, 08:47:15 AM
by ponting09