I would like to plot the difference between two EMAs - one is based on bar open and the other is based on bar close (which is why I can't use the MACD). I would actually like to calculate two differences - one based on a pair of 8 Bar EMA (one Open, one Close) and the other based on a pair of 13 bar EMA (one Open, one Close).
I am not using variables in the efs (just to keep it simple). The number of bars is being hardwired in for both pairs.
I would like to plot horizontal lines at 3 cents difference and 6 cents difference on both sides of the zero line. I'm multiplying by 100 to work with whole numbers rather than hundredths.
I've pieced something together based on looking at a dozen or so efs files. I'm unfamiliar with the syntax and am probably making some obvious errors.
I have managed to plot the four reference lines. I don't really understand the relationship between a Study and a Variable. Iialso don't understand how to make the efs show the values.
I could probably work on this for days and still might not figure it out.
The code I came up with is attached in a Word document. i couldn't figure out how to copy and paste the code into the post. Other people have done it - there's a way to do this that I'm unaware of.
Ii would certainly appreciate your help.
Ira
[email protected]
I am not using variables in the efs (just to keep it simple). The number of bars is being hardwired in for both pairs.
I would like to plot horizontal lines at 3 cents difference and 6 cents difference on both sides of the zero line. I'm multiplying by 100 to work with whole numbers rather than hundredths.
I've pieced something together based on looking at a dozen or so efs files. I'm unfamiliar with the syntax and am probably making some obvious errors.
I have managed to plot the four reference lines. I don't really understand the relationship between a Study and a Variable. Iialso don't understand how to make the efs show the values.
I could probably work on this for days and still might not figure it out.
The code I came up with is attached in a Word document. i couldn't figure out how to copy and paste the code into the post. Other people have done it - there's a way to do this that I'm unaware of.
Ii would certainly appreciate your help.
Ira
[email protected]
Comment