strategy command question

Questions about MultiCharts and user contributed studies.
Thomas Mann
Posts: 173
Joined: 25 Aug 2007

strategy command question

Postby Thomas Mann » 09 Dec 2008

Hi,
Could someone explain how the two auto trading commands work listed below. I tried to use them but did not see the trigger or stop hit at the price I specified when it should have.
Thanks

SetProfitTarget(50);
SetStopLoss(75);

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 17 Dec 2008

Hi Thomas,

What MC version are you talking about? Could you please check the following settings for this symbol in QuoteManager and make sure that they are correct:

1. Price Scale
2. Min. Movement
3. Big Point Value

Regards.

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

Re: strategy command question

Postby TJ » 17 Dec 2008

Hi,
Could someone explain how the two auto trading commands work listed below. I tried to use them but did not see the trigger or stop hit at the price I specified when it should have.
Thanks

SetProfitTarget(50);
SetStopLoss(75);
make sure you do not put the statements in a condition.

They must be re-evaluated every tick.


Return to “MultiCharts”