Toyuu / Publications
Forum
Can't get the PlaySound function right
Hi, i made an expert, and i desired to play a sound every time the expert buy. So, i added this line, but it does't work: PlaySound ( "buy_alert" ); Note that i hear a sound if i place it inside of the OnDeinit function. But i don"t hear any sound when i place it inside the function that create a
Having issues trying to print the trades history
So, i have made this code to print the list of all trades made in the backtest. But it does't print anything, there is trades (i did't shared the strategy code, but there is roughly 40 trades executed in the backtest). Could someone please help me fix my code
RSI is not updating
void OnNewCandle() { rsi_value = iRSI (symbol, period, 14.0 , PRICE_CLOSE ); } So, i have made this code (this is a custom function that run at the oppening of a candle), but the RSI is stuck to 10.0 forever. In the chart i see its updating correctly, but in the code its stuck at 10.0. Any idea
Help needed with drawing Rectangle Object
So, i made this code and it does't throw any errors, but i don't see any rectangle on my chart. What have i done wrong ? // Calculate rectangle coordinates datetime startTime = iTime (symbol, period, 1 ); datetime endTime = iTime (symbol, period, 2 ); double startY =