Renz Carillo / Publications
Forum
Error: Access to non-static member or function
It is producing a total of 40 errors, syntax seems correct and i can't figure out what's wrong. One of the errors were: 'atrArray' - Access to non- static member or function. class adr { datetime startOfDay = iTime ( _Symbol , PERIOD_D1 , 0 ); string hoursAndMinutes = TimeToString ( TimeCurrent
How to select end of day time
Selecting start of day time is iTime ( _Symbol , PERIOD_D1 , 0 ) but what about for selecting end of day time
How often does your bot experience unexpected restart when using vps?
I am using alot of static variables on several functions of my bot, unexpected restart of bot could reset these variables thus producing unexpected errors. For those who are running their bot in a vps , how often does this unexpected restart occurs
How to select the next order
Hello, im creating a cost averaging system that increments lotsize if the previous order was a loss. I'm having a problem though, how do i select the next order? Here is the pseudocode, but i do not know the syntax on how to do it: if (previousTrade == "Loss" ){ selectNextTrade;
How do i maintain the value of a static variable despite closing the program
I have a static variable inside a function, how do i maintain its value even when the bot has been turned off and turned on
Why is ask and bid automatically passed by reference?
I was just wondering why ask and bid are automatically passed by reference
MT5 taking too much space
I have researched on how to fix this problem but i cant seem to find one. MT5 is taking too much space on local c drive. Any fix for this
What does the performance report of a profitable bot looks like?
I feel like i'm in an endless loop of developing strategy. I probably have the wrong expectations about profitable strategy, does anyone mind sharing the performance of their profitable bot? I wanna know about it's percentage earn per month/per year, and its maximum drawdown. Thank you very much
Spread in MT5
The stop loss got triggered despite the price not touching it. I make an exit on ask and bid prices only + they are market order, the only way this stop loss getting triggered without touching it is through the widening of spread but this is in 15m timeframe and the gap is too huge. This trade is an
How do i convert this from python to mql5/mql4
x = range (low[ 1 ],high[ 1 ]) y = (high[ 1 ]-low[ 1 ]* 0.50 ) + low[ 1 ] // GET THE 50% OF THE CANDLE RANGE if y in x: doSomething() What is the equivalent of 'in' from python to mql5/mql4? What is the equivalent of 'range ()' from python to mql5/mql4