Jump to content

Psar ea


checkmail

Recommended Posts

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

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...