Hi,
Sorry if this has been asked already...I have searched the forum but with no luck. Anyhow, what I am looking to do is quite simple I think but I just don't have the coding brain to do it. I feel like I have some sort of mental block when it comes to the coding for some reason
. Simply, I would like to have an RSI trigger at a certain level. What I'm having trouble with is specifying that in order to place a buy, the RSI must be rising and vice versa for a sell order. I have a version working from the EA builder site but don't know how to add the rising and falling RSI input for a buy or sell. Below is an EA alert that I found on www.forexmt4.com that is basically what I'm trying to do. I am just too daft to know how to code in the buy and sell instead of an alert in this case. Any help would be appreciated.
Thanks again,
J
Sorry if this has been asked already...I have searched the forum but with no luck. Anyhow, what I am looking to do is quite simple I think but I just don't have the coding brain to do it. I feel like I have some sort of mental block when it comes to the coding for some reason
Inserted Code
//+------------------------------------------------------------------+
//| RSI CROSS.mq4 |
//| Jacob Y |
//| |
//+------------------------------------------------------------------+
//---- input parameters
double RSICURR,RSIPREV;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int start()
{
RSICURR=iRSI(NULL,0,14,PRICE_CLOSE,0);
RSIPREV=iRSI(NULL,0,14,PRICE_CLOSE,0);
if (RSICURR>RSIPREV && RSICURR>70)
{
{Alert(" CrossUP",Symbol());
}
if (RSIPREV>RSICURR && RSICURR<30)
{
{Alert("CrossDOWN",Symbol());
}
}
}
}
return (0); Thanks again,
J