how can i program a pivot line to be checked in back test

 

hi all proffesional in this great forum

i have a simple problem

i programed a very simple indicator which get the pivot of the day as a practice programing task

using the equation p = ( h+l+c+o)/4

where p = pivot

h = high of previous day

l = low of previous day

0 = open of the previous day

c = close of the previous day

every thing is ok and the pivot line was drawn on the chart

but the problem is ...... when i make a back test for the indicator it didnt draw my pivot line during back test ( the camarela 8 indicator for instance draw its pivot line during back test)

how can i solve this problem to get my pivot drawn on the back test ????

thank u

 
crownpearl77:

hi all proffesional in this great forum

i have a simple problem

i programed a very simple indicator which get the pivot of the day as a practice programing task

using the equation p = ( h+l+c+o)/4

where p = pivot

h = high of previous day

l = low of previous day

0 = open of the previous day

c = close of the previous day

every thing is ok and the pivot line was drawn on the chart

but the problem is ...... when i make a back test for the indicator it didnt draw my pivot line during back test ( the camarela 8 indicator for instance draw its pivot line during back test)

how can i solve this problem to get my pivot drawn on the back test ????

thank u


up
Reason: