position take stop loss

Created at 10 Apr 2020, 12:58
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!
LU

luca.tocchi

Joined 25.03.2020

position take stop loss
10 Apr 2020, 12:58


hi how do I say 

if (position take stop loss)

Do this.

thanks


@luca.tocchi
Replies

PanagiotisCharalampous
10 Apr 2020, 14:58

Hi Luca,

You first need to explain to us what does position take stop loss means.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

luca.tocchi
10 Apr 2020, 15:08

RE:

PanagiotisCharalampous ha detto:

Ciao Luca,

Per prima cosa devi spiegarci cosa significa la posizione take stop loss.

Migliori saluti

Panagiotis 

Unisciti a noi su Telegram

I wanted to know what the instruction was to say that my position is closed by the stop loss

 

thanks


@luca.tocchi

PanagiotisCharalampous
10 Apr 2020, 15:19

Hi Luca,

Check an example below

        protected override void OnStart()
        {
            Positions.Closed += OnPositionsClosed;
        }
        
        void OnPositionsClosed(PositionClosedEventArgs obj)
        {
            if(obj.Reason == PositionCloseReason.StopLoss)
            {
                
            }
        }

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous