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);
strategy command question
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: strategy command question
make sure you do not put the statements in a condition.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);
They must be re-evaluated every tick.