Forum

Why am I getting INVALID STOPS, please?

I dont understand the whole invalid stops thing. This is my code and output. Im using a multiplier of ATR added or deducted to ASK. if ( PositionsTotal ()== 0 ) // buy when candle is bullish if (PriceInfo[ 1 ].close > PriceInfo[ 1 ].open) { // buy trade.Buy(

What does this parameter in iCustom do?

I am wondering about the 2nd to last parameter . int icustom_var = iCustom ( _Symbol , 0 , "blabla" , 20 , true , 0 , 3 , 1 ); The parameter with the value of 3 in my example above. In the docs in says its the mode of the indicator. In a lot of examples ive seen people referring to they say its the