How to create EA using all indicators like OBV, MFI, CCI, RSI, Signals.
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

You agree to website policy and terms of use
Hi All,
I want to create an EA which have all access of the data from the indicators and use the strategy of BO.
Code:
void OnTick()
{
string signal = "";
double RSIValue = iRSI(_Symbol, _Period,14,PRICE_CLOSE,0);
if(RSIValue<30)
{
signal = "buy";
}
if(RSIValue > 70)
{
signal = "sell";
}
Comment("RSIValue : ", RSIValue,"\n","Signal : ", signal);
}
I want to show the alert for user to sell and buy. I have some indicators like "Super Signal V3D and Super Signal Channel" In this we have the existing code for the alert.
code:
if (alertsOn)
{
int forBar = 1;
if (alertsOnCurrent) forBar = 0;
if (b1[forBar] != EMPTY_VALUE && b3[forBar] != EMPTY_VALUE) doAlert("strong sell");
if (b1[forBar] != EMPTY_VALUE && b3[forBar] == EMPTY_VALUE) doAlert("sell");
if (b1[forBar] == EMPTY_VALUE && b3[forBar] != EMPTY_VALUE) doAlert("minor sell or exit buy");
if (b2[forBar] != EMPTY_VALUE && b4[forBar] != EMPTY_VALUE) doAlert("strong buy");
if (b2[forBar] != EMPTY_VALUE && b4[forBar] == EMPTY_VALUE) doAlert("buy");
if (b2[forBar] == EMPTY_VALUE && b4[forBar] != EMPTY_VALUE) doAlert("minor buy or exit sell");
}
Do we need to rewrite this code in our EA or do we need to pass some value if yes then How?
Need help !!!! Its urgent!!!!!!!