Creating custom candles (and history data) made of your own, for EA debug purpose and not only..

 

Hi.


It is possible to create a data-history with own's candlesticks, with invented open-close prices,

to simulate certain market's conditions in order to verify if a own code work properly (debug),

if it do in practice(on MT4) what theorically(strategy) should do? (in example open buy when last MA candlestic is greater

than previous).


Thanks in advance.


PS:


Look also at my other discussions if you are interested:

https://forum.mql4.com/23279


and my questions on the Neuro articles:

https://www.mql5.com/en/articles/1565

https://www.mql5.com/en/articles/1562


Thanks alot.

 
traderkmi:

Hi.


It is possible to create a data-history with own's candlesticks, with invented open-close prices,

to simulate certain market's conditions in order to verify if a own code work properly (debug),

if it do in practice(on MT4) what theorically(strategy) should do? (in example open buy when last MA candlestic is greater

than previous).


Thanks in advance.


PS:


Look also at my other discussions if you are interested:

https://forum.mql4.com/23279


and my questions on the Neuro articles:

https://www.mql5.com/en/articles/1565

https://www.mql5.com/en/articles/1562


Thanks alot.

No one can help me?

 
traderkmi:

It is possible to create a data-history with own's candlesticks, with invented open-close prices,

to simulate certain market's conditions in order to verify if a own code work properly (debug),

I've never tried doing this myself, but it ought to be possible to import your own invented data into the History Center and then run a strategy test against that data.

 
jjc:

I've never tried doing this myself, but it ought to be possible to import your own invented data into the History Center and then run a strategy test against that data.

Ok. thanx.


Now we should discover (or ask to who know) how to do this.


I think that for testing your strategy (and testing the error-free logic of your EA) is mandatory

to send the EA (or indicator) own custom's data (candles) in order to

see if the EA work properly when certain market conditions happen.


I mean, in very example, that if my EA would open Long position when MACD cross SIGNAL

below 0 and previous cross was more than 0, than i would be able to create candlesticks

to verify if this really happen.


I hope to get help and make interest in this topic, since i think is a "must" part

of a testing strategy.


Thnx

 

Do it yourself.


Ok, i've discovered how to do:


simply export the timeframe from the history center, and then modify with a text-editor, and then

import.

Reason: