Oooo I see my fault. Thanks a lot.
Guppy's Multi-Moving Average (GMMA) 855 replies
Simple Moving Average Vs. Moving Average? 8 replies
Trailing Stop V. Moving average exit 5 replies
Best moving Average to show trend ? 18 replies
Does Moving average actually act as moving S/R ?? 20 replies
Quoting accreteDislikedCG, you are the number one MQ4 coder i follow, your ideas are fresh and valuable and i like'm! I use MAs as channels at times and i took the liberty of adding some simple code that i got from a friend of mine here at FF who also has some great ideas. Anyway, the code is simple enough to just paste here with some explanaitions.
To get a verticle offset of the MA you add the following code that is in bold:
extern int Step_Period = 4;
extern int verticalShift =0;
extern bool DebugMode = false;
case 4:
{
for(i=0; i<LIMIT; p i++)<> {
tempbuffer[i] = iMA(NULL,0,MA_Period,0,MODE_EMA,MA_Applied,i)+verticalShift*Point;
}
for(i=0; i<LIMIT; p i++)<> {
now to the end of every one of the "case" versions after the ")" and before the ";" add:
+verticalShift*Point
Then save as XpMA-mod and compile just in case something goes ary you will have the original code.
Now you can have a channel with say +10/-10 XpMAs and design a simple breakout system around the channel breakout.
Have fun doodling, and thank you again CG for your creative ideas.
: ) ThomIgnored
Quoting accreteDislikedGreetings!
I don't look at the addition of the vertical shift as an "improvement", but rather it gives the trader one more tool in his chest. As you may know there are some professional traders that use vertical shift up/down to create channels about a central moving average as part of their trading model.
Cheers,
ThomIgnored
Quoting jsh01DislikedDera CG,
Could you add email alert as well ? I checked the code and it's method of filtering out extra alerts is too sophisticated for me to add a simple email alert on colour change.!
many thanks
john
australia
Ignored
Quoting accreteDislikedCG, you are the number one MQ4 coder i follow, your ideas are fresh and valuable and i like'm! I use MAs as channels at times and i took the liberty of adding some simple code that i got from a friend of mine here at FF who also has some great ideas. Anyway, the code is simple enough to just paste here with some explanaitions.
To get a verticle offset of the MA you add the following code that is in bold:
extern int Step_Period = 4;
extern int verticalShift =0;
extern bool DebugMode = false;
case 4:
{
for(i=0; i<LIMIT; i++)< p> {
tempbuffer[i] = iMA(NULL,0,MA_Period,0,MODE_EMA,MA_Applied,i)+verticalShift*Point;
}
for(i=0; i<LIMIT; i++)< p> {
now to the end of every one of the "case" versions after the ")" and before the ";" add:
+verticalShift*Point
Then save as XpMA-mod and compile just in case something goes ary you will have the original code.
Now you can have a channel with say +10/-10 XpMAs and design a simple breakout system around the channel breakout.
Have fun doodling, and thank you again CG for your creative ideas.
: ) ThomIgnored
Quoting syedforexDislikedHi CodeGuru,
First of all, thanks a million for your thoughts and work with xPMA. Iam a newbie here got a question regading this indicator.
This indicator comes with other 5 different indicator in the zip file. I attached the xPMA to 1 hour chart. Do i need to attach all the other indicator to the chart......
Sorry for asking this basic questions......
--SyedIgnored
Quoting KudzuFXDislikedAccrete,
Do mind explaining what is "vertical shift" as it relates to this MA?
Thanks,Ignored
Quoting accreteDisliked----------CodersGuru:
Is there a way you could incorporate an additional alert that would trigger when price touched the moving average? I see the other alerts upon trend change, but a price at MA alert could be useful also. I tried to code it, and didn't get any errors...but also didn't get any alerts! , (
Thanks in advance if it is possible!
ThomIgnored