I have modified the SMA indicator to plot different colours based on the value of the slope. I would like to use this logic to enter trades but as SMA() only returns the SMA value I would have to replicate the coded logic in the strategy as I have already done in the indicator. What would I need to do to get SMA() to return the entry trigger which it is using to colour code it's plot?
Thanks,
darmbk.
Comment