Thanks again Mohammed, you have been a great help indeed.
Regards
Ravie
--- On Sun, 8/17/08, Mohammed <softnews2003@xxxxxxxxx> wrote:
From: Mohammed <softnews2003@xxxxxxxxx> Subject: [amibroker] Re: Help with writing formula To: amibroker@xxxxxxxxxxxxxxx Date: Sunday, August 17, 2008, 5:13 PM
Hi Ravie,
Add the following code to your chart.
//---------- --------- --- System code ------------ --------- --------- -------- buy = cross(ema(c,5), ema(c,6)); sell = cross(ema(c,6), ema(c,5)); //---------- --------- --- Arrow Template ------------ --------- --------- -----
UpShape = 3; UpColor = colorCustom16 = 15; UpOffset = 12; DownShape = 4; DownColor = colorBlack; DownOffset = 41;
//---------- --------- --------- --------- --------- --------- --------- --------- -
_SECTION_BEGIN("Arrow Setting"); UpShape1 = ParamToggle("Up Shapes","Off,On",1); UpShape = Param("Up Shape Typ",UpShape); UpColor = ParamColor("Up Shape Color",UpColor); UpOffset = Param("Up Shape OFF Set",UpOffset); _SECTION_END();
_SECTION_BEGIN("Down Arrow"); DownShape2 = ParamToggle("Down Shapes","Off,On",1); DownShape = Param("Down Shape Typ",DownShape); DownColor = ParamColor("Down Shape Color",DownColor); DownOffset = Param("Down Shape OFF Set",DownOffset) ; _SECTION_END();
//---------- --------- --------- --------- --------- --------- --------- --------- --------- ----
PlotShapes(buy*UpShape1*UpShape, UpColor,0,L,-UpOffset); PlotShapes(sell*DownShape2* DownShape, DownColor,0,H,- DownOffset ); //---------- --------- --------- --------- --------- --------- --------- --------- --------- ----
Regards Mohammed
--- In amibroker@xxxxxxxxx ps.com, "mravie7" <mravie7@xxx> wrote: > > Hi Mohammed, > Many thanks for your help. I think I made a mistake..... ..I was > actually looking for a INDICATOR which when put on a price chart with > there EMAs would give buy and sell signals visually in GREEN and RED > arrows as and when there is a crossover , during live hours. I really > appreciate your help, and thank you for your time. > Cheers > Ravie > > > --- In amibroker@xxxxxxxxx ps.com, "Mohammed" softnews2003@ wrote: > > > > Hi, > > > > BUY when 5 EMA crosses 6 EMA > > SELL when 6 EMA crossed 5 EMA > > > > buy = cross(EMA(c, 5) , EMA(c,6)); > > Sell = cross(EMA(c, 6) , EMA(c,5)); > > > > Regards > > > > --- In amibroker@xxxxxxxxx ps.com, "mravie7" <mravie7@>
wrote: > > > > > > Hi, > > > > > > Greetings!! > > > > > > Can someone help me in writing a formula with buy and sell > arrows, > > > green and red for, > > > > > > BUY when 5 EMA crosses 6 EMA > > > SELL when 6 EMA crossed 5 EMA > > > > > > This I propose to use during market hours for aggressive trading, > > the > > > arrows must show up on the chart, for me to make the entries and > > exit. > > > > > > Many thanks for all your help. > > > > > > Cheers > > > Ravie > > > > > >
|