checkmail Posted January 8, 2012 Report Share Posted January 8, 2012 Hello friends this is checkmail and am using one psar ea which gives out alerts when it changes its trend, but its only an sound alert. Me would like to view it on charts, might be more helpful while trading. The EA should display an arrow up/down or buy/sell test on the chart at its corners. Can anyone make this change would be really appreciated.:):):):):):) Here is the code : ________________________________________________________________________ //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ extern int RunIntervalSeconds =10; //Run EA in intervals of... seconds extern double Step =0.02; //Parabolic setting extern double Maximum =0.2; //Parabolic setting //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //alert criteria if ((iSAR(NULL, 0,Step,Maximum, 0)<iClose(NULL,0,0))&&(iSAR(NULL, 0,Step,Maximum, 1)>iClose(NULL,0,1))) //Signal Buy { PlaySound("alert.wav"); Alert("Alarm triggered by ",Symbol()); // Alarm } if ((iSAR(NULL, 0,Step,Maximum, 0)>iClose(NULL,0,0))&&(iSAR(NULL, 0,Step,Maximum, 1)<iClose(NULL,0,1))) //Signal Sell { PlaySound("alert.wav"); Alert("Alarm triggered by ",Symbol()); // Alarm } Sleep(RunIntervalSeconds*1000); //---------- return(0); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.