Hi Jake and everybody!
I develop and test experts on renko charts (to tell you the truth, my favourite game is the MT4 strategy tester, i play with it all the time).
I do it in an MT4 which was downloaded from this site. It was never connected to any broker, so it sees spread to be 0.
I always test experts in this environment at first, spread calculation is added later only, if the strategy seems to work. I recommend this method, below you will see why.
If you backtest expert on renko blocks, you have to keep its specifications in mind.
I mean:
- all the blocks may have a wick which can be (2*blocksize) - 1 point. They are not visible on classic renko chart.
- (while we don't count with spread) the minimal stoploss and trailingstop (if used) on backtest must be 2*blocksize. Both of them always must be an integer number * blocksize, otherwise you won't get real results. All the orders have to stop out at a close value of a block. After making a backtest, press 'open chart' in strategy tester and check it.
- you get the open price of the block only when it closes. In testing you get the whole blocks like ticks. In trading Close[0] is the current price while it doesn't reach one of the close values of the current block.
Thats why i apply this method in code:
int i; double c = Close[i] ; o = Open[i]; if(Istesting) {i=0;} else {i=1;}
I use a modified version of RenkoLiveChart v3.2 to generate block chart, i don't know how others work. It's not perfekt, but better than any script what i tried.
I am not a programmer, only a gamer, i am trying to help, i hope it's not too late.
Sorry for my beginner English.
Best regards
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use