Scorpion, I put the code in there but when I hit compile it didnt recognize the parts SR_Step, SR_Precision, SR_Shift so it didnt want to compile, but if I remove them it wont work...
Any suggestions?
Here is the original part of the code to modify:
Code:
int OpenOrdersBasedOnSupRes()
{
int myOrderType=3;
double iTmpR=0, iTmpS=0;
iTmpR = iCustom(Symbol(),0,"Support and Resistance",0,0);
iTmpS = iCustom(Symbol(),0,"Support and Resistance",1,0);
if (Close[0]==iTmpS) { myOrderType = 1; }
if (Close[0]==iTmpR) { myOrderType = 2; }
return(myOrderType);
}
and here is with the change:
Code:
int OpenOrdersBasedOnSupRes()
{
int myOrderType=3;
double iTmpR=0, iTmpS=0;
iTmpR = iCustom(Symbol(),Period(),"SuperSR7",SR_Step,SR_Precision,SR_Shift,300,0,0);
iTmpS = iCustom(Symbol(),Period(),"SuperSR7",SR_Step,SR_Precision,SR_Shift,300,1,0);
if (Close[0]==iTmpS) { myOrderType = 1; }
if (Close[0]==iTmpR) { myOrderType = 2; }
return(myOrderType);
}
NOTE: I tried with both spaces and no spaces between the commas but it didn't change anything. I also put the indicator under experts/indicators and loaded it on the platform
I attached the full expert at the bottom of this un-modified