How can I get info when pips go fast in wrong direction?

Created at 22 Jun 2021, 06:35
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
PR

progy85

Joined 07.01.2021 Blocked

How can I get info when pips go fast in wrong direction?
22 Jun 2021, 06:35


hi,
my robot will place direction Sell and TP is 40 pips,

but between this time direction Buy go to direction and can reach 30 pips or more in one minute and I have big minus here.

I need to find solution how can I stop robot in this way.

Regards & thanks for your help.
 


 


Replies

AlgoGuru
22 Jun 2021, 15:17

RE:

if (position.Pips < -30)

{

//do anything

}

If you need more help please contact with me: www.algoguru.hu


@AlgoGuru