i want to build expert adviser that using sell stop and buy stop in the same time.

take profit 70pip for buy stop and sell stop
and
stop lose 45 pip for buy stop and sell stop



my formula

for sell stop

open (current candle ) - ((high(Previous candle)+low(Previous candle))/2)

for buy stop

open(current candle )+ ((high(Previous candle 2)+low(Previous candle2))/2)


is it possible to use it for buy limit and sell limit


thank you for your help


i will be waiting for your reply