Could anyone help me to have a look what is the problem of my "candle long shadow" code?
- gogoknow: i really could see any problem, could someone help?
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Your code if (B_P_close >= B_P_level && B_P_close >= B_P_open) { b_shadow=true; } else { b_shadow=false; } return (b_shadow);
simplified return B_P_close >= B_P_level && B_P_close >= B_P_open;
i tried to code a function to see if there is a bullish candlestick with long shadow/wick, but when i backtested it, there are many trades happen in candlestick without long shadow/wick. i double check my function, i really could see any problem, could someone help? thank a lot.