moving average period from inside ea
S
You will need to clarify the question for us in order to get an answer...
-BB-
sorry, guess I didn't explain myself very well. I am trying to synchronize what I see on the chart to what is happening in the EA. when the chart ma period is changed, I would like the ima call to use the new value. Basically, I am looking for a way to access the property of the ma on the chart.
That would require a custom indicator.
WHRoeder was that regarding my post? I thought I missed reading some of sect8 post, but upon re-reading...
sect8:
I am using an EA to monitor moving average crossovers with this line: double pastMAfast = NormalizeDouble(iMA(Symbol(),0,fastPeriod,fastShift,fastMethod,fastPrice,5),5); I also have a moving average visible on the chart. I am looking for a way to have the EA recognize when the moving average period is changed on the chart (by using right click change property) and use that new value as the fastperiod variable which, is an interger. is this possible? thanks... the second line I colored red as I understood would constitute a custom indicator. Perhaps sect8 can clarify. Both EA & Indicator can read GVs AFAIK.
regards
cameo