EA For Custom Indicator

1
Hi Coding Gurus,

Please help me to develop an EA for a custom indicator. Below is the icustom calls for the indicator:

]input int Upper_Length=2;
input int Lower_Length=8;
input int Upper_Period=20;
input int Lower_Period=1;
input bool alertMessage=false;
input bool Email_Alert=false;
input bool Phone_Alert=false;
//-------------------------------------------------------------------------

void OnTick()
{

int buy=0,sell=0,exit=0;
//------ Buy Signal Call-------------------------
double Abc_Buy=iCustom(Symbol(),0,"Market\\Abc",Upper_Length,Lower_Length,Upper_Period,Lower_Period,alertMessage,Email_Alert,Phone_Alert,0,0);
//------ Sell Signal Call ----------------------------------
double Abc_Sell=iCustom(Symbol(),0,"Market\\Abc",Upper_Length,Lower_Length,Upper_Period,Lower_Period,alertMessage,Email_Alert,Phone_Alert,1,0);
//------ Exit Signal Call-------------------------------
double Abc_Exit=iCustom(Symbol(),0,"Market\\Abc",Upper_Length,Lower_Length,Upper_Period,Lower_Period,alertMessage,Email_Alert,Phone_Alert,2,1);

if(Abc_Buy!=EMPTY_VALUE && Abc_Buy>0) buy=1; // Buy Signal
if(Abc_Sell!=EMPTY_VALUE && Abc_Sell>0) sell=1; // Sell Signal
if(Abc_Exit!=EMPTY_VALUE && Abc_Exit>0) exit=1; //Exit Signal





I need an EA based on the criteria :

SL = Yesterday's Low or user defined
TP = On Exit Signal or user defined
Close on Opposite Signal = True or False
Trade on Friday = True or False
Lots = User Defined (Default = 0.1)
Risk Management = User Defined (Default 2 %)
Trade Filter - Moving Average Period (User Defined. Default is 10) = True or False

.



Thanks,
Rana


Who is online

Users browsing this forum: No registered users and 12 guests