Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

Recommended Posts

Posted

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);

}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...