Hi fellow traders,
Can anyone please help me with a simple code.
I am trying to create an indicator that measures the distance of current price to SMA ( number ) and then convert that amount to a percentage of the current moving average value.
Any help would be greatly appreciated !
THX!
distance from moving average
Re: distance from moving average
I based the code on the Mov_Avg_1_Line indicator.
If you want to do the same with multiple indicators, check the differences between the attached indicator and the Mov_Avg_1_Line.
Good luck!
If you want to do the same with multiple indicators, check the differences between the attached indicator and the Mov_Avg_1_Line.
Good luck!
- Attachments
-
- sma_perc_diff.pln
- (1.36 KiB) Downloaded 244 times