Interogation: Sell All Shares Next Bar At StopLong Stop;

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Interogation: Sell All Shares Next Bar At StopLong Stop;

Postby arjfca » 20 Nov 2012

Hello

I have not done any signal coding since many month and I'm a bit rusted.

I want to set a stop loss price (StopLong) to sell all long position of a given instrument.

What will be the result of this code line;

Code: Select all

Sell All Shares Next Bar At StopLong;
a) all open position in the account will be liquidated ( close) at market
b) only the actual instrument used on the chart will be closed

The live account does have position that I don't want to be affected by MC. I want to close only the Forex position that have been opened with MC signal

Martin :)

User avatar
Roman MultiCharts
Posts: 50
Joined: 28 Nov 2011
Has thanked: 21 times
Been thanked: 67 times

Re: Interogation: Sell All Shares Next Bar At StopLong Stop;

Postby Roman MultiCharts » 20 Nov 2012

hello Martin,

Only the actual instrument used on the chart will be closed. You can trade only one instrument from one chart.

Code: Select all

Sell All Shares Next Bar At StopLong;
will be applied only to a currently held position for an instrument on the chart. If your position consists of several shares (contracts, units, lots) - this script will sell them all and close the whole position.


Return to “MultiCharts”