[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] i need amibroker formula expert to help me



PureBytes Links

Trading Reference Links

hi every one
i have amibroker formula but i need to add alert or scan to this
formula so it will scan all stock automatically to advise me to sell
or buy.
this formula work show alert  when i move it manually to all stock but
i need it as automatically alert for all stock or
i set it to scan every certain time ...thanks
attached the formula........ 



_SECTION_BEGIN("PRICE"); pricefield = ParamField("Price Field", 3); 
Color = ParamColor("color",colorWhite); 
style = ParamStyle("style",styleBar,maskAll); 
arrows = ParamToggle("Display arrows", "No|Yes",1); 
Plot(pricefield,"Price",Color,style);
_SECTION_END();
 

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 8, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), 5, ParamStyle("Style") ); 
_SECTION_END();

_SECTION_BEGIN("EMA1");
P = ParamField("Price field",3);
Periods = Param("Periods", 13-10, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), 4, ParamStyle("Style") ); 
_SECTION_END();

_SECTION_BEGIN("EMA2");
P = ParamField("Price field",3);
Periods = Param("Periods", 21-20, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), 6, ParamStyle("Style") ); 
_SECTION_END();

_SECTION_BEGIN("MA3");
P = ParamField("Price field",3);
Periods = Param("Periods", 30-30, 2, 200, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), 7 , ParamStyle("Style") ); 
_SECTION_END();


Buy = Cross( EMA(Close,8), MA(Close,30) );
Sell = Cross( MA(Close,30), EMA(Close,8) );
S = Sell;
B = Buy;


//AlertIf (S, "SOUND C:\\Windows\\Media\\Ding.wav", "Sell alert", 2 );

//AlertIf (B, "SOUND C:\\Windows\\Media\\Ding.wav", "Buy  alert", 2 );

AlertIf (S, "Sell", "Sell at: "+C+" Alert",0, 1+2+4+8,1 ); 
AlertIf (B, "Buy", "Buy at: "+C+" Alert",0, 1+2+4+8,1 );
if(arrows) 
{ 
  PlotShapes((Buy*36)+(Sell*37),IIf(Buy,colorGreen,colorRed) ); 
  PlotShapes((Buy*5)+(Sell*6),IIf(Buy,colorGreen,colorRed) ); 

}


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.0/609 - Release Date: 12/29/2006 4:48 PM