Forum

History Center Update (not download)

Hi there! How can I update my 2018 historical data, after I have downloaded from Tickstory 2016 and 2017 data (for all timeframes). Downloading 2018 from Tickstory overwrites 2016 and 2017 data. Or is there a way to download without overwriting? Thank you in advance

Inquiry on Backtester & Optimization

Greetings! Would just like to ask why when I backtest using the parameters of optimization, the backtest results are radically different from when I optimized it? Did I miss something? Isn't it that optimization is akin to a backtest en masse? Spread is fixed. Basically all i did is uncheck the

Inquiry re Backtesting Errors

Salutations! I would like to ask the following: 1. Is there a way for the EA to exclude the result of the last trade on a backtest? Upon backtest, the EA usually force closes the last trade, rather than closing it on my defined criteria (stops, rules, crossovers, etc). As the cause of close is not

Seeking Opinions/Comments on EA Template

Hi! Would like to ask for your opinions and comments on the structure of the following code. My main concerns are as on the: 1. The code is a template. The specifics of Open & Close conditions are negligible. So are the values of extern variables. My main goal is to create a template where I can

inquiry on Program Logic of Trailing Stop

Salutations! So I was tinkering with my trailing stop code template, which kinda is as follows: if (( OrderType ()== OP_BUY ) && ( OrderSymbol ()== Symbol ()) && ( OrderMagicNumber ()==MagicNumber)) /*This*/ if ((TrailingStop> 0 ) && ( Bid > OrderOpenPrice ()+MyPoint*TrailingStop) &&

Inquiry on Historical Data

Good day! 1. I would like to ask how to fill the gaps in historical data. I have tried various methods. From the classic download via History Center of MT4, to downloading a certain software which downloads data from a certain broker, to getting an EA which supposedly downloads data for me. However

Inquiry on Trailing Stop

Greetings! I would just like to ask if the following code: if ((TrailingStop> 0 )&& ( Bid - OrderOpenPrice ()>MyPoint*TrailingStop)&& ( OrderStopLoss ()< Bid -MyPoint*TrailingStop)) is will have a similar effect to this: if ((TrailingStop> 0 )&& ( Bid - OrderOpenPrice ()>MyPoint*TrailingStop) and

Inquiry on Conversion of StopLoss and TakeProfit

Would just like to ask why in the following code: void OnTick () { double MyPoint; if ( Digits == 3 || Digits == 5 ) MyPoint= Point * 10 ; , why the Point*10? It was generated by a certain code generator. Mainly used to multiply the MyPoint to the inputted Take Profit to convert it into pips

Elementary Inquiry on Codes

Hi. I would just like to inquire regarding boolean functions , particularly the OrderModify. I understand that OrderModify is a boolean function, returning TRUE/FALSE, upon execution. I was thinking that this is a test whether the Order has been successfully Modified or not. However, I was surprised

Another Elementary Inquiry on EA Codes

Hi. I would like to ask the following: 1. Init - does something that you want the EA to do as it is loaded in the chart. If that is so, why does this not prompt the Hello world upon load of the EA? int OnInit () { return ( INIT_SUCCEEDED ); Print ( "Hello World" ); } - Why do the following