tora wrote:
I can set Moving Average Levels on my charts in the dialog box settings,
so how do I program the MA Levels into an EA lines of code?
To Buy when Price is between the MA Level values of up +20 and +40.
To Sell when Price is between the MA Level values of down -20 and -40.
How?
A Level, when used in MT4 with a iMA, is nothing more than a prescribed distance from the iMA itself. I believe that in MT4, the Level's line is draw at a ratio of: 10:1. So, if you set a Level on the iMA at say +400, then you are really saying that you want to draw a mirrored MA with a distance of 40 pips
above the real mode iMA. Consequently, setting the level at -400, puts the mirrored MA
below the real mode iMA, at a distance of -40 pips.
I have another post that will address something similar. I don't want to steer this one too far off its intended course.