can some1 please guide me--How do i plot the closing price divided by 200
Announcement
Collapse
No announcement yet.
rom indicator
Collapse
X
-
alexis-thank you so much--i am terribly sorry i am not familiar as to where i do what you recommended below-can you guide me-or is there some where on esignal where i can get that help-
many thanks once again
Originally posted by Alexis C. Montenegro
cassim2
Use close(0)/200 in the return statement (see basic example enclosed below)
Alex
PHP Code:function main(){
return close(0)/200;
}
Comment
-
cassim2
Copy the code contained inside the PHP box in my previous reply then open the Formula Editor (from the main menu select Tools-> EFS-> Editor...) and Paste the copied contents in it.
Save the script in any one of the subfolders of the Formula folder and give it a name of your choice. Close the Formula Editor window.
Then open a new Advanced Chart (or select an existing one) and right click it. From the context menu select Formulas, then navigate to the folder in which you saved the file and click its name. That will apply the formula to the chart.
Alex
Comment
-
alexis
thank you so much for your assistance.i did it--something doesnt look right thou-doesnt look the same as the one on metastock
can i restate the exact wording and can you check if thats the formula applicable
ROM = CLOSING PRICE DIVIDED BY THE 200DAY SIMPLE MOVING AVERAGE.
can u please check the formula for the above
sincere thanks
Originally posted by Alexis C. Montenegro
cassim2
Copy the code contained inside the PHP box in my previous reply then open the Formula Editor (from the main menu select Tools-> EFS-> Editor...) and Paste the copied contents in it.
Save the script in any one of the subfolders of the Formula folder and give it a name of your choice. Close the Formula Editor window.
Then open a new Advanced Chart (or select an existing one) and right click it. From the context menu select Formulas, then navigate to the folder in which you saved the file and click its name. That will apply the formula to the chart.
Alex
Comment
-
1 last thing if i could add--
normally we'd interpret it as :
a ROM closest to 1.5 ---sell zone area
a ROM closest to 0.85---buy zone area
the formula i have used from the outset doesnt come up with these figures
Originally posted by cassim2
alexis
thank you so much for your assistance.i did it--something doesnt look right thou-doesnt look the same as the one on metastock
can i restate the exact wording and can you check if thats the formula applicable
ROM = CLOSING PRICE DIVIDED BY THE 200DAY SIMPLE MOVING AVERAGE.
can u please check the formula for the above
sincere thanks
Comment
-
cassim2
something doesnt look right thou-doesnt look the same as the one on metastock
Anyhow following is the revision of the script that will divide the Close by its 200 period moving average.
PHP Code:var Avg = null;
function main(){
if(Avg==null) Avg = sma(200);
if(Avg.getValue(0)==null) return;
return (close(0)/Avg.getValue(0));
}
Alex
Comment
Comment