Moving Average Crossover EA – Gap, max distance, min distance.
7 replies
daveM
8 years ago #114685
I know these have been covered but I can not locate them in the threads.
I would like to know how to measure a gap between two Ma
Measure maximum distance from the cross over (bars)
Measure minimum distance from the cross over (bars)
Thank you
(and can we set up somehow that others can locate this when doing search once we have the solution)
tomas262
8 years ago #135329
Not sure if you mean you want to calc the difference between two MAs or just count bars between MA crossing?
Wouter
8 years ago #135333
In order to make this topic quickly found, you can add some relevant tags.
Your question concerning the moving avarages seams also to me a little vague.
daveM
8 years ago #135350
Not sure if you mean you want to calc the difference between two MAs or just count bars between MA crossing?
1. measure the gap between two ma’s
2. measure the distance between order entry and the crossing
tomas262
8 years ago #135398
1) use Subtraction function. Set parameters to be Moving Average with specified period
2) do you mean a price difference (vertical) or # bars difference (horizontal)?
daveM
8 years ago #135407
tomas262
8 years ago #135429
Hello, see example attached how to get those values. Example assumes you have open trade with magic number 1000
daveM
8 years ago #135436
Viewing 7 replies - 1 through 7 (of 7 total)