Forum

Data quality, optimizing, back testing, walk forward analysis etc..

Hi all, I want to forward test daily data but Pepperstone's tick data goes back until only 2009, not enough for several walk forward passes using at least 3 years for the sample data. Perhaps I could use a broker on MT5 like Alpari, but how do I know how reliable their data is? A search on forums

Indicator history changes when a new bar is shown

Hi there, I have this indicator which draws SR lines from fractal levels. I appears as below and looks like it is working. Then, I go in to Strategy Tester and start testing a system using the indicator. It starts off as expected as below. The lines are being drawn at the same levels in Strategy

Highest outside of bands indicator help

Hi there, I have this indicator: The red line, and the other lines, as you can see stops 2 bars away from where the new line starts. I want the line to go in to the bar that breaks above it. I've played around to try and get the line to go in to the bar that breaks above it, before the new line

HODLOD Indicator help please.

Hi there, I've had a poke around and not found what I'm looking for. I'm trying to create an indicator that draws a line along the prevailing HOD level during the trading session. In the code below I've limited the indicator to work only since the most recent trading day of posting for testing. I

Print seconds remaining in bar

Hi there, I want to print how much time is left remaining for a bar to close, so I can open an order just before the bar closes. Print("Time left: ", PeriodSeconds() -TimeSeconds(Time[ 0 ])); But on the M1 chart "60" prints out for every tick . On the D1 chart "86400" prints out for every tick. It

Indicator values don't match EA generated values.

Hi there, My EA has bands that don't match the values of the bands in an indicator I'm using to test my EA. The indicator displays the bands as below: The upper band value of the previous bar to the current bar is: It's code looks like this: double upper[], middle[], lower[]; extern int period = 20

OrderClose - Error 4051

Hi there, I manually opened a BUY order and ran the below code: void OnStart () { //--- for ( int i= OrdersTotal ();i> 0 ; i--) { Print ( "OrdersTotal: " , OrdersTotal ()); if ( OrderSelect (i,SELECT_BY_POS)== false ) Print ( "Unable to close order. Error: " , GetLastError

OrderDelete function returns invalid ticket for OrderDelete function

Hi there, I have this code: void OnStart () { //--- for ( int i= OrdersTotal ()- 1 ;i>= 0 ; i--) { Print ( "OrdersTotal: " , OrdersTotal ()); if ( OrderSelect (i,SELECT_BY_POS)== false ) Print ( "Unable to close order. Error: " , GetLastError ()); Print ( "Ticket: "

How to update MT4 to latest build

Hi there, I asked a question on here before that seems to have disappeared as it's no longer under my name when I search by it for questions I've asked. I asked why I got an error when sending an order for .01 lots. It related to the MINISIZE of my broker. I had confirmed with my broker that they

OrderSend generates 131 error Invalid trade volume

Hi there, I'm using this code to open a couple pending orders and get the error as in subject. extern double SLDistance=. 0020 ; double Lots= 0.01 ; //MODE_MINLOT/Digits; double LongEntry; double ShortEntry; LongTicket= OrderSend ( "EURUSD" ,OP_BUYSTOP,Lots,LongEntry, 3 ,LongEntry-SLDistance, 0