I experience i really strange bug when programming on a strategy. The outcome of the strategy (% winning trades cut in half) changes when i simply insert a line like “graph i as “counter”” to show a variable i am using. It happened me now several times.
Has anybody experienced this before?
Also a thought. Working with PRT would be so much smoother if it had a debugging function where one can execute the code line by line and se how all variables change. Just wishfull thinking…
I now noticed that this post and the post before should be in the “ProOrder” forum and not here. Maybe Nicolas can move them?
Sorry for this.
Topic moved. Didn’t spot that problem before. Do you have screenshots to understand where the trouble is? Thanks.
Totally agree about debugging, a “print” function with a debug console would be sooooo useful 🙂
Thanks for moving the posts and i will post screenshots little later to show the bug.
Just a thought- are you placing the Graph line as the last line in the code?- it should be there.
cheers Kasper
I now checked many times and the bug appears when i try to graph more than 5 variables. 5 works fine but if i add a sixth the whole backtestresult is screwed up.
@Elsborgtrading: No i wasnt aware of this. I will put it at the end and try again.
I now read in the manual (stupid me) that 5 variables is the maximum to display and that further variables would be ignored. The later i found untrue. The whole backtest is distorted if you enter more than 5 variables but well…one shall not use more than 5. 🙂
i have asked but have no responses so i ask here again ,
in the code i have :
SET STOP %LOSS stopLoss
SET TARGET %PROFIT takeProfit
i would like to add to code system a line with “graph ” that will use to see the take profit and stop loss . i ve tried different ideas but nothing works really .
does anybody have an idea ?