Scripts: ClosePosition

Yogesh Gajjar
126
Yogesh Gajjar  
Thank you verymuch
Mehrdad Shiri
5079
Mehrdad Shiri  

hi;


it does not work for me ,  double click on it but don't happend any thing.

what is wrong for me?

Sergey Golubev
Moderator
123459
Sergey Golubev  

I just checked - it works.

I open the trade for USDCHF, after that - to close it - I attached the script to USDCHF chart. And the trade was closed.

Mehrdad Shiri
5079
Mehrdad Shiri  
newdigital:
don't work for me on 2 different metatrader 5 terminal broker , ( demo and real ) ?!
Alain Verleyen
42595
TIMisthebest:
don't work for me on 2 different metatrader 5 terminal broker , ( demo and real ) ?!
Do you got some messages in the logs ? What is your open positions when you run the script and did you change the default settings ?
Mehrdad Shiri
5079
Mehrdad Shiri  
angevoyageur:
Do you got some messages in the logs ? What is your open positions when you run the script and did you change the default settings ?

hi angevoyageur

i don't change default.

i have several position. ( even run it on all chart i have position on it )




Mehrdad Shiri
5079
Mehrdad Shiri  

ah, i  must do this


thank you

Alain Verleyen
42595
TIMisthebest:

hi angevoyageur

i don't change default.

i have several position. ( even run it on all chart i have position on it )

As you can see in your screenshot, autotrading is disabled in your terminal. You have to enable AutoTrading for this script to work.
Alain Verleyen
42595
TIMisthebest:

ah, i  must do this


thank you

You are welcome
Mehrdad Shiri
5079
Mehrdad Shiri  

and this script only close 1 position and we must attached it to  same chart,

i was thinking it close all positions we have ; based on :


this was my Towards Understanding.

thank you all.