Hello all.
I can’t get the GRAPH instruction to work – I only get straight lines whatever I try.
Can someone please view my attached BT code to see what I am doing wrong?
This code uses two HullAverages that both cross a Momentum together for the Short trigger – and those same Hull’s do the same again over a second Momentum for the Long trigger.
I read in the PRT manual that one can have up to five graphs, but I can’t even get one to show.
The perfect setup for the strategy of this code would be to view the two separate sets of Hull’s crossing each other in two separate panels.
The Momentum does not need to be shown.
Please let me know if anyone can offer a solution?
Many thanks!
You are using GRAPH on the variable values and so GRAPH will show a straight line at the optimised value.
The perfect setup for the strategy of this code would be to view the two separate sets of Hull’s crossing each other in two separate panels.
Sounds like you need your Algo conditions set up as Indicators?
You only graph the variables of your optimization, and they are fixed for each example. They never change in a single backtest. So it is normal that you get straight lines, because the values of a, b, c and d do not change. They are constant.
Your idea worked Gra!
You are correct – I need to use those GRAPH(ics) as indicators to save me adjusting the indicators in the panels each time I complete a BT (it becomes exhausting!) – The procedure is that whenever they both align in the same direction, it means I must trigger a trade in that direction. (Attachment below)
Many thanks again.