this should be a quick and easy question to answer.
i want to evaluate a very simple strategy, like the sample sma cross over strategy on ordinary minute bars but having the strategy calculate not on price on close as is standard, but on a similar value to the close of heiken ashi bars ([open+low+high+close]/4).
i have tried to insert this [open+low+high+close]/4 expression in place of close and it won't work. i get multiple error messages about the + expression applied to double expressions and converting doubles into series and so on. i also tried to define a variable for this value but couldn't get it to work either.
i want the fast and slow sma's for every bar to be calculated on [open[0]+low[0]+high[0]+close[0]]/4 not on close[0]. i don't think this should be too hard a modification. thanks.
Comment