View Single Post
  #14 (permalink)  
Old 10-21-2006, 09:34 PM
gazuz's Avatar
gazuz gazuz is offline
Senior Trader and Moderat
 
Join Date: Aug 2004
Posts: 768
Thanks: 1
Thanked 8 Times in 5 Posts
gazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to all
Default

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
Attached Files
File Type: mq4 DLMv1.1.mq4 (12.2 KB, 353 views)
Sponsored Links EA Shark +1064% Return
Stock Market Crash? No Problem!
We Are Making Profits As Usual. More Info
__________________
____________________________\¦/
___________________________(ò ó)
______________________o0o___(_)___o0o__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__

Last edited by gazuz : 10-21-2006 at 09:37 PM.
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now