i just finished my first indicator.
which is very, very basic EMA. it uses some ideas from MCAD so it is not worth to use as EA in anyway. however it is for my learning experience
however i want to do the next step. and that is create a EA with the results the indicator gives me.
however i am a bit lost on what i should do. i want to have a clean code.
if i want to transform the indicator into an EA should i use a seperate script and load the indicator in the new script? then use the results of the indicator with Icustom() ?
or should i just use the indicator script and transform it into an EA?
talking about EA.
i have checked some sources on how to add the ordersend() but i see so many different kind of options. my heads spins.
so if possible could you give me advice on how to proceed?
also my indicator starts with #property indicator_separate_window
if i want to add all the code for the EA into same indicator script. should i remove that line?
actually below is the code i want to use to create the EA however i dont have an idea to use a buy and sell option in it
f= fastema
s= slowema
int start()
{
indicator[a] = iCustom(NULL,0,"indicator",f,s,0,a);
if (indicator[a] > indicator[a+1]) then add ordersend(op_buy) here?
else
if indicator[a] > indicator[a+1]) then add ordersend)op_sell) here?
thanks in advance
which is very, very basic EMA. it uses some ideas from MCAD so it is not worth to use as EA in anyway. however it is for my learning experience
however i want to do the next step. and that is create a EA with the results the indicator gives me.
however i am a bit lost on what i should do. i want to have a clean code.
if i want to transform the indicator into an EA should i use a seperate script and load the indicator in the new script? then use the results of the indicator with Icustom() ?
or should i just use the indicator script and transform it into an EA?
talking about EA.
i have checked some sources on how to add the ordersend() but i see so many different kind of options. my heads spins.
so if possible could you give me advice on how to proceed?
also my indicator starts with #property indicator_separate_window
if i want to add all the code for the EA into same indicator script. should i remove that line?
actually below is the code i want to use to create the EA however i dont have an idea to use a buy and sell option in it
f= fastema
s= slowema
int start()
{
indicator[a] = iCustom(NULL,0,"indicator",f,s,0,a);
if (indicator[a] > indicator[a+1]) then add ordersend(op_buy) here?
else
if indicator[a] > indicator[a+1]) then add ordersend)op_sell) here?
thanks in advance