SetExitOnClose problem

Questions about MultiCharts and user contributed studies.
User avatar
Gargoyle
Posts: 92
Joined: 18 May 2014
Has thanked: 7 times
Been thanked: 5 times

SetExitOnClose problem

Postby Gargoyle » 16 Jun 2015

Hello all,

I have a strategy with SetExitOnClose, but it is working correctly only in backtest, while in live trading, it is not closing the opened position... My code is:

Code: Select all

if ExitOnClose = True
then
begin
SetExitOnClose;
end;
It was expected to close a live trade at 22:00 GMT in EURUSD... The broker is LMAX, resolution is 1 minute..

Any ideas? Thank you!!
Last edited by Gargoyle on 16 Jun 2015, edited 1 time in total.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: SetExitOnClose problem

Postby TJ » 16 Jun 2015

Hello all,
I have a strategy with SetExitOnClose, but it is working correctly only in backtest, while in live trading, it is not closing the opened position... My code is:
if ExitOnClose = True
then
begin
SetExitOnClose;
end;
It was expected to close a live trade at 22:00 GMT in EURUSD... The broker is LMAX, resolution is 1 minute..
Any ideas? Thank you!!
See post #6
SetExitOnClose
viewtopic.php?f=16&t=10811

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: SetExitOnClose problem

Postby TJ » 16 Jun 2015

ps:

[FAQ] How to Post Codes (that people can read)
viewtopic.php?f=16&t=11713

User avatar
Gargoyle
Posts: 92
Joined: 18 May 2014
Has thanked: 7 times
Been thanked: 5 times

Re: SetExitOnClose problem

Postby Gargoyle » 16 Jun 2015

Thank you very much!


Hello all,
I have a strategy with SetExitOnClose, but it is working correctly only in backtest, while in live trading, it is not closing the opened position... My code is:
if ExitOnClose = True
then
begin
SetExitOnClose;
end;
It was expected to close a live trade at 22:00 GMT in EURUSD... The broker is LMAX, resolution is 1 minute..
Any ideas? Thank you!!
See post #6
SetExitOnClose
viewtopic.php?f=16&t=10811


Return to “MultiCharts”