View Single Post
  #12 (permalink)  
Old 10-10-2006, 04:15 AM
scorpion's Avatar
scorpion scorpion is offline
Administrator
 
Join Date: Aug 2004
Posts: 1,991
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Gaz, you can get current bar value:

double r0 = iCustom(Symbol(), Period(), "SuperSR7", SR_Step, SR_Precision, SR_Shift, 300, 0, 0);
double s0 = iCustom(Symbol(), Period(), "SuperSR7", SR_Step, SR_Precision, SR_Shift, 300, 1, 0);

r0 is current resistance, and s0 is current support

To get previous bar:

double r1 = iCustom(Symbol(), Period(), "SuperSR7", SR_Step, SR_Precision, SR_Shift, 300, 0, 1);
double s1 = iCustom(Symbol(), Period(), "SuperSR7", SR_Step, SR_Precision, SR_Shift, 300, 1, 1);

r1 is previous resistance and s1 is previous support.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
The following users have thanked scorpion for useful post above:

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

Main Menu

Economic Forecast