Hi Guys,
I made a code for making an order and now I want to put 'take profit target' and 'stop loss target'.
I'm trying to put profit target when it touches main line, Middle line, of Bollinger band (Let's assume that I already have open order)
and want to put stop loss to above or below 200 points from current opened order.
I'm very,,, begginer of coding for this,,, could you anyone can help me for the below how I can fill in?
TakeProfit = iBands(NULL,0,20,2.0,0,PRICE_CLOSE,MODE_MAIN,0); //It doesn't work...
StopLoss = ?????
THanks!
I made a code for making an order and now I want to put 'take profit target' and 'stop loss target'.
I'm trying to put profit target when it touches main line, Middle line, of Bollinger band (Let's assume that I already have open order)
and want to put stop loss to above or below 200 points from current opened order.
I'm very,,, begginer of coding for this,,, could you anyone can help me for the below how I can fill in?
TakeProfit = iBands(NULL,0,20,2.0,0,PRICE_CLOSE,MODE_MAIN,0); //It doesn't work...
StopLoss = ?????
THanks!