next trying take profit

Created at 31 Oct 2018, 14:13
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!
JE

jelle2500

Joined 25.11.2017

next trying take profit
31 Oct 2018, 14:13


the idea:

take profit on a buy trade: on the low 3 candle bars before the trade open candle

take profit on a sell trade: on the high 3 candle bars before the trade open candle

 

am i on the right path? or complete off?

            var TakeProfitBuy = MarketSeries.Low.Last(3) - Symbol.PipSize * TP;
            var TPBuy = Math.Round((Symbol.Ask - TakeProfitBuy) / Symbol.PipSize);

            var TakeProfitSell = MarketSeries.High.Last(3) + Symbol.PipSize * TP;
            var TPSell = Math.Round((TakeProfitSell - Symbol.Bid) / Symbol.PipSize);

 

thanks,

Jelle

 

 


@jelle2500