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 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 .
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue