Hi guys,
@@UPDATE:
I have overcome the indicator display problem and now get the indicator worked as expected. I also add the 'trending' component into the MaRS to identify the trend up/ trend down of the MaRS (i.e. comparing the current value of MaRS with the average value of MaRS of the last x bars). The only problem I have is that the indicator (file:
AutoAdjust_MA_RelativeStrength Working-but-need-optimized.mq4
10 KB
|
68 downloads
|
Uploaded Nov 20, 2019 5:57pm
) seems taking a long time to load whenever I drop it on the chart. Can any one take a look at my code and suggest any optimization to help my indicator load faster. Thanks
Andre
----------------------------------------------------
I am writing an indi on 2 Moving Average-cross and compute the Relative Strength Index (RSI) on the difference between these MAs. Basically, it will measure the oscillation of the "Difference" between MovingAverage1 and MovingAverage2 (MaDiffRS). The mq4 files is attached. The idea is to compute the 2 MAs and start computing the RSI when the counter [i] pass over the RS's period (InpTIMEFRAME_RS) (start using the function MAValidatorChk).
I got stuck at getting the MaDiffRS at it returns no value on the terminal. Can you check and advise what is wrong. I believe it may be caused by passing the MaLine1Buffer and MaLine2Buffer arrays into the function MAValidatorChk incorrectly but not sure.
@@UPDATE:
I have overcome the indicator display problem and now get the indicator worked as expected. I also add the 'trending' component into the MaRS to identify the trend up/ trend down of the MaRS (i.e. comparing the current value of MaRS with the average value of MaRS of the last x bars). The only problem I have is that the indicator (file:
Attached File(s)

Andre
----------------------------------------------------
I am writing an indi on 2 Moving Average-cross and compute the Relative Strength Index (RSI) on the difference between these MAs. Basically, it will measure the oscillation of the "Difference" between MovingAverage1 and MovingAverage2 (MaDiffRS). The mq4 files is attached. The idea is to compute the 2 MAs and start computing the RSI when the counter [i] pass over the RS's period (InpTIMEFRAME_RS) (start using the function MAValidatorChk).
I got stuck at getting the MaDiffRS at it returns no value on the terminal. Can you check and advise what is wrong. I believe it may be caused by passing the MaLine1Buffer and MaLine2Buffer arrays into the function MAValidatorChk incorrectly but not sure.
Attached File(s)