I have a very simple oscillator I have been playing around with and I would like to ask for some help...PLEASE
I am a newbie to Amibroker and this may be a simple fix but I am struggling
The indicator works fine and in fact is pretty nice but I want more...LOL
One, I would like to shade (cloud) between the two lines when they separate.
Two I would love to print buy and sell boxes...I can do without this if referencing the price is difficult.
Thanks in advance for any kind soul who can help
Code:
_SECTION_BEGIN("Price Oscillator");
m = Param("Periods", 10, 5, 20, 1 );
n = Param("Average", 4, 3, 10, 1 );
Var2=(High+Low+Close*2)/4;
Var3=EMA(Var2,m);
Var4=StDev(Var2,m);
Var5=(Var2-Var3)*100/IIf(Var4==0,1,Var4);
Var6=EMA(Var5,n);
Var7=EMA(Var6,n);
WW=(EMA(Var7,m)+100)/2-4;
MM=HHV(WW,n);
Plot(ww, "WW", colorAqua, 1+4);
Plot(mm, "MM", colorYellow, styleDashed |styleThick, 1+4);
//Buy=IIf(ww>Ref(ww,-1) AND Ref(ww,-1)<Ref(ww,-2) AND ww<50,20,0);
//PlotShapes(IIf(Buy,shapeUpTriangle,shapeNone) ,colorBrightGreen);
//Sell=IIf(ww<Ref(ww,-1) AND Ref(ww,-1)>Ref(ww,-2) AND ww>50,20,0);
//PlotShapes(IIf(Sell,shapeDownTriangle,shapeNone),colorRed);
_SECTION_END();
I am a newbie to Amibroker and this may be a simple fix but I am struggling
The indicator works fine and in fact is pretty nice but I want more...LOL
One, I would like to shade (cloud) between the two lines when they separate.
Two I would love to print buy and sell boxes...I can do without this if referencing the price is difficult.
Thanks in advance for any kind soul who can help
Code:
_SECTION_BEGIN("Price Oscillator");
m = Param("Periods", 10, 5, 20, 1 );
n = Param("Average", 4, 3, 10, 1 );
Var2=(High+Low+Close*2)/4;
Var3=EMA(Var2,m);
Var4=StDev(Var2,m);
Var5=(Var2-Var3)*100/IIf(Var4==0,1,Var4);
Var6=EMA(Var5,n);
Var7=EMA(Var6,n);
WW=(EMA(Var7,m)+100)/2-4;
MM=HHV(WW,n);
Plot(ww, "WW", colorAqua, 1+4);
Plot(mm, "MM", colorYellow, styleDashed |styleThick, 1+4);
//Buy=IIf(ww>Ref(ww,-1) AND Ref(ww,-1)<Ref(ww,-2) AND ww<50,20,0);
//PlotShapes(IIf(Buy,shapeUpTriangle,shapeNone) ,colorBrightGreen);
//Sell=IIf(ww<Ref(ww,-1) AND Ref(ww,-1)>Ref(ww,-2) AND ww>50,20,0);
//PlotShapes(IIf(Sell,shapeDownTriangle,shapeNone),colorRed);
_SECTION_END();