Stop <> Stop Close Only

Questions about MultiCharts and user contributed studies.
HeiBeh
Posts: 11
Joined: 08 Apr 2008

Stop <> Stop Close Only

Postby HeiBeh » 05 Dec 2011

I see that replacing a stop order such as:
Sell("SCLExit") next bar at Value3 stop;

with a stop close only order such as:
Sell("SCLExit") next bar at Value3 stop close only;

is not a straightforward as I hoped it would be, since it does not compile.

Am I missing something or do I really have to write some stupid code like:
If Close of Tomorrow <= Value3 then sell next bar at close;

Thank You !
Kind regards from Munich / Germany
Heiner

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

Re: Stop <> Stop Close Only

Postby Roman MultiCharts » 06 Dec 2011

Hello Heiner,
HeiBeh wrote:I see that replacing a stop order such as:
Sell("SCLExit") next bar at Value3 stop;
with a stop close only order such as:
Sell("SCLExit") next bar at Value3 stop close only;

It won't compile because "only" is not a keyword.
HeiBeh wrote:Am I missing something or do I really have to write some stupid code like:
If Close of Tomorrow <= Value3 then sell next bar at close;

Yes, it's necessary to write the condition that will trigger the sell order.


Return to “MultiCharts”